C# Class TokenAuthentication.Infrastructure.Authentication.SimpleAuthorizationServerProvider

Implements an OAuthAuthorizationServerProvider using a custom authentication backend.
Inheritance: Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerProvider
Datei anzeigen Open project: bytefish/NancyOwinExample

Public Methods

Method Description
GrantResourceOwnerCredentials ( OAuthGrantResourceOwnerCredentialsContext context ) : System.Threading.Tasks.Task
SimpleAuthorizationServerProvider ( IAuthenticationService authService ) : System.Security.Claims
ValidateClientAuthentication ( Microsoft.Owin.Security.OAuth.OAuthValidateClientAuthenticationContext context ) : System.Threading.Tasks.Task

Private Methods

Method Description
CredentialsAvailable ( OAuthGrantResourceOwnerCredentialsContext context ) : bool
GetCredentials ( OAuthGrantResourceOwnerCredentialsContext context ) : Credentials

Method Details

GrantResourceOwnerCredentials() public method

public GrantResourceOwnerCredentials ( OAuthGrantResourceOwnerCredentialsContext context ) : System.Threading.Tasks.Task
context OAuthGrantResourceOwnerCredentialsContext
return System.Threading.Tasks.Task

SimpleAuthorizationServerProvider() public method

public SimpleAuthorizationServerProvider ( IAuthenticationService authService ) : System.Security.Claims
authService IAuthenticationService
return System.Security.Claims

ValidateClientAuthentication() public method

public ValidateClientAuthentication ( Microsoft.Owin.Security.OAuth.OAuthValidateClientAuthenticationContext context ) : System.Threading.Tasks.Task
context Microsoft.Owin.Security.OAuth.OAuthValidateClientAuthenticationContext
return System.Threading.Tasks.Task