muni-town / weird

Weird web pages
https://weird.one
Other
55 stars 11 forks source link

Connect SSO after login #52

Closed erlend-sh closed 5 months ago

erlend-sh commented 5 months ago

As a complement to #35 we need a way for users to add their preferred social login after they’ve already logged in, since we don’t allow an existing user to log in via a social provider if the email match:

IMG_2365

We just need a ‘Add login provider’ button at the bottom of the https://weird.one/auth/v1/account page.

(We are quickly filling up this account page, so we’ll need multiple tabs for it soon.)

kimlimjustin commented 5 months ago

Umm... Are we going to allow multiple social provider accounts linked to one weird account? Or are we allowing only one social provider account linked to an account?

The current implementation of Rauthy allows only one provider though (https://github.com/sebadob/rauthy/blob/e7415111426f1e2d6595ac26dc64305c79cc7632/rauthy-models/src/entity/users.rs#L54-L76)

erlend-sh commented 5 months ago

only one social provider account linked to an account?

we’re fine with just that for now. What we are trying to solve for is:

kimlimjustin commented 5 months ago

Pushed a PR for this (#58)