authcodeinforepo

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAuthFlowInfoByState

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

DeleteAuthFlowInfoByState deletes the AuthFlowInfoIn for a given state

func SetCodeVerifier added in v0.3.0

func SetCodeVerifier(rlog log.Ext1FieldLogger, 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(
	rlog log.Ext1FieldLogger, tx *sqlx.Tx, state *state.State, r restrictions.Restrictions, c 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(rlog log.Ext1FieldLogger, 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
	pkg.AuthCodeFlowRequest
	PollingCode  bool
	CodeVerifier string
}

AuthFlowInfoOut holds database information about a started authorization flow

func GetAuthFlowInfoByState

func GetAuthFlowInfoByState(rlog log.Ext1FieldLogger, 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