Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusNeedToken = iota StatusTokenReady )
Iota token.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OIDCState ¶
type OIDCState struct { Status int `json:"status"` AccessToken string `json:"access-token"` IDToken string `json:"id-token"` RefreshToken string `json:"refresh-token"` RequestID string `json:"req-id"` RequestPath string `json:"req-path"` OAuthState string `json:"oauth-state"` Scheme string `json:"scheme"` }
OIDCState defines the values kept in state.
func ConvertToType ¶
ConvertToType Convert Byte to State.
func (*OIDCState) GenerateOauthState ¶
GenerateOauthState generates a new Oauth State from random bytes. The state define a unique request from a particular user and used to identity user during callback or subsequent calls.
func (*OIDCState) IsNewToken ¶
IsNewToken check if current state is new and token from idp is needed.
func (*OIDCState) IsTokenReady ¶
IsTokenReady check if token is ready.
Click to show internal directories.
Click to hide internal directories.