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

Examples of the LocalisedClaim #118

Open
Firstyear opened this issue Jul 8, 2023 · 0 comments
Open

Examples of the LocalisedClaim #118

Firstyear opened this issue Jul 8, 2023 · 0 comments

Comments

@Firstyear
Copy link

https://docs.rs/openidconnect/3.2.0/openidconnect/struct.IdTokenClaims.html#method.name (aka the displayname) can be localised. However, due to the stronglytyped API it's difficult to see "how" to access this via https://docs.rs/openidconnect/3.2.0/openidconnect/struct.LocalizedClaim.html.

For example, if a locale doesn't exist, then how can a default locale be accessed as a fallback?

I think it would be useful to have examples of accessing localised claims in this section to assist developers to access these data.

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