C# Class SharpOAuthProvider.Domain.Service.AuthorizationGrantService

Inheritance: SharpOAuth2.Provider.Domain.AuthorizationGrantBase, IAuthorizationGrantService
显示文件 Open project: ghorsey/SharpOAuth2

Public Methods

Method Description
AuthorizationGrantService ( ITokenRepository tokenRepo, IClientRepository clientRepo ) : System
ConsumeGrant ( IAuthorizationGrant grant ) : void
FindAuthorizationGrant ( string authorizationCode ) : IAuthorizationGrant
IssueAuthorizationGrant ( IAuthorizationContext context ) : IAuthorizationGrant
ValidateGrant ( SharpOAuth2 context, IAuthorizationGrant grant ) : bool

Method Details

AuthorizationGrantService() public method

public AuthorizationGrantService ( ITokenRepository tokenRepo, IClientRepository clientRepo ) : System
tokenRepo ITokenRepository
clientRepo IClientRepository
return System

ConsumeGrant() public method

public ConsumeGrant ( IAuthorizationGrant grant ) : void
grant IAuthorizationGrant
return void

FindAuthorizationGrant() public method

public FindAuthorizationGrant ( string authorizationCode ) : IAuthorizationGrant
authorizationCode string
return IAuthorizationGrant

IssueAuthorizationGrant() public method

public IssueAuthorizationGrant ( IAuthorizationContext context ) : IAuthorizationGrant
context IAuthorizationContext
return IAuthorizationGrant

ValidateGrant() public method

public ValidateGrant ( SharpOAuth2 context, IAuthorizationGrant grant ) : bool
context SharpOAuth2
grant IAuthorizationGrant
return bool