-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
response_types_supported looks incorrect #1449
Comments
You're probably correct. The spec isn't explicit here, I think:
...but in its example, it includes the concatenated strings like you suggested:
Anyways, I think the |
@srenatus Thank you for confirmation! In rfc6749, response_type can be set only one "code" or "token".
Now dex looks support multiple response_type in any combination. |
Hi, I know this is an old issue, but I have stumbled on an OIDC client Although dex supports the I hot fixed with: diff --git a/server/oauth2.go b/server/oauth2.go
index 23f06b82..02014eda 100644
--- a/server/oauth2.go
+++ b/server/oauth2.go
@@ -133,9 +133,10 @@ const (
)
const (
- responseTypeCode = "code" // "Regular" flow
- responseTypeToken = "token" // Implicit flow for frontend apps.
- responseTypeIDToken = "id_token" // ID Token in url fragment
+ responseTypeCode = "code" // "Regular" flow
+ responseTypeToken = "token" // Implicit flow for frontend apps.
+ responseTypeIDToken = "id_token" // ID Token in url fragment
+ responseTypeHybridToken = "code id_token"
)
const (
diff --git a/server/server.go b/server/server.go
index 6b653fdb..9a2f1867 100755
--- a/server/server.go
+++ b/server/server.go
@@ -216,7 +216,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
supportedRes := make(map[string]bool)
for _, respType := range c.SupportedResponseTypes {
switch respType {
- case responseTypeCode, responseTypeIDToken, responseTypeToken:
+ case responseTypeCode, responseTypeIDToken, responseTypeToken, responseTypeHybridToken:
default:
return nil, fmt.Errorf("unsupported response_type %q", respType)
} But do you think it would be worth adding support for this ? |
Thanks for useful tool. I want to confirm about response_types_supported.
For example, I think that if we set responseTypes '["code", "token"]' on configfile, '.well-known/openid-configuration's response_types_supported should be configured like '["code", "token", "code token"]', but current is configured like '["code", "token"]'.
In other ward, current is set response_types_supported only single type.
Is there any reason? Im sorry if it's my misunderstanding.
Thanks.
The text was updated successfully, but these errors were encountered: