example

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAccessToken

func DownloadAccessToken(url string, auth *osin.BasicAuth, output map[string]interface{}) error

func HandleLoginPage

func HandleLoginPage(ar *osin.AuthorizeRequest, w http.ResponseWriter, r *http.Request) bool

Types

type TestStorage

type TestStorage struct {
	// contains filtered or unexported fields
}

func NewTestStorage

func NewTestStorage() *TestStorage

func (*TestStorage) Clone

func (s *TestStorage) Clone(ctx context.Context) osin.Storage

func (*TestStorage) Close

func (s *TestStorage) Close()

func (*TestStorage) GetClient

func (s *TestStorage) GetClient(ctx context.Context, id string) (osin.Client, error)

func (*TestStorage) LoadAccess

func (s *TestStorage) LoadAccess(ctx context.Context, code string) (*osin.AccessData, error)

func (*TestStorage) LoadAuthorize

func (s *TestStorage) LoadAuthorize(ctx context.Context, code string) (*osin.AuthorizeData, error)

func (*TestStorage) LoadRefresh

func (s *TestStorage) LoadRefresh(ctx context.Context, code string) (*osin.AccessData, error)

func (*TestStorage) RemoveAccess

func (s *TestStorage) RemoveAccess(ctx context.Context, code string) error

func (*TestStorage) RemoveAuthorize

func (s *TestStorage) RemoveAuthorize(ctx context.Context, code string) error

func (*TestStorage) RemoveRefresh

func (s *TestStorage) RemoveRefresh(ctx context.Context, code string) error

func (*TestStorage) SaveAccess

func (s *TestStorage) SaveAccess(ctx context.Context, data *osin.AccessData) error

func (*TestStorage) SaveAuthorize

func (s *TestStorage) SaveAuthorize(ctx context.Context, data *osin.AuthorizeData) error

func (*TestStorage) SetClient

func (s *TestStorage) SetClient(ctx context.Context, id string, client osin.Client) error

Directories

Path Synopsis
An example of adding OpenID Connect support to osin.
An example of adding OpenID Connect support to osin.

Jump to

Keyboard shortcuts

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