Documentation ¶
Overview ¶
package zitadel provides a Provider for OpenID Connect (oidc), backed by the github.com/zitadel/oidc/pkg/client package.
Index ¶
- type OIDC
- func (o *OIDC) AuthCodeURL(state string) (string, string, error)
- func (o *OIDC) EndSessionURL() (url.URL, error)
- func (o *OIDC) Exchange(code, verifier string) (token *oauth2.Token, unmarshalUser func(interface{}) error, err error)
- func (o *OIDC) Refresh(refreshToken string) (token *oauth2.Token, unmarshalUser func(interface{}) error, err error)
- func (o *OIDC) SetRedirectURL(url string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDC ¶
type OIDC struct { Issuer string ClientID string ClientSecret string Scopes []string HTTPClient *http.Client // will use http.DefaultClient if let nil // contains filtered or unexported fields }
OIDC implements a Provider for the OpenID Connect flow. The unexported fields have a correct default value (hence no New method needed).
func (*OIDC) AuthCodeURL ¶
AuthCodeURL returns the Auth-URL to redirect the user to
func (*OIDC) Exchange ¶
func (o *OIDC) Exchange(code, verifier string) (token *oauth2.Token, unmarshalUser func(interface{}) error, err error)
Exchange exchanges the code and provides a way to unmarshal the user info
func (*OIDC) SetRedirectURL ¶
SetRedirectURL sets the local callback URL.
Click to show internal directories.
Click to hide internal directories.