Documentation ¶
Index ¶
- func DeleteAuthFlowInfoByState(rlog log.Ext1FieldLogger, tx *sqlx.Tx, state *state.State) error
- func SetCodeVerifier(rlog log.Ext1FieldLogger, tx *sqlx.Tx, state *state.State, verifier string) error
- func UpdateTokenInfoByState(rlog log.Ext1FieldLogger, tx *sqlx.Tx, state *state.State, ...) error
- type AuthFlowInfo
- type AuthFlowInfoOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAuthFlowInfoByState ¶
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
Click to show internal directories.
Click to hide internal directories.