Documentation ¶
Index ¶
- func DoFlowAndUpdate(rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, ...) (*oidcreqres.OIDCTokenResponse, *oidcreqres.OIDCErrorResponse, error)
- func DoFlowAndUpdateDB(rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, ...) (*oidcreqres.OIDCTokenResponse, *oidcreqres.OIDCErrorResponse, error)
- func DoFlowWithoutUpdate(rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, ...) (*oidcreqres.OIDCTokenResponse, *oidcreqres.OIDCErrorResponse, error)
- type UpdateChangedRT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoFlowAndUpdate ¶ added in v0.6.1
func DoFlowAndUpdate( rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, mytoken, rt, scopes, audiences string, updateFnc UpdateChangedRT, ) (*oidcreqres.OIDCTokenResponse, *oidcreqres.OIDCErrorResponse, error)
DoFlowAndUpdate uses a refresh token to obtain a new access token; if the refresh token changes, the UpdateChangedRT function is used to update the refresh token
func DoFlowAndUpdateDB ¶ added in v0.6.1
func DoFlowAndUpdateDB( rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, mytoken, rt, scopes, audiences string, ) (*oidcreqres.OIDCTokenResponse, *oidcreqres.OIDCErrorResponse, error)
DoFlowAndUpdateDB uses a refresh token to obtain a new access token; if the refresh token changes, it is updated in the database
func DoFlowWithoutUpdate ¶ added in v0.6.1
func DoFlowWithoutUpdate( rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, mytoken, rt, scopes, audiences string, ) (*oidcreqres.OIDCTokenResponse, *oidcreqres.OIDCErrorResponse, error)
DoFlowWithoutUpdate uses a refresh token to obtain a new access token; if the refresh token changes, this is ignored
Types ¶
type UpdateChangedRT ¶
UpdateChangedRT is a function that should update a refresh token, it takes the old value as well as the new one
Click to show internal directories.
Click to hide internal directories.