Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAccessTokenNotFound = fmt.Errorf("access token not found")
View Source
var ErrAuthResultNotFound = fmt.Errorf("auth result not found")
View Source
var ErrInvalidIDPResponse = fmt.Errorf("invalid identity provider response")
View Source
var ErrRawTokenNotFound = fmt.Errorf("raw token not found")
Functions ¶
Types ¶
type IDPResp ¶
type IDPResp struct {
// contains filtered or unexported fields
}
IDPResp represents a response from an Identity Provider (IDP) It can contain either an AuthResult, AccessToken, or a raw token string
func NewIDPResp ¶
NewIDPResp creates a new IDPResp with the given values It validates the input and ensures the response type matches the provided value
func (*IDPResp) AccessToken ¶
func (a *IDPResp) AccessToken() (azcore.AccessToken, error)
AccessToken returns the AccessToken if present, or an empty AccessToken if not set Use HasAccessToken() to check if the value is actually set
func (*IDPResp) AuthResult ¶
func (a *IDPResp) AuthResult() (public.AuthResult, error)
AuthResult returns the AuthResult if present, or an empty AuthResult if not set Use HasAuthResult() to check if the value is actually set
Click to show internal directories.
Click to hide internal directories.