middlewares

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthUserData = "rokmonster.dev/auth/userdata"
)

Variables

This section is empty.

Functions

func NewOAuth2Middleware

func NewOAuth2Middleware(engine *gin.Engine, clientId, secret, domains string) *oauth2Middleware

Types

type OAuthClientInfo

type OAuthClientInfo struct {
	ID      string `json:"sub"`
	Name    string `json:"name"`
	Email   string `json:"email"`
	Picture string `json:"picture"`
}

type OAuthCredentions

type OAuthCredentions struct {
	ClientID string `json:"id"`
	Secret   string `json:"secret"`
}

Jump to

Keyboard shortcuts

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