gitarena icon indicating copy to clipboard operation
gitarena copied to clipboard

Allow additional login methods (SSO)

Open mellowagain opened this issue 2 years ago • 4 comments

Probably allow login with the biggest VCS websites:

  • [x] GitHub
  • [x] GitLab
  • [x] BitBucket

and maybe popular web services such as:

  • [ ] Google
  • [ ] Twitter

TODO on the implementation details:

  • Save avatars
  • Save SSH and GPG keys
  • Verify CSRF tokens

mellowagain avatar Dec 11 '21 23:12 mellowagain

Further investigation into this reveals that the protocol which should be used for this is called OpenID Connect. There are various crates which exist for this purpose, the most popular being openidconnect.

References for services:

mellowagain avatar Dec 20 '21 00:12 mellowagain

GitHub has been implemented in 1f07ded. It is currently not visible on the login/register template but is already accessible via /sso/github.

mellowagain avatar Dec 25 '21 13:12 mellowagain

GitLab has been implemented in 95febcb. It is currently also not visible but still accessible via /sso/gitlab.

mellowagain avatar Dec 26 '21 13:12 mellowagain

BitBucket has been implemented in 47a0f23.

mellowagain avatar Dec 27 '21 18:12 mellowagain