omniauth / omniauth-oauth2

An abstract OAuth2 strategy for OmniAuth.
MIT License
502 stars 304 forks source link

Callback URI #180

Closed reiz closed 3 months ago

reiz commented 3 months ago

Where can I define my callback URI?

BobbyMcWho commented 3 months ago

Please refer to the gem that you're using that consumes this gem's documentation, such as: https://github.com/omniauth/omniauth_openid_connect

reiz commented 3 months ago

@BobbyMcWho Thanks for the fast reply!!

I'm refer to the Microsoft Graph Sample App. I was not sure how the callback is assembled because there is not place there I can explicitly set it. Is my assumption correct that omniauth assembles the callback uri by this pattern:

<HOST>/auth/<CALLBACK_STRATEGY_NAME>/callback
BobbyMcWho commented 3 months ago

You may want to use a gem like https://github.com/synth/omniauth-microsoft_graph

I'd ask there, as this gem is the backbone for other strategies which may configure things differently depending on the provider