markbates / goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b
MIT License
5.2k stars 566 forks source link

Allow for multiple OIDC providers #504

Closed yaronius closed 1 year ago

yaronius commented 1 year ago

OpenID Connect is pretty generic so we might want to use several different providers at the same time. But it's not possible at the moment because the provider is mapped to a single name. It would make sense to make this configurable. What do you think @techknowlogick?

techknowlogick commented 1 year ago

Thanks for the PR @yaronius, I made a minor update to use a switch case instead of an if conditional