binarycat0 commented on PR #168:
URL: https://github.com/apache/polaris-tools/pull/168#issuecomment-3905502452

   ## Testing
   
   ### Keycloak Setup
   
   Create two separate clients in Keycloak:
   
   **1. Console Client (for UI authentication):**
   - Client ID: `polaris-console` (or your choice)
   - Client authentication: Off
     - Access Type: `public`
   - Authentication flow: `Standard flow`
   - Valid Redirect URIs: `http://localhost:5173/auth/callback`
   - Web Origins: `http://localhost:5173`
   
   **2. Server Client (for Polaris server):**
   - Client ID: `polaris-server-client` (or your choice)
   - Access Type: `confidential` or `public` (depending on your needs)
     - Configure credentials if using confidential
   
   ### Console Configuration
   
   Set environment variables in `console/.env`:
   
   ```env
   VITE_POLARIS_API_URL=http://localhost:8181
   VITE_POLARIS_REALM=EXTERNAL
   VITE_OIDC_ISSUER_URL=http://localhost:8080/realms/EXTERNAL
   VITE_OIDC_CLIENT_ID=polaris-console
   VITE_OIDC_REDIRECT_URI=http://localhost:5173/auth/callback
   VITE_OIDC_SCOPE=profile
   ```
   
   ----
   For K8S/Docker setup: You can use service hostnames (keycloak, polaris) 
instead of localhost.
   Add hostname resolution to your `/etc/hosts` file:
   
   ```
   127.0.0.1 keycloak
   127.0.0.1 polaris
   ```
   
   ```
   VITE_POLARIS_API_URL=http://polaris:8181
   VITE_OIDC_ISSUER_URL=http://keycloak:8080/realms/EXTERNAL
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to