package
0.0.0-20240124021003-ccde4870036b
Repository: https://github.com/arif9878/oauth2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewOauthAccessToken creates new OauthAccessToken instance.
NewOauthAuthorizationCode creates new OauthAuthorizationCode instance.
NewOauthRefreshToken creates new OauthRefreshToken instance.
OauthAccessTokenPreload sets up Gorm preloads for an access token object.
OauthAccessTokenPreloadWithPrefix sets up Gorm preloads for an access token object, and prefixes with prefix for nested objects.
OauthAuthorizationCodePreload sets up Gorm preloads for an auth code object.
OauthAuthorizationCodePreloadWithPrefix sets up Gorm preloads for an auth code object, and prefixes with prefix for nested objects.
OauthRefreshTokenPreload sets up Gorm preloads for a refresh token object.
OauthRefreshTokenPreloadWithPrefix sets up Gorm preloads for a refresh token object, and prefixes with prefix for nested objects.

# Structs

MyGormModel mimixks GormModel but uses uuid's for ID, generated in go.
OauthAccessToken ...
OauthAuthorizationCode ...
OauthClient ...
OauthRefreshToken ...
OauthRole is a one of roles user can have (currently superuser or user).
OauthScope ...
OauthUser ...
TimestampModel ...