Documentation ¶
Index ¶
- Variables
- func New(authorizationEndpoint string, scope []string, ...) (*url.URL, error)
- type Option
- func WithACRValues(acrValues []string) Option
- func WithAccessType(accessType string) Option
- func WithCodeChallengeForPKCE(codeVerifier pkce.CodeVerifier, codeChallengeMethod pkce.CodeChallengeMethod) Option
- func WithDisplay(display string) Option
- func WithIDTokenHint(idTokenHint string) Option
- func WithLoginHint(loginHint string) Option
- func WithMaxAge(maxAge int64) Option
- func WithNonce(nonce string) Option
- func WithPrompt(prompt string) Option
- func WithResponseMode(responseMode string) Option
- func WithUILocales(uiLocales []string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParameterIsEmpty = errors.New("openid: Authentication Request: parameter is empty")
Functions ¶
func New ¶
func New(authorizationEndpoint string, scope []string, responseType, clientID, redirectURI, state string, opts ...Option) (*url.URL, error)
New returns URL for redirect response to User-Agent.
- authorization_endpoint: ref. https://openid.net/specs/openid-connect-discovery-1_0.html#:~:text=from%20this%20Issuer.-,authorization_endpoint,-REQUIRED.%20URL%20of
- scope: ref. https://openid.net/specs/openid-connect-core-1_0.html#:~:text=Authorization%20Code%20Flow%3A-,scope,-REQUIRED.%20OpenID%20Connect
- response_type: ref. https://openid.net/specs/openid-connect-core-1_0.html#:~:text=by%20this%20specification.-,response_type,-REQUIRED.%20OAuth%202.0
- client_id: ref. https://openid.net/specs/openid-connect-core-1_0.html#:~:text=value%20is%20code.-,client_id,-REQUIRED.%20OAuth%202.0%20Client
- redirect_uri: ref. https://openid.net/specs/openid-connect-core-1_0.html#:~:text=the%20Authorization%20Server.-,redirect_uri,-REQUIRED.%20Redirection%20URI
- state: ref. https://openid.net/specs/openid-connect-core-1_0.html#:~:text=a%20native%20application.-,state,-RECOMMENDED.%20Opaque%20value
Types ¶
type Option ¶
type Option func(*option)
func WithACRValues ¶
WithACRValues
func WithAccessType ¶
WithAccessType
func WithCodeChallengeForPKCE ¶
func WithCodeChallengeForPKCE(codeVerifier pkce.CodeVerifier, codeChallengeMethod pkce.CodeChallengeMethod) Option
WithCodeChallengeForPKCE
- code_challenge: REQUIRED. Code challenge. ref. https://www.rfc-editor.org/rfc/rfc7636#:~:text=following%20additional%20parameters%3A-,code_challenge,-REQUIRED.%20%20Code%20challenge
- code_challenge_method: OPTIONAL, defaults to "plain" if not present in the request. Code verifier transformation method is "S256" or "plain". ref. https://www.rfc-editor.org/rfc/rfc7636#:~:text=REQUIRED.%20%20Code%20challenge.-,code_challenge_method,-OPTIONAL
func WithDisplay ¶
WithDisplay
func WithIDTokenHint ¶
WithIDTokenHint
func WithLoginHint ¶
WithLoginHint
- login_hint: ref: https://openid.net/specs/openid-connect-core-1_0.html#:~:text=the%20id_token_hint%20value.-,login_hint,-OPTIONAL.%20Hint%20to
func WithMaxAge ¶
WithMaxAge
func WithPrompt ¶
WithPrompt
func WithResponseMode ¶
WithResponseMode
func WithUILocales ¶
WithUILocales
Click to show internal directories.
Click to hide internal directories.