C# Class OSharp.Core.Security.OsharpAuthorizationServerProvider

Osharp-OAuth验证实现服务提供者
Inheritance: Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerProvider
Afficher le fichier Open project: i66soft/osharp

Méthodes publiques

Méthode Description
GrantClientCredentials ( OAuthGrantClientCredentialsContext context ) : System.Threading.Tasks.Task

当客户端Id与客户端密钥验证通过后,生成在线票据令牌

GrantRefreshToken ( OAuthGrantRefreshTokenContext context ) : System.Threading.Tasks.Task

刷新客户端令牌

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

验证用户名与密码,并生成在线票据令牌

OsharpAuthorizationServerProvider ( IServiceProvider serviceProvider ) : System

初始化一个OsharpAuthorizationServerProvider类型的新实例

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

验证请求中的客户端Id与客户端密钥的合法性

ValidateClientRedirectUri ( Microsoft.Owin.Security.OAuth.OAuthValidateClientRedirectUriContext context ) : System.Threading.Tasks.Task

验证重定向域名是否符合当前客户端Id创建时填写的主域名

Method Details

GrantClientCredentials() public méthode

当客户端Id与客户端密钥验证通过后,生成在线票据令牌
public GrantClientCredentials ( OAuthGrantClientCredentialsContext context ) : System.Threading.Tasks.Task
context OAuthGrantClientCredentialsContext
Résultat System.Threading.Tasks.Task

GrantRefreshToken() public méthode

刷新客户端令牌
public GrantRefreshToken ( OAuthGrantRefreshTokenContext context ) : System.Threading.Tasks.Task
context OAuthGrantRefreshTokenContext
Résultat System.Threading.Tasks.Task

GrantResourceOwnerCredentials() public méthode

验证用户名与密码,并生成在线票据令牌
public GrantResourceOwnerCredentials ( OAuthGrantResourceOwnerCredentialsContext context ) : System.Threading.Tasks.Task
context OAuthGrantResourceOwnerCredentialsContext
Résultat System.Threading.Tasks.Task

OsharpAuthorizationServerProvider() public méthode

初始化一个OsharpAuthorizationServerProvider类型的新实例
public OsharpAuthorizationServerProvider ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
Résultat System

ValidateClientAuthentication() public méthode

验证请求中的客户端Id与客户端密钥的合法性
public ValidateClientAuthentication ( Microsoft.Owin.Security.OAuth.OAuthValidateClientAuthenticationContext context ) : System.Threading.Tasks.Task
context Microsoft.Owin.Security.OAuth.OAuthValidateClientAuthenticationContext
Résultat System.Threading.Tasks.Task

ValidateClientRedirectUri() public méthode

验证重定向域名是否符合当前客户端Id创建时填写的主域名
public ValidateClientRedirectUri ( Microsoft.Owin.Security.OAuth.OAuthValidateClientRedirectUriContext context ) : System.Threading.Tasks.Task
context Microsoft.Owin.Security.OAuth.OAuthValidateClientRedirectUriContext
Résultat System.Threading.Tasks.Task