Documentation ¶
Index ¶
- func CreatePrivateKeyJwt(clientID string, x509Cert x509.Certificate, tokenEndpoint string, ...) (string, error)
- func HandleCorpIdpExchangeFlow(clientID string, clientSecret string, existingIdToken string, ...) map[string]interface{}
- func HandleOpenIDFlow(clientID, clientSecret, callbackURL string, scopeParameter string, ...) (string, string)
- func HandleRefreshFlow(clientID string, clientSecret string, existingRefresh string, ...) string
- type OIDC_Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePrivateKeyJwt ¶
func CreatePrivateKeyJwt(clientID string, x509Cert x509.Certificate, tokenEndpoint string, privateKey crypto.PrivateKey) (string, error)
func HandleOpenIDFlow ¶
Types ¶
type OIDC_Token ¶
type OIDC_Token struct { // ID token according to OIDC standard, always JWT IdToken string `json:"id_token"` // AccessToken is the token according to OAuth2 standard, might be opaque or JWT AccessToken string `json:"access_token"` // RefreshToken is a token that's used by the application RefreshToken string `json:"refresh_token,omitempty"` // contains filtered or unexported fields }
take from oauth2.token structure
Click to show internal directories.
Click to hide internal directories.