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.AspNet.Authentication.JwtBearer.JwtBearerEvents
Show file Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps

Public Methods

Method Description
AuthenticationFailed ( Microsoft.AspNet.Authentication.JwtBearer.AuthenticationFailedContext context ) : System.Threading.Tasks.Task
ReceivedToken ( Microsoft.AspNet.Authentication.JwtBearer.ReceivedTokenContext context ) : System.Threading.Tasks.Task
ReceivingToken ( Microsoft.AspNet.Authentication.JwtBearer.ReceivingTokenContext context ) : System.Threading.Tasks.Task
SurveysJwtBearerEvents ( ILogger logger ) : System.IdentityModel.Tokens
ValidatedToken ( Microsoft.AspNet.Authentication.JwtBearer.ValidatedTokenContext 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.AspNet.Authentication.JwtBearer.AuthenticationFailedContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNet.Authentication.JwtBearer.AuthenticationFailedContext
return System.Threading.Tasks.Task

ReceivedToken() public method

public ReceivedToken ( Microsoft.AspNet.Authentication.JwtBearer.ReceivedTokenContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNet.Authentication.JwtBearer.ReceivedTokenContext
return System.Threading.Tasks.Task

ReceivingToken() public method

public ReceivingToken ( Microsoft.AspNet.Authentication.JwtBearer.ReceivingTokenContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNet.Authentication.JwtBearer.ReceivingTokenContext
return System.Threading.Tasks.Task

SurveysJwtBearerEvents() public method

public SurveysJwtBearerEvents ( ILogger logger ) : System.IdentityModel.Tokens
logger ILogger
return System.IdentityModel.Tokens

ValidatedToken() public method

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