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

Osharp-RefreshToken提供者
상속: Microsoft.Owin.Security.Infrastructure.AuthenticationTokenProvider, IRefreshTokenProvider
파일 보기 프로젝트 열기: i66soft/osharp

공개 메소드들

메소드 설명
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的时候自动调用

메소드 상세

CreateAsync() 공개 메소드

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

OsharpRefreshTokenProvider() 공개 메소드

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

ReceiveAsync() 공개 메소드

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