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

Why does ClientInfo carry a User ID? #229

Open
tobiassjosten opened this issue Dec 28, 2022 · 4 comments
Open

Why does ClientInfo carry a User ID? #229

tobiassjosten opened this issue Dec 28, 2022 · 4 comments

Comments

@tobiassjosten
Copy link

Looking at the ClientInfo interface, there's a GetUserID() method. How could that be populated after a call to ClientStore.GetByID? I'm not 100% certain how all of this ties together but it seems impossible to pick one specific user based on only a Client's ID.

Maybe at least this specific property could be the first target for #228? :)

@jarlandre
Copy link

This used by OpenID Connect to identify the logged in user. For client credentials this will not be filled out naturally, but with auth code with pkce flow, the user id will be the logged in user. Either via the AS internal authentication mechanisms (if one chooses to add that) or from some other identity provider. One identity provider might ask the user the authorise towards a different identity provider to obtain a valid logged in state for the authorisation to complete.

@jarlandre
Copy link

related to #224

@tobiassjosten
Copy link
Author

Thanks, @jarlandre! Sounds like it might be something I'll have to dig into further, as I'm using the auth code with PKCE flow.

@bokunodev
Copy link

bokunodev commented Jan 24, 2023

can we document this?

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

3 participants