auth

package
v0.0.0-...-63b66d1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	AuthURI      string
	ClientID     string
	ClientSecret string
	ServerKey    *rsa.PublicKey
	Secret       string
}

func (*AuthClient) GetHandler

func (ac *AuthClient) GetHandler() gin.HandlerFunc

func (*AuthClient) GetHandlerForAPI

func (ac *AuthClient) GetHandlerForAPI() gin.HandlerFunc

func (*AuthClient) GetHandlerIntegratedLogin

func (ac *AuthClient) GetHandlerIntegratedLogin() gin.HandlerFunc

func (*AuthClient) RegisterCallbackHandler

func (ac *AuthClient) RegisterCallbackHandler(e *gin.Engine)

func (*AuthClient) RegisterHandler

func (ac *AuthClient) RegisterHandler(e *gin.Engine)

type AuthClientLocalSecret

type AuthClientLocalSecret struct {
	LocalSecret string
}

func (*AuthClientLocalSecret) CreateLocalSecret

func (ac *AuthClientLocalSecret) CreateLocalSecret() string

func (*AuthClientLocalSecret) GetHandler

func (ac *AuthClientLocalSecret) GetHandler() gin.HandlerFunc

type AuthRequest

type AuthRequest struct {
	Id          string
	TTL         time.Time
	RedirectURI string
	Path        string
}

func GetRequest

func GetRequest(id string) (request *AuthRequest)

GetRequest gets an existing AuthRequest by id

func NewRequest

func NewRequest() (request *AuthRequest, err error)

NewRequest creates a new AuthRequest

type AuthServer

type AuthServer struct {
	UIPath string
}

func (*AuthServer) Register

func (a *AuthServer) Register(r *gin.Engine)

type ClaimsWithScope

type ClaimsWithScope struct {
	Scopes []string `json:"scopes,omitempty"`
	jwt.StandardClaims
}

type OauthTokenResponse

type OauthTokenResponse struct {
	AccessToken string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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