Documentation ¶
Index ¶
- func Refresh(rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, ...) (*oidcReqRes.OIDCTokenResponse, *oidcReqRes.OIDCErrorResponse, error)
- func RefreshFlowAndUpdate(rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, ...) (*oidcReqRes.OIDCTokenResponse, *oidcReqRes.OIDCErrorResponse, error)
- func RefreshFlowAndUpdateDB(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 Refresh ¶
func Refresh( rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, mytoken, rt, scopes, audiences string, ) (*oidcReqRes.OIDCTokenResponse, *oidcReqRes.OIDCErrorResponse, error)
Refresh uses an refresh token to obtain a new access token; if the refresh token changes, this is ignored
func RefreshFlowAndUpdate ¶
func RefreshFlowAndUpdate( rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, mytoken, rt, scopes, audiences string, updateFnc UpdateChangedRT, ) (*oidcReqRes.OIDCTokenResponse, *oidcReqRes.OIDCErrorResponse, error)
RefreshFlowAndUpdate uses an refresh token to obtain a new access token; if the refresh token changes, the UpdateChangedRT function is used to update the refresh token
func RefreshFlowAndUpdateDB ¶
func RefreshFlowAndUpdateDB( rlog log.Ext1FieldLogger, provider *config.ProviderConf, tokenID mtid.MTID, mytoken, rt, scopes, audiences string, ) (*oidcReqRes.OIDCTokenResponse, *oidcReqRes.OIDCErrorResponse, error)
RefreshFlowAndUpdateDB uses an refresh token to obtain a new access token; if the refresh token changes, it is updated in the database
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.