Search Results for

    Show / Hide Table of Contents
    View Source

    Class ExposeBackOfficeAuthenticationOpenIddictServerEventsHandler

    Provides OpenIddict server event handlers to expose the backoffice authentication token via a custom authentication scheme.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Security
    Assembly: Umbraco.Cms.Api.Common.dll
    Syntax
    public class ExposeBackOfficeAuthenticationOpenIddictServerEventsHandler : IOpenIddictServerHandler<OpenIddictServerEvents.GenerateTokenContext>, IOpenIddictServerHandler<OpenIddictServerEvents.ApplyRevocationResponseContext>

    Constructors

    View Source

    ExposeBackOfficeAuthenticationOpenIddictServerEventsHandler(IHttpContextAccessor, IOptions<GlobalSettings>, IOptions<BackOfficeIdentityOptions>)

    Initializes a new instance of the ExposeBackOfficeAuthenticationOpenIddictServerEventsHandler class.

    Declaration
    public ExposeBackOfficeAuthenticationOpenIddictServerEventsHandler(IHttpContextAccessor httpContextAccessor, IOptions<GlobalSettings> globalSettings, IOptions<BackOfficeIdentityOptions> backOfficeIdentityOptions)
    Parameters
    Type Name Description
    IHttpContextAccessor httpContextAccessor
    IOptions<GlobalSettings> globalSettings
    IOptions<BackOfficeIdentityOptions> backOfficeIdentityOptions

    Methods

    View Source

    HandleAsync(ApplyRevocationResponseContext)

    Declaration
    public ValueTask HandleAsync(OpenIddictServerEvents.ApplyRevocationResponseContext context)
    Parameters
    Type Name Description
    ApplyRevocationResponseContext context
    Returns
    Type Description
    ValueTask
    Remarks

    Event handler for when access tokens are revoked.

    View Source

    HandleAsync(GenerateTokenContext)

    Declaration
    public ValueTask HandleAsync(OpenIddictServerEvents.GenerateTokenContext context)
    Parameters
    Type Name Description
    GenerateTokenContext context
    Returns
    Type Description
    ValueTask
    Remarks

    Event handler for when access tokens are generated (created or refreshed).

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX