Asp core user profil

Hi,

I’ve followed the sample here https://developer.okta.com/code/dotnet/index, it all worked great but now I am trying to figure out how to access the rest of the user’s profile attributes, any pointers?

It should be in HttpContext.User.Claims

If you have custom information you need to get into the User’s Claims, you need to set up your authorization server and map additional user information into claims.

Thanks for the reply Tom,

Can you point me on some docs on how to setup the auth server and map additional user info into claims?

Thanks,

If you have a newer organization (created post-June) you should have a default authorization server set up for you already.

Information about setting up claims is:
https://developer.okta.com/docs/how-to/set-up-auth-server.html#create-claims-optional

I still can’t make this work,

Here is the claim I’ve added
Screenshot from 2017-10-25 20-46-00

User.Claims only has:

http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier
name
jti
http://schemas.microsoft.com/claims/authnmethodsreferences
http://schemas.microsoft.com/identity/claims/identityprovider
preferred_username
given_name
family_name

Oh, I finally got it, it had to be user.honorificPrefix

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.