C# Class Tailspin.Surveys.WebAPI.SurveysJwtBearerEvents

This class extends JwtBearerEvents and provides the logic that is executed at various stages when the Jwt Bearer token is validated.
Inheritance: Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents
Exibir arquivo Open project: mspnp/multitenant-saas-guidance

Public Methods

Method Description
AuthenticationFailed ( Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext context ) : System.Threading.Tasks.Task
MessageReceived ( Microsoft.AspNetCore.Authentication.JwtBearer.MessageReceivedContext context ) : System.Threading.Tasks.Task
SurveysJwtBearerEvents ( ILogger logger ) : System.Linq
TokenValidated ( Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext context ) : System.Threading.Tasks.Task

This method contains the logic that validates the user's tenant and normalizes claims.

Method Details

AuthenticationFailed() public method

public AuthenticationFailed ( Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext
return System.Threading.Tasks.Task

MessageReceived() public method

public MessageReceived ( Microsoft.AspNetCore.Authentication.JwtBearer.MessageReceivedContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNetCore.Authentication.JwtBearer.MessageReceivedContext
return System.Threading.Tasks.Task

SurveysJwtBearerEvents() public method

public SurveysJwtBearerEvents ( ILogger logger ) : System.Linq
logger ILogger
return System.Linq

TokenValidated() public method

This method contains the logic that validates the user's tenant and normalizes claims.
public TokenValidated ( Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext The validated token context
return System.Threading.Tasks.Task