C# Class Punchcard.ServiceStackJWT.JsonWebTokenAuthProvider

Inheritance: ServiceStack.Auth.AuthProvider, IAuthWithRequest
显示文件 Open project: Estyn/ServiceStackJWT

Private Properties

Property Type Description

Public Methods

Method Description
Authenticate ( IServiceBase authService, IAuthSession session, Authenticate request ) : object
IsAuthorized ( IAuthSession session, IAuthTokens tokens, Authenticate request = null ) : bool
JsonWebTokenAuthProvider ( string discoveryEndpoint, string audience = null ) : System

Creates a new JsonWebToken Auth Provider

PreAuthenticate ( IRequest request, IResponse response ) : void

Method Details

Authenticate() public method

public Authenticate ( IServiceBase authService, IAuthSession session, Authenticate request ) : object
authService IServiceBase
session IAuthSession
request Authenticate
return object

IsAuthorized() public method

public IsAuthorized ( IAuthSession session, IAuthTokens tokens, Authenticate request = null ) : bool
session IAuthSession
tokens IAuthTokens
request Authenticate
return bool

JsonWebTokenAuthProvider() public method

Creates a new JsonWebToken Auth Provider
public JsonWebTokenAuthProvider ( string discoveryEndpoint, string audience = null ) : System
discoveryEndpoint string aThe url to get the configuration informaion from.. (er "http://localhost:22530/" + ".well-known/openid-configuration")
audience string The client for openID (eg js_oidc)
return System

PreAuthenticate() public method

public PreAuthenticate ( IRequest request, IResponse response ) : void
request IRequest
response IResponse
return void