fake

package
v0.0.0-...-f950c4b Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct{}

Fake in order to implement interface, struct is required

func (*Fake) CodeUrl

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

CodeUrl get url to redirect client for auth

func (*Fake) CodeUrl2

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

func (*Fake) Exchange

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

Exchange exchange code for Oauth2 token

func (*Fake) Exchange2

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

func (*Fake) Setup

func (o *Fake) Setup() error

Setup validate provider

func (*Fake) UserInfo

func (o *Fake) 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