basic

package
v0.0.0-...-9e600c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oauth2Basic

type Oauth2Basic struct{}

func (*Oauth2Basic) CodeUrl

func (o *Oauth2Basic) CodeUrl(state string) string

CodeUrl get url to redirect client for auth

func (*Oauth2Basic) CodeUrl2

func (o *Oauth2Basic) CodeUrl2(state string) string

func (*Oauth2Basic) Exchange

func (o *Oauth2Basic) Exchange(code string) (*oauth2.Token, error)

Exchange exchange code for Oauth2 token

func (*Oauth2Basic) Exchange2

func (o *Oauth2Basic) Exchange2(code string) (*oauth2.Token, error)

func (*Oauth2Basic) Logout

func (o *Oauth2Basic) Logout() error

func (*Oauth2Basic) Setup

func (o *Oauth2Basic) Setup() error

Create an OAuth2 shim for BasicAuth

func (*Oauth2Basic) UserInfo

func (o *Oauth2Basic) UserInfo(oauth2Token *oauth2.Token) (*model.User, error)

UserInfo get token user

Jump to

Keyboard shortcuts

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