Documentation
¶
Index ¶
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
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
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
Click to show internal directories.
Click to hide internal directories.