service

package
v0.0.0-...-f767cfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 2 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL