Replies: 2 comments 2 replies
-
Hey @Zekhap , thanks for the snippet! I am not really expert in authentications, but from me it seems the structure make sense (although there are a few places where some optimization can be done, like checking for a nil options when creating the oauth2 object instance), but those can be easily fix and reviewed in a pull request. @yeungalan What do you think about this? I feel like this can plug into our current auth provider architecture easily. |
Beta Was this translation helpful? Give feedback.
-
overall lgtm, on top of this maybe we can add auto-discovery protocol and JWT token validation as well |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been working on an authentication for Zoraxy for users who want to use Oauth2 for their domains, currently we only have Basic and Authelia.
I have tested it with Defguard and Authentik and it works, But i would like you to point out if i have missed something.
I will push this when i think its good enough.
What do you think? is it good?
So we have
NewOauthRouter - When the app starts.
HandleData - When we update things in the UI
HandleOauthAuth - When we visit a page/subdomain (If Oauth2 is enabled)
CallbackHandler - The provider will return to this url after you have signed in to the provider.
Beta Was this translation helpful? Give feedback.
All reactions