Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2Service ¶
type OAuth2Service struct { SignUpRequestHandler oauth2.SignUpRequestHandler SingInRequestHandler oauth2.SignInRequestHandler RefreshRequestHandler oauth2.RefreshRequestHandler SignOutRequestHandler oauth2.LogOutRequestHandler }
func NewOAuth2Service ¶
func NewOAuth2Service(options OAuth2ServiceOptions) OAuth2Service
type OAuth2ServiceOptions ¶
type OAuth2ServiceOptions struct { AccessTokenCreator oauth2.AccessTokenCreator AccessTokenParser oauth2.AccessTokenParser AccessTokenExpiresIn time.Duration RefreshTokenCreator oauth2.RefreshTokenCreator RefreshTokenParser oauth2.RefreshTokenParser RefreshTokenExpiresIn time.Duration RefreshTokenSaver oauth2.RefreshTokenSaver RefreshTokenDeleter oauth2.RefreshTokenDeleter RefreshTokensDeleter oauth2.RefreshTokensDeleter RefreshTokenGetter oauth2.RefreshTokenGetter UserSaver oauth2.UserSaver UserFinder oauth2.UserFinder }
type Services ¶
type Services struct {
OAuth2Service OAuth2Service
}
func NewServices ¶
func NewServices(oAuth2Options OAuth2ServiceOptions) Services
Click to show internal directories.
Click to hide internal directories.