oauth

package
v0.15.17-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExchangeToken

func ExchangeToken(endpoint string, token string) (string, error)

Types

type JWTResponse

type JWTResponse struct {
	Jwt string `json:"jwt"`
}

type OAuthServer

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

func NewOAuthServer

func NewOAuthServer(endpoint, frontendEndpoint string) *OAuthServer

func (*OAuthServer) GetAuthJWT

func (s *OAuthServer) GetAuthJWT() error

func (*OAuthServer) WithOnFailure

func (s *OAuthServer) WithOnFailure(onFailure OnAuthFailure) *OAuthServer

func (*OAuthServer) WithOnSuccess

func (s *OAuthServer) WithOnSuccess(onSuccess OnAuthSuccess) *OAuthServer

type OnAuthFailure

type OnAuthFailure func(err error)

type OnAuthSuccess

type OnAuthSuccess func(token string, jwt string)

type Option

type Option func(*OAuthServer)

Jump to

Keyboard shortcuts

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