C# Class OSharp.Core.Security.OsharpRefreshTokenProvider

Osharp-RefreshToken提供者
Inheritance: Microsoft.Owin.Security.Infrastructure.AuthenticationTokenProvider, IRefreshTokenProvider
ファイルを表示 Open project: i66soft/osharp

Public Methods

Method Description
CreateAsync ( Microsoft.Owin.Security.Infrastructure.AuthenticationTokenCreateContext context ) : System.Threading.Tasks.Task

创建RefreshToken,在客户端请求AccessToken的时候自动调用

OsharpRefreshTokenProvider ( IOAuthClientRefreshTokenStore clientRefreshTokenStore ) : System

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

ReceiveAsync ( Microsoft.Owin.Security.Infrastructure.AuthenticationTokenReceiveContext context ) : System.Threading.Tasks.Task

移除RefreshToken,在客户端使用RefreshToken请求新的AccessToken的时候自动调用

Method Details

CreateAsync() public method

创建RefreshToken,在客户端请求AccessToken的时候自动调用
public CreateAsync ( Microsoft.Owin.Security.Infrastructure.AuthenticationTokenCreateContext context ) : System.Threading.Tasks.Task
context Microsoft.Owin.Security.Infrastructure.AuthenticationTokenCreateContext
return System.Threading.Tasks.Task

OsharpRefreshTokenProvider() public method

初始化一个OsharpRefreshTokenProvider类型的新实例
public OsharpRefreshTokenProvider ( IOAuthClientRefreshTokenStore clientRefreshTokenStore ) : System
clientRefreshTokenStore IOAuthClientRefreshTokenStore
return System

ReceiveAsync() public method

移除RefreshToken,在客户端使用RefreshToken请求新的AccessToken的时候自动调用
public ReceiveAsync ( Microsoft.Owin.Security.Infrastructure.AuthenticationTokenReceiveContext context ) : System.Threading.Tasks.Task
context Microsoft.Owin.Security.Infrastructure.AuthenticationTokenReceiveContext
return System.Threading.Tasks.Task