Documentation ¶
Index ¶
- Variables
- func AuthorizationCode(req TokenRequest) (*dbTypes.OAuthLogin, *dbTypes.User, error)
- func CleanupAuthorization(req TokenRequest) (bool, error)
- func CreateRefreshToken(login *dbTypes.OAuthLogin, user *dbTypes.User) (string, error)
- func HandleGrantType(req TokenRequest) (*dbTypes.OAuthLogin, *dbTypes.User, error)
- func RefreshToken(req TokenRequest) (*dbTypes.OAuthLogin, *dbTypes.User, error)
- type TokenRequest
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AuthorizationCode ¶
func AuthorizationCode(req TokenRequest) (*dbTypes.OAuthLogin, *dbTypes.User, error)
func CleanupAuthorization ¶
func CleanupAuthorization(req TokenRequest) (bool, error)
func CreateRefreshToken ¶
func HandleGrantType ¶
func HandleGrantType(req TokenRequest) (*dbTypes.OAuthLogin, *dbTypes.User, error)
func RefreshToken ¶
func RefreshToken(req TokenRequest) (*dbTypes.OAuthLogin, *dbTypes.User, error)
Types ¶
type TokenRequest ¶
type TokenRequest struct { GrantType string `form:"grant_type" json:"grant_type"` ClientID string `form:"client_id" json:"client_id"` ClientSecret string `form:"client_secret" json:"client_secret"` RefreshToken string `form:"refresh_token" json:"refresh_token"` Code string `form:"code" json:"code"` RedirectURI string `form:"redirect_uri" json:"redirect_uri"` CodeVerifier string `form:"code_verifier" json:"code_verifier"` ResponseType string `form:"response_type" json:"response_type"` Scope []string `form:"scope" json:"scope"` }
Click to show internal directories.
Click to hide internal directories.