authcodeinforepo

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAuthFlowInfoByState

func DeleteAuthFlowInfoByState(tx *sqlx.Tx, state *state.State) error

DeleteAuthFlowInfoByState deletes the AuthFlowInfoIn for a given state

func SetCodeVerifier added in v0.3.0

func SetCodeVerifier(tx *sqlx.Tx, state *state.State, verifier string) error

SetCodeVerifier stores the passed PKCE code verifier

func UpdateTokenInfoByState added in v0.2.0

func UpdateTokenInfoByState(tx *sqlx.Tx, state *state.State, r restrictions.Restrictions, c, sc api.Capabilities, rot *api.Rotation, tokenName string) error

UpdateTokenInfoByState updates the stored AuthFlowInfo for the given state

Types

type AuthFlowInfo

type AuthFlowInfo struct {
	AuthFlowInfoOut
	PollingCode *transfercoderepo.TransferCode
}

AuthFlowInfo holds database information about a started authorization flow

func (*AuthFlowInfo) Store

func (i *AuthFlowInfo) Store(tx *sqlx.Tx) error

Store stores the AuthFlowInfoIn in the database as well as the linked polling code if it exists

type AuthFlowInfoOut

type AuthFlowInfoOut struct {
	State                *state.State
	Issuer               string
	Restrictions         restrictions.Restrictions
	Capabilities         api.Capabilities
	SubtokenCapabilities api.Capabilities
	Name                 string
	PollingCode          bool
	Rotation             *api.Rotation
	ResponseType         model.ResponseType
	MaxTokenLen          int
	CodeVerifier         string
}

AuthFlowInfoOut holds database information about a started authorization flow

func GetAuthFlowInfoByState

func GetAuthFlowInfoByState(state *state.State) (*AuthFlowInfoOut, error)

GetAuthFlowInfoByState returns AuthFlowInfoIn by state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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