auth

package
v0.0.0-...-6d50a0b Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserVerifier

type UserVerifier struct {
	*stor.Store
}

func (*UserVerifier) AddClaims

func (*UserVerifier) AddClaims(tokenType oauth.TokenType, credential, tokenID, scope string, r *http.Request) (map[string]string, error)

AddClaims provides additional claims to the token

func (*UserVerifier) AddProperties

func (*UserVerifier) AddProperties(tokenType oauth.TokenType, credential, tokenID, scope string, r *http.Request) (map[string]string, error)

AddProperties provides additional information to the token response

func (*UserVerifier) StoreTokenID

func (*UserVerifier) StoreTokenID(tokenType oauth.TokenType, credential, tokenID, refreshTokenID string) error

StoreTokenID saves the token id generated for the user

func (*UserVerifier) ValidateClient

func (*UserVerifier) ValidateClient(clientID, clientSecret, scope string, r *http.Request) error

ValidateClient validates clientID and secret returning an error if the client credentials are wrong

func (*UserVerifier) ValidateCode

func (*UserVerifier) ValidateCode(clientID, clientSecret, code, redirectURI string, r *http.Request) (string, error)

ValidateCode validates token ID

func (*UserVerifier) ValidateTokenID

func (*UserVerifier) ValidateTokenID(tokenType oauth.TokenType, credential, tokenID, refreshTokenID string) error

ValidateTokenID validates token ID

func (*UserVerifier) ValidateUser

func (v *UserVerifier) ValidateUser(username, password, scope string, r *http.Request) error

ValidateUser validates username and password returning an error if the user credentials are wrong

Jump to

Keyboard shortcuts

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