agates / peertube-plugin-auth-oauth2-mastodon

A PeerTube server plugin that adds support for external authentication via an OAuth 2.0 provider.
3 stars 1 forks source link

PeerTube account email set to Mastodon username, why? #3

Open exstral opened 3 years ago

exstral commented 3 years ago

Why is the PeerTube account email set to the Mastodon username? That means that whenever PeerTube tries to send emails, it won't work.

Why cannot the Mastodon account email address be used instead?

agates commented 3 years ago

Mastodon's OAuth2 API doesn't return an email address, and peertube requires an email for registered users. I don't like it either but I'm not sure what else to do about it :/

agates commented 3 years ago

And for the record, this is the main reason I forked the original oauth2 plugin.

rasos commented 1 year ago

Well, we've put a Keycloak instance in front of both, so that users get a single-sign-on experience. E-Mail as an attribute is handed over to both Mastodon and PeerTube.

agates commented 1 year ago

Well, we've put a Keycloak instance in front of both, so that users get a single-sign-on experience. E-Mail as an attribute is handed over to both Mastodon and PeerTube.

@rasos You should be able to use the standard -oauth plugin then, no?

rasos commented 1 year ago

@agates yes, we use the standard auth-openid-connect 0.1.1 to authenticate with Keycloak. You probably could use any other IDM that has username & e-mail address as attributes.