-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for custom OIDC prompts #3409
Conversation
This commit adds support for custom OIDC prompt values. Read about possible prompt values here: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest Three cases are possible: * Prompt value is not set, this defaults to OIDC prompt value to select_account value to preserve backwards compatibility. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: 'login consent' ``` * Prompt value is set to empty string, it will be omitted from the auth request. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: '' ``` * Prompt value is set to non empty string, it will be included in the auth request as is. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: 'login consent' ``` Tested with Auth0 OIDC connector on teleport 4.2 enterprise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good. Yesterday I was considering naming this redirect_prompt
when chatting with @stevenGravy, but after re-reading the OIDC Docs prompt
is a better name as it's not directly related to the specifics of the redirect.
@russjones let me know when it's ok to merge, as I'm holding this until you folks release 4.2.4 |
This commit adds support for custom OIDC prompt values. Read about possible prompt values here: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest Three cases are possible: * Prompt value is not set, this defaults to OIDC prompt value to select_account value to preserve backwards compatibility. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: 'login consent' ``` * Prompt value is set to empty string, it will be omitted from the auth request. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: '' ``` * Prompt value is set to non empty string, it will be included in the auth request as is. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: 'login consent' ``` Tested with Auth0 OIDC connector on teleport 4.2 enterprise.
This commit adds support for custom OIDC prompt values. Read about possible prompt values here: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest Three cases are possible: * Prompt value is not set, this defaults to OIDC prompt value to select_account value to preserve backwards compatibility. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: 'login consent' ``` * Prompt value is set to empty string, it will be omitted from the auth request. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: '' ``` * Prompt value is set to non empty string, it will be included in the auth request as is. ```yaml kind: oidc version: v2 metadata: name: connector spec: prompt: 'login consent' ``` Tested with Auth0 OIDC connector on teleport 4.2 enterprise.
This commit adds support for custom OIDC prompt values.
Read about possible prompt values here:
https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
Three cases are possible:
OIDC prompt value to select_account value to preserve backwards
compatibility.
from the auth request.
in the auth request as is.
Tested with Auth0 OIDC connector on teleport 4.2 enterprise.