Documentation
¶
Overview ¶
Package refresh implements rotating refresh-token exchange logic.
Index ¶
Constants ¶
View Source
const ( // InvalidGrant means the supplied grant is unusable. InvalidGrant = "invalid_grant" // InvalidScope means the requested scope exceeds the original grant. InvalidScope = "invalid_scope" // Temporary means the operation can be retried. Temporary = "temporarily_unavailable" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct{ Token, ClientID, Scope string }
Request contains the protocol-independent refresh request.
type Result ¶
type Result struct {
AccessToken, IDToken, RefreshToken, Scope, SID, DPoPJKT string
AccessExpiry time.Time
}
Result contains newly issued rotating token material.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service executes refresh grants against current policy and upstream state.
Click to show internal directories.
Click to hide internal directories.