mcorbin / meuse

A private Cargo crate registry, for Rust
https://meuse.mcorbin.fr/
Eclipse Public License 2.0
287 stars 12 forks source link

Login with OAuth2/SSO #26

Open MarcAntoine-Arnaud opened 4 years ago

MarcAntoine-Arnaud commented 4 years ago

To simplify user management, do you think it can be possible to add a OAuth2 (and maybe SSO) login system ? Personally I use Google for my company, so it can be excellent to support that, even for open source.

I think a support of Google and Github and Gitlab will be awesome ! Do you think it can be complex to do that in Clojure ?

mcorbin commented 4 years ago

Do you think it can be complex to do that in Clojure ?

Some libraries exists, like https://github.com/weavejester/ring-oauth2. Clojure being a JVM language, it's also easy to wrap Java libraries.

It will indeed be a good idea, but I will have to check how to integrate that in Meuse (especially how to assign roles to users in that case).

MarcAntoine-Arnaud commented 4 years ago

Cool good news ! It will be awesome to add domain name check. I don't know/remember with oauth2 where this limitation is set. (It opens also the idea of domain name validation without oauth2 ...).

Don't hesistate if you need something to test, beta test etc. !

tuler commented 2 years ago

(especially how to assign roles to users in that case).

You can do authentication with SAML, and leave the authorization for meuse.

Good articles with the differences