Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​DependencyInjection.​LocalApiAuthenticationExtensions

Assembly: Duende.IdentityServer

Inheritance: object → LocalApiAuthenticationExtensions

Extensions for registering the local access token authentication handler

Methods

public static IServiceCollection
AddLocalApiAuthentication​(IServiceCollection services, System.​Func?<​System.​Security.​Claims.​ClaimsPrincipal, System.​Threading.​Tasks.​Task<​System.​Security.​Claims.​ClaimsPrincipal>> transformationFunc = null)
Adds support for local APIs
services The service collection
transformationFunc Function to transform the resulting principal
AddLocalApi​(AspNetCore.​Authentication.​AuthenticationBuilder builder)
Registers the authentication handler for local APIs.
builder The builder.
builder The builder.
configureOptions The configure options.
AddLocalApi​(AspNetCore.​Authentication.​AuthenticationBuilder builder, string authenticationScheme, System.​Action<​Duende.​IdentityServer.​Hosting.​LocalApiAuthentication.​LocalApiAuthenticationOptions> configureOptions)
Registers the authentication handler for local APIs.
builder The builder.
authenticationScheme The authentication scheme.
configureOptions The configure options.
AddLocalApi​(AspNetCore.​Authentication.​AuthenticationBuilder builder, string authenticationScheme, string displayName, System.​Action<​Duende.​IdentityServer.​Hosting.​LocalApiAuthentication.​LocalApiAuthenticationOptions> configureOptions)
Registers the authentication handler for local APIs.
builder The builder.
authenticationScheme The authentication scheme.
displayName The display name of this scheme.
configureOptions The configure options.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object