aiondemand / aiondemand/AIOD-rest-api

Keycloak configuration diverged from live servers

Aperta
#535 0 commenti 0 reazioni 1 assegnatario Rivendicata da @mrorro Vedi su GitHub
keycloak
Lingua principale
Python
Stelle
36
Fork
77
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.