-
Notifications
You must be signed in to change notification settings - Fork 148
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
Support multiple post.logout.redirect.uris #800
Comments
AFAIK, attributes are all strings. For multivalued attributes, values are simply separated by post.logout.redirect.uris: "/URI1##/URI2##/URI3" keycloak-config-cli format is (almost) the same as that of an export from Keycloak itself, where you can see this |
How about creating a PR with a doc snippet for https://github.com/adorsys/keycloak-config-cli/blob/main/docs/FEATURES.md ? |
Hello @andres32168. You are getting the error because you are importing the What it says is that, you need to use ## to add multiple values into a single string like on the Here are the steps on how to go about it:
"attributes": {
"post.logout.redirect.uris": "https://app1.example.com/logout##https://app2.example.com/logout##https://app3.example.com/logout"
}, Or get a somple config file to test {
"realm": "your-realm",
"clients": [
{
"clientId": "your-client-id",
"enabled": true,
"redirectUris": [
"https://app1.example.com/callback",
"https://app2.example.com/callback",
"https://app3.example.com/callback"
],
"webOrigins": [
"https://app1.example.com",
"https://app2.example.com",
"https://app3.example.com"
],
"attributes": {
"post.logout.redirect.uris": "https://app1.example.com/logout##https://app2.example.com/logout##https://app3.example.com/logout"
},
"protocol": "openid-connect",
"publicClient": false,
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": true,
"serviceAccountsEnabled": false,
"authorizationServicesEnabled": false,
"fullScopeAllowed": true
}
]
} |
Problem Statement
Currently it's not possible to add more then 1 post.logout.redirect.uri in yaml config
This is possible:
`
clients:
protocol: openid-connect
enabled: true
name: my-client1
description: n.a.
bearerOnly: false
publicClient: true
standardFlowEnabled: true
implicitFlowEnabled: false
directAccessGrantsEnabled: false
serviceAccountsEnabled: false
attributes:
pkce.code.challenge.method: S256
use.refresh.tokens: true
post.logout.redirect.uris: /URI1
`
This is not possible and will give an error
`
protocol: openid-connect
enabled: true
name: my-client1
description: n.a.
bearerOnly: false
publicClient: true
standardFlowEnabled: true
implicitFlowEnabled: false
directAccessGrantsEnabled: false
serviceAccountsEnabled: false
attributes:
pkce.code.challenge.method: S256
use.refresh.tokens: true
post.logout.redirect.uris:
- /URI1
- /URI2
- /URI3
`
Proposed Solution
No response
Environment
Additional information
It's possible to allow all configured redirect.uris with +
like
post.logout.redirect.uris: '+'
This is only a workaround because post.logout.redirect.uris and redirect.uris can be different.
Acceptance Criteria
post.logout.redirect.uris
The text was updated successfully, but these errors were encountered: