Extend Delivery API to get user/member info #17508
bjarnef
started this conversation in
Features and ideas
Replies: 2 comments 1 reply
-
@bergmania @kjac could you check this? 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This makes a ton of sense. As a bare minimum, we should expose the member name and email 👍 We could also consider exposing all custom properties that aren't marked as sensitive? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently it seems there isn't any way to fetch information of current logged in member.
https://docs.umbraco.com/umbraco-cms/13.latest/reference/content-delivery-api/protected-content-in-the-delivery-api?fallback=true
It seems there's a
SetUserinfoEndpointUris()
which could be used:https://dev.to/robinvanderknaap/setting-up-an-authorization-server-with-openiddict-part-v-openid-connect-a8j
but isn't set here:
https://github.com/umbraco/Umbraco-CMS/blob/v13/dev/src/Umbraco.Cms.Api.Common/DependencyInjection/UmbracoBuilderAuthExtensions.cs#L36-L43
I found an example here to get
userinfo
:https://github.com/openiddict/openiddict-samples/blob/dev/samples/Velusia/Velusia.Server/Controllers/UserinfoController.cs#L28
Is it possible to configure this with your own endpoint for now?
Beta Was this translation helpful? Give feedback.
All reactions