Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Passport #30

Closed
chancemcox opened this issue Dec 8, 2020 · 2 comments
Closed

Issue with Passport #30

chancemcox opened this issue Dec 8, 2020 · 2 comments

Comments

@chancemcox
Copy link

I setup an app and am working with passport.

when going to the url

https://dev-patient-api.docsink.com/oauth/authorize?client_id=1301073282&redirect_uri=https://dev-biosense.bots.docsink.com/callback&response_type=code

it sends me to the login screen, once i login it redirects me to

https://icqkm1pf1d.execute-api.us-east-1.amazonaws.com/oauth/authorize?client_id=1301073282&redirect_uri=https%3A%2F%2Fdev-biosense.bots.docsink.com%2Fcallback&response_type=code

with body {"message":"Forbidden"}

i have Illuminate\Support\Facades\URL::forceRootUrl(env('APP_URL')); in the boot() function of app/Providers/AppServiceProvider.php so im unsure why its forwarding to the api-gateway url.

when i return to https://dev-patient-api.docsink.com/oauth/authorize?client_id=1301073282&redirect_uri=https://dev-biosense.bots.docsink.com/callback&response_type=code it forwards me to the right place because im already logged in.

Any ideas what i need to do to fix the incorrect redirect?

@mnapoli
Copy link
Member

mnapoli commented Dec 9, 2020

Hi, I think that's related to brefphp/bref#535

@chancemcox
Copy link
Author

That was it. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants