-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(oauth2): simple userinfo endpoint #43684
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
base: master
Are you sure you want to change the base?
Conversation
e7d19eb to
f5b90e2
Compare
|
@skjnldsv Is there anything else I can add to help you accept this? |
|
@skjnldsv This adds the user_info endpoint, but does not add the discovery. |
Signed-off-by: d.kudrinskiy <[email protected]>
6b373db to
d934c98
Compare
|
There was an issue with the rebase, please fix it |
Signed-off-by: d.kudrinskiy <[email protected]>
Signed-off-by: d.kudrinskiy <[email protected]>
d934c98 to
21a1825
Compare
|
@skjnldsv Ready! I have corrected! I don't understand how these commits got here. |
Signed-off-by: d.kudrinskiy <[email protected]>
ChristophWurst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the endpoint. Some instructions for testing would be appreciated.
The name split logic probably doesn't work for all names. If we can I would strongly favor removing it and only exposing the full name.
Forwarded your question. |
|
@kesselb Do you have an answer for the roadmap? |
Having fields for first name, last name, title or prefix as addition/replacement for the full name field is something we want. However, it's not scheduled for the current or next iteration. https://github.com/H2CK/oidc could be interesting for you as well. |
Summary
This solves the oAuth2 authorization issue in openproject when openproject is the client.
Added endpoint that returns a minimum set of user information.
This is very necessary in my openproject integration with nextcloud.
I hope this helps someone else.
Thanks to @jlallana for suggesting this solution in PR #19934.
Checklist
\OCA\OAuth2\Tests\Controller\OauthApiControllerTest