oauth2-demo-php icon indicating copy to clipboard operation
oauth2-demo-php copied to clipboard

"authorize_route" needs to be replaced too

Open ruslanbes opened this issue 8 years ago • 0 comments

Hi, It seems README is missing one fix for the "authorize" route:

$ sed -i '' 's?"authorize"?"http://localhost:8081/lockdin/authorize"?g' data/parameters.json

If you don't make this change then the first step of the authorization code process requests the <CLIENT_URL>/lockdin/authorize instead of <SERVER_URL>/lockdin/authorize.

The demo however will still work because both server and client use the same sqlite db. But if you make true server and client from two copies of the source code, you'll get the error.

ruslanbes avatar Mar 17 '16 09:03 ruslanbes