auth

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindApi

func BindApi(ctx *gin.Context)

func Init

func Init(e *gin.Engine)

func OAuth2

func OAuth2(ctx *gin.Context)

GET /oauth2/login/:type

func OAuth2Api

func OAuth2Api(ctx *gin.Context)

POST

func OAuth2Callback

func OAuth2Callback(ctx *gin.Context)

GET /oauth2/callback/:type

func OAuth2CallbackApi

func OAuth2CallbackApi(ctx *gin.Context)

POST /oauth2/callback/:type

func OAuth2EnabledApi

func OAuth2EnabledApi(ctx *gin.Context)

func RenderRedirect

func RenderRedirect(ctx *gin.Context, url string) error

func RenderToken

func RenderToken(ctx *gin.Context, url, token string) error

func UnBindApi

func UnBindApi(ctx *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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