Thursday, February 15, 2018

Redirecting from redirect_uri callback to local server - development

Redirecting from redirect_uri callback to local server

I am trying to integrate an SSO provider with my system. I have a login endpoint something similar to this

http://sso.service/login?client_id=[XX]&scope=openid&redirect_uri=https://staging.server.cloud/auth/oauth_callback

My application is running on

http://app.docker.localhost:8080 locally.

Once I redirect away from my local server to the SSO provider, authenticate myself, I’m redirected to the redirect_uri -> https://staging.server.cloud/auth/oauth_callback?code=[XXXXXXXXXX].

I want to extract the code query parameter on my local server which basically means that I somehow have to redirect the staging server to my local server endpoint. I edited the /etc/host but no luck.

Part of my etc/hosts file:

127.0.0.1 staging.server.cloud
127.0.0.1 app.docker.localhost
app.docker.localhost staging.server.cloud

Any help? I am using Laravel



from Laravel Questions and Answers https://laravelquestions.com/laravel/redirecting-from-redirect_uri-callback-to-local-server/
via Lzo Media

No comments:

Post a Comment