markbates / goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.

Home Page:https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b

Repository from Github https://github.commarkbates/gothRepository from Github https://github.commarkbates/goth

azuread provider does not support multiples tenants

ppodevlabs opened this issue · comments

I'm testing with my azure environment where we have multiples tenants. example

tenant A: holds all the users, mfa, etc.
tenant B: users synced from tenant A

Application created in tenant B fails to logging stating

Application with id xxx-xxx-xxxxx does not exists on tenant A

Possible solution

add option to include tenant id. If present, then use the tenant ID as part of the urls as azureadv2 does.