aiondemand / aiondemand/AIOD-rest-api

Keycloak configuration diverged from live servers

Ouverte
#535 0 commentaires 0 réactions 1 personne assignée Réclamée par @mrorro Voir sur GitHub
keycloak
Langage dominant
Python
Étoiles
36
Forks
77
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When starting keycloak from the repository with its default imported configuration, keycloak provides the following metadata to the REST API:
```json
{'exp': 1748938686, 'iat': 1748938386, 'jti': '40de1f44-41f7-477f-b1f1-3373bd381f6b', 'iss': 'http://localhost/aiod-auth/realms/aiod', 'aud': 'account', 'sub': '4a80f256-3928-4cfa-ba66-5e22bb36fc01', 'typ': 'Bearer', 'azp': 'aiod-api-swagger', 'session_state': 'db54b64f-8d55-4cd3-b3c7-d97cb27514c9', 'acr': '1', 'allowed-origins': ['http://localhost:8000/'], 'realm_access': {'roles': ['offline_access', 'uma_authorization', 'default-roles-aiod']}, 'resource_access': {'account': {'roles': ['manage-account', 'manage-account-links', 'view-profile']}}, 'scope': 'openid profile email', 'sid': 'db54b64f-8d55-4cd3-b3c7-d97cb27514c9', 'email_verified': False, 'preferred_username': 'user', 'given_name': '', 'family_name': '', 'client_id': 'aiod-api-swagger', 'username': 'user', 'token_type': 'Bearer', 'active': True}
```
But this is different form what the dev/prod keycloak servers provide. For example, there is no 'username' there. The configuration in the repository should match that in dev/prod w.r.t. roles, user metadata, and so on (though obviously not the users).

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.