Skip to content
Keycloak Integration

Keycloak Integration

    sequenceDiagram
    participant AHF as April Hub Frontend
    participant AHB as April Hub Backend
    participant K as Keycloak

    AHF->>K: unauthenticated user accesses a protected route
    K->>K: user logs in with credentials
    K->>AHF: Keycloak redirects back with tokens
    AHF->>AHF: frontend saves the tokens
    AHF->>AHB: frontend uses the access token <br> to retrieve protected information
    AHB->>K: backend verifies the received token
    K->>AHB: approves
    AHB->>AHF: backend returns protected data

    participant ARB as April Robots Backend
    participant ARF as April Robots Frontend

    ARF->>K: unauthenticated user accesses a protected route
    K->>K: user logs in with the same credentials
    K->>ARF: Keycloak redirects back with tokens
    ARF->>ARF: frontend saves the tokens
    ARF->>ARB: frontend uses the access token <br> to retrieve protected information
    ARB->>K: backend verifies the received token
    K->>ARB: approves
    ARB->>ARF: backend returns protected data