muety / wakapi

📊 A minimalist, self-hosted WakaTime-compatible backend for coding statistics
https://wakapi.dev
MIT License
2.69k stars 164 forks source link

OAuth 2 login #33

Open muety opened 4 years ago

muety commented 4 years ago

Log in with:

muety commented 4 years ago
alexanderadam commented 2 years ago

It would be nice to use external auth services like Authelia, Keycloak, Authentik or GitLab.

And I guess OpenID Connect (OIDC) /OAuth2 is pretty much standardized and supported, so this really would be a nice solution. Thank you for considering it.

Just my 2ct: Most projects allow to set the URLs and secrets via ENV variables. This way users have the full flexibility what kind of provider they want to use.

muety commented 1 year ago

See https://github.com/muety/wakapi/issues/94#issuecomment-1366855621 for additional thoughts on this.

theredditbandit commented 2 days ago

Hi @muety,

I read the discussion surrounding this issue (#505 & #94) and saw that you mentioned in a comment on #94:

OAuth 2 / OIDC authentication for Wakapi itself is planned as well, see https://github.com/muety/wakapi/issues/33. I didn't get to implementing that, yet, because it's quite a big one (requires refactorings to current auth. logic). But I see how it will be a huge benefit for users, so please stay tuned!

I'd love to contribute to implementing the OAuth 2 / OIDC authentication feature. Would you be open to accepting a pull request for this enhancement?

To help me get started, could you provide some guidance on the specific areas of the authentication logic that need refactoring? I'd appreciate any pointers to relevant files or architectural considerations you have in mind.