Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce username requirements #2

Open
rasos opened this issue Feb 22, 2021 · 1 comment
Open

enforce username requirements #2

rasos opened this issue Feb 22, 2021 · 1 comment

Comments

@rasos
Copy link

rasos commented Feb 22, 2021

We use in keycloak email as username. This seems to be rejected:

[ourtubeinstance.net:443] 2021-02-22 18:58:48.320 ESC[31merrorESC[39m: Auth method oauth2 of plugin peertube-plugin-auth-oauth2 did not provide a valid username. {
  "username": "kira@altoncats.net"
}

Also tested given_name like Kira, which is also rejected. Also tried the UUID, it seems too long. Only lowercase usernames seem to work.

So should we convert email to kira_altoncats_net ? What are the username requirements in peertube?

@rasos
Copy link
Author

rasos commented Feb 23, 2021

The other oauth plugin https://www.npmjs.com/package/peertube-plugin-auth-openid-connect does the job: it converts @ to _, so we get created a user kira_altoncats.net. So we will use this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant