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

Office365: Support tenants #2513

Closed
werk21 opened this issue Feb 6, 2021 · 3 comments
Closed

Office365: Support tenants #2513

werk21 opened this issue Feb 6, 2021 · 3 comments

Comments

@werk21
Copy link

werk21 commented Feb 6, 2021

If you configure Office385 for authentication the request goes to

authorize_url: '/common/oauth2/v2.0/authorize
token_url: '/common/oauth2/v2.0/token

We need tenants, so the URLs will be like this:

authorize_url: '/mytenant/oauth2/v2.0/authorize
token_url: '/mytenant/oauth2/v2.0/token

It would be great to set this parameter with OFFICE365_TENANT

Thank you in advance!

@werk21
Copy link
Author

werk21 commented Feb 6, 2021

@farhatahmad
Copy link
Collaborator

I can't imagine will support this natively anytime soon. You'd be better off using OpenID instead and choosing a provider that allows multiple tenants

@werk21
Copy link
Author

werk21 commented Mar 19, 2021

If someone else need this feature, they can use our forked repo at https://github.com/werk21/omniauth-bn-office365 and use this in their Gemfile.

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