Skip to content

Commit 8381281

Browse files
authored
Apply suggestion from @maartenba
1 parent 044f992 commit 8381281

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • astro/src/content/docs/bff/extensibility

astro/src/content/docs/bff/extensibility/tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public interface IAccessTokenRetriever
111111
You can implement this interface yourself or extend the *DefaultAccessTokenRetriever*.
112112

113113
:::note
114-
In Duende BFF v4, *DefaultAccessTokenRetriever* was made `internal`. If you need to customize token retrieval in v4, implement the *IAccessTokenRetriever* interface directly. The default implementation simply calls `context.HttpContext.GetManagedAccessToken()` with the configured token type, so replicating its behavior is straightforward.
114+
In Duende BFF v4, *DefaultAccessTokenRetriever* was made `internal`. If you need to customize token retrieval in v4, implement the *IAccessTokenRetriever* interface directly.
115115
:::
116116

117117
The *AccessTokenResult* class represents the result of this operation. It is an abstract class with concrete implementations that represent successfully retrieving a bearer token (*BearerTokenResult*), successfully retrieving a DPoP token (*DPoPTokenResult*), failing to find an optional token (*NoAccessTokenResult*), which is not an error, and failure to retrieve a token (*AccessTokenRetrievalError*). Your implementation of GetAccessTokenAsync should return one of those types.

0 commit comments

Comments
 (0)