Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OauthHandler ¶
type OauthHandler struct {
// contains filtered or unexported fields
}
func NewOauthHandler ¶
func NewOauthHandler(clientId string, clientSecret string, redirectUrl string, issuerUrl string, scopes []string) (*OauthHandler, error)
NewOauthHandler creates a handler that is meant to operate between oidc and oauth to handle the necessary redirects and issuer interactions. This has been tested against Cognito specifically.
func (*OauthHandler) AuthCodeUrl ¶
func (h *OauthHandler) AuthCodeUrl(state string, opts ...oauth2.AuthCodeOption) string
func (*OauthHandler) ExchangeCode ¶
func (*OauthHandler) Verifier ¶
func (h *OauthHandler) Verifier() *oidc.IDTokenVerifier
Click to show internal directories.
Click to hide internal directories.