auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCodeURL

func AuthCodeURL(ctx *goweb.Context, conf *oauth2.Config) (string, error)

func CheckToken

func CheckToken(rac *common.RestApiClient, token *oauth2.Token, introspectTokenURL string, skip_tls_verify bool) (ok bool, sub string, err error)

func Exchange

func Exchange(ctx *goweb.Context, conf *oauth2.Config, http_client *http.Client) (*oauth2.Token, error)

func GetBearerToken

func GetBearerToken(ctx *goweb.Context) (string, error)

func GetSessionByToken

func GetSessionByToken(rac *common.RestApiClient, ctx *goweb.Context, conf *oauth2.Config, introspectTokenURL string, skip_tls_verify bool) (*session, error)

func HasLoggedIn

func HasLoggedIn(rac *common.RestApiClient, ctx *goweb.Context, conf *oauth2.Config, introspectTokenURL string, skip_tls_verify bool) bool

func Login

func Login(ctx *goweb.Context, token *oauth2.Token, jwk_json_url string, expire_time *time.Time) *session

func Logout

func Logout(rac *common.RestApiClient, ctx *goweb.Context, conf *oauth2.Config, introspectTokenURL string, skip_tls_verify bool, postLogout func(id_token string))

Types

This section is empty.

Jump to

Keyboard shortcuts

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