Documentation
¶
Index ¶
- Variables
- func BindApi(ctx *gin.Context)
- func Init(e *gin.Engine)
- func OAuth2(ctx *gin.Context)
- func OAuth2Api(ctx *gin.Context)
- func OAuth2Callback(ctx *gin.Context)
- func OAuth2CallbackApi(ctx *gin.Context)
- func OAuth2EnabledApi(ctx *gin.Context)
- func RenderRedirect(ctx *gin.Context, url string) error
- func RenderToken(ctx *gin.Context, url, token string) error
- func UnBindApi(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Oauth2EnabledCache = refreshcache.NewRefreshCache[[]provider.OAuth2Provider](func() ([]provider.OAuth2Provider, error) { a := vec.New[provider.OAuth2Provider](vec.WithCmpEqual[provider.OAuth2Provider](func(v1, v2 provider.OAuth2Provider) bool { return v1 == v2 }), vec.WithCmpLess[provider.OAuth2Provider](func(v1, v2 provider.OAuth2Provider) bool { return v1 < v2 })) providers.EnabledProvider().Range(func(key provider.OAuth2Provider, value provider.ProviderInterface) bool { a.Push(key) return true }) return a.SortStable().Slice(), nil }, time.Hour) )
Functions ¶
func OAuth2EnabledApi ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.