Skip to content

Commit 83550fc

Browse files
authored
Merge pull request #183 from eccenca/feature/valid_post_redirect_uri_CMEM-CMEM-6591
Feature/valid post redirect uri cmem cmem 6591
2 parents 4c49ea3 + b56a031 commit 83550fc

File tree

1 file changed

+33
-1
lines changed
  • docs/deploy-and-configure/configuration/production-ready-settings

1 file changed

+33
-1
lines changed

docs/deploy-and-configure/configuration/production-ready-settings/index.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,44 @@ As stated in the [Keycloak Server Administration Guide](https://www.keycloak.org
1313

1414
> Make your registered redirect URIs as specific as possible. Registering vague redirect URIs for Authorization Code Flows may allow malicious clients to impersonate another client with broader access.
1515
16-
Corporate Memory uses the `cmem` client to authenticate against Keycloak, so adjust the **Valid Redirect URIs** field for this client.
16+
Corporate Memory uses the `cmem` client to authenticate against Keycloak, so adjust the **Valid Redirect URIs** and **Valid Logout Redirect URIs** fields for this client.
1717

1818
Select`cmem` realm, then **Clients** → `cmem` and enter your deploy URL, e.g., `https://cmem.example.net/*`.
19+
As valid-logout-redirect-uri we suggest the base basic URL of your deployment. e.g. `https://cmem.example.net/`.
20+
Once you restrict these URLs in Keycloak you might see error messages in your keycloak log indicating that those redirect uri's are not valid.
21+
Please update the settings accordingly.
1922

2023
![Keycloak: Client Settings: Valid Redirect URLs](23-1-keycloak-client-settings.png)
2124

25+
### Explore backend (DataPlatform) valid post redirect settings
26+
27+
For Explore backend (DataPlatform) you set this in `application.yml` or as environment variable
28+
29+
```yaml
30+
deploy.post-logout-redirect-uri: "${DEPLOY_BASE_URL}"
31+
```
32+
```bash
33+
DEPLOY_POST_LOGOUT_REDIRECT_URI=${DEPLOY_BASE_URL}
34+
```
35+
36+
### Build (DataIntegration) valid post redirect settings
37+
38+
For in Build backend (DataIntegration) you set this in `dataintegration.conf`.
39+
The following parameter are relevant that for:
40+
41+
- The first (```endSessionUrl```) is the keycloak logout url, like ```KEYCLOAK_URL/auth/realms/cmem/protocol/openid-connect/logout```
42+
- Number two (```logoutRedirectUrl```) sets the URL where the redirect should happen to, after a successful logout.
43+
- And the last (```idToken```) is required now and always default to ```true```.
44+
45+
This is part of the OIDC flow.
46+
47+
```conf
48+
oauth.endSessionUrl = ${OAUTH_LOGOUT_URL}
49+
oauth.logoutRedirectUrl = ${OAUTH_LOGOUT_REDIRECT_URL}
50+
oauth.idToken = true
51+
```
52+
53+
2254
## Password Policies
2355

2456
If you create users in Keycloak, make sure these users have strong passwords.

0 commit comments

Comments
 (0)