You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -92,4 +95,58 @@ public class CustomClaimsTransformer : IClaimsTransformation
92
95
93
96
See the [Claims Transformation](https://learn.microsoft.com/en-us/aspnet/core/security/authentication/claims?view=aspnetcore-9.0) topic in the ASP.NET Core documentation for more information.
94
97
98
+
#### User Endporint Claims Enricher :badge[v4.0]
99
+
100
+
User claims can be enriched by implementing the `IUserEndpointClaimsEnricher` interface.
101
+
This interface is specific to the user endpoint and runs after authentication.
102
+
103
+
Because this runs within the user endpoint request, you can access the current HTTP context to retrieve the user's access token.
104
+
We recommend using the [`GetUserAccessTokenAsync`](/accesstokenmanagement/web-apps.mdx#http-context-extension-methods) extension method from `Duende.AccessTokenManagement.OpenIdConnect`, as it will automatically handle refreshing the token if it has expired.
0 commit comments