C# 클래스 OSharp.Core.Security.OsharpAuthorizationServerProvider

Osharp-OAuth验证实现服务提供者
상속: Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerProvider
파일 보기 프로젝트 열기: i66soft/osharp

공개 메소드들

메소드 설명
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创建时填写的主域名

메소드 상세

GrantClientCredentials() 공개 메소드

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

GrantRefreshToken() 공개 메소드

刷新客户端令牌
public GrantRefreshToken ( OAuthGrantRefreshTokenContext context ) : System.Threading.Tasks.Task
context OAuthGrantRefreshTokenContext
리턴 System.Threading.Tasks.Task

GrantResourceOwnerCredentials() 공개 메소드

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

OsharpAuthorizationServerProvider() 공개 메소드

初始化一个OsharpAuthorizationServerProvider类型的新实例
public OsharpAuthorizationServerProvider ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
리턴 System

ValidateClientAuthentication() 공개 메소드

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

ValidateClientRedirectUri() 공개 메소드

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