Table of Contents

Class OpenIdConnectAccessTokenManagementServiceCollectionExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Fdyay.AccessTokenManagement.OpenIdConnect.dll

The entry point a BFF calls to keep its signed-in users' access tokens fresh.

public static class OpenIdConnectAccessTokenManagementServiceCollectionExtensions
Inheritance
OpenIdConnectAccessTokenManagementServiceCollectionExtensions
Inherited Members

Methods

AddOpenIdConnectAccessTokenManagement(IServiceCollection)

Adds user access token management for sessions signed in with OpenID Connect.

public static IServiceCollection AddOpenIdConnectAccessTokenManagement(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

Remarks

Reads everything from the host's authentication setup: the session from the default scheme, the token endpoint and client credentials from the default challenge scheme's OpenID Connect options, which must save tokens (SaveTokens = true) and request offline_access for there to be a refresh token at all.