Commit Graph
11 Commits
Author SHA1 Message Date
Michael StinglandGitHub d2d33e4d48 Harmonize Keycloak Client Configurations with Built-in IdP (#589)
* Harmonize Keycloak client configurations with built-in IdP

This change makes the Keycloak client configurations consistent with the built-in IdP:

1. Standardized client IDs to match built-in IdP:
   - web (unchanged)
   - OpenCloudDesktop (was random ID)
   - OpenCloudAndroid (was random ID)
   - OpenCloudIOS (was random ID)
   - Cyberduck (simplified ID)

2. Updated domain names to use .eu consistently:
   - Changed from opencloud.com to opencloud.eu for mobile apps
   - Changed from hardcoded domains to templated {{OC_URL}} values

3. Updated redirect URIs to match built-in IdP format:
   - Added specific callback paths for web client
   - Removed wildcarded ports for desktop client

4. Changed mobile/desktop clients to public clients (equivalent to native app type)

5. Enhanced docker-entrypoint-override.sh to handle {{OC_URL}} template variables

These changes ensure a consistent authentication experience regardless of
whether users are using the built-in IdP or Keycloak.

* Harmonize Keycloak client configuration with client JSONs

Update the realm configuration to match the client configuration JSON files:

1. Update client IDs to match client JSON files:
   - Changed 'xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69' to 'OpenCloudDesktop'
   - Changed 'e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD' to 'OpenCloudAndroid'
   - Changed 'mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1' to 'OpenCloudIOS'

2. Fix additional client properties:
   - Fix client names: Use proper capitalization for all clients
   - Fix OAuth redirect URIs for Android and iOS to use .eu domain
   - Fix Desktop URIs by removing wildcard asterisks
   - Update post-logout redirect URIs to match client JSONs
   - Set publicClient flag to true for all mobile/desktop clients

These changes ensure that when the realm is imported during deployment,
the client configurations will match the client JSONs exactly.

* Update web client configuration in Keycloak realm

Harmonize the web client configuration in the realm:
- Add 'OpenCloud Web App' client name
- Change URLs to use {{OC_URL}} template variables
- Update redirect URIs to use specific paths instead of wildcard
- Set backchannel logout URL to use templated URL

This completes the harmonization of all client configurations in the realm.

* Revert template variable approach in Keycloak configuration

Reverted templating changes to match upstream conventions:

1. Removed template variable handling from docker-entrypoint-override.sh
   - Removed {{OC_URL}} replacement, keeping only domain replacement

This maintains compatibility with the upstream approach of using direct URLs
with domain substitution instead of template variables.

* Fix remaining old client ID references in role mappings

Updated the remaining references to old client IDs in the role mappings section:
- xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69 → OpenCloudDesktop
- e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD → OpenCloudAndroid
- mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1 → OpenCloudIOS

This ensures all client ID references throughout the realm configuration are
consistent and use the simplified IDs.
2025-04-07 17:54:13 +02:00
Michael StinglandGitHub be0a5c97bf Merge pull request #7965 from owncloud/docs-webfinger-example
[docs-only] Fix inconsistency in unauthenticated WebFinger example response
2023-12-14 11:15:33 +01:00
Michael StinglandGitHub 55f3ef0aff Merge pull request #7882 from owncloud/tus-upload-metadata
[docs-only] Explain tus upload metadata for client implementations
2023-12-13 18:43:32 +01:00
Michael StinglandGitHub ff9463bc8d Fix inconsistency in unauthenticated WebFinger example response 2023-12-13 18:20:52 +01:00
5e21dc57f2 Apply suggestions from code review
Co-authored-by: Jannik Stehle <50302941+JammingBen@users.noreply.github.com>
2023-12-07 13:15:04 +01:00
Michael StinglandGitHub 62afc6e9b6 Merge pull request #7853 from owncloud/thumbnails-parameters
[docs-only] Adding thumbnail query parameters to thumbnail README.md
2023-12-04 17:43:59 +01:00
Michael StinglandGitHub a7d2ef2507 Merge pull request #7649 from owncloud/example-deployment-keycloak-cyberduck
Add example config for 3rd party WebDAV client Cyberduck (and Mountain Duck)
2023-12-01 11:19:37 +01:00
Michael StinglandGitHub f26165910d [docs-only] Adding thumbnail query parameters to thumbnail README.md
Observed with ownCloud Web UI 7.1.0 (Spaces overview):

```
scalingup: 0
preview: 1
a: 1
c: ce88e69a448ab8acf7ff554be5bb5521
x: 1000
y: 1000
```
2023-11-30 10:07:18 +01:00
Michael StinglandGitHub e9c4e1cbc4 Rename client_names_md to client_names.md 2020-04-03 23:33:30 +02:00
Michael StinglandGitHub 4f212a80a2 Create client_names_md 2020-04-03 23:33:06 +02:00
Michael StinglandGitHub 59ee8dc1a9 Improve client identifiers for end users 2020-04-03 23:13:06 +02:00