- Mar 23, 2021
- Mar 22, 2021
-
-
Antoine R. Dumont authored
This will allow caller code to depend on it without leaking the exception from the keycloak module.
-
- Mar 18, 2021
-
-
Antoine R. Dumont authored
In some application, those user fields might not be filled in. As it's not enforced by keycloak, relax such constraint. Related to T2858
- Mar 17, 2021
-
-
Antoine Lambert authored
In the dictionary decoded from an OIDC access token, the iat field store the token creation date while the auth_time field store the date the OIDC session was opened. In order to get an accurate authentication time, the date stored in the iat field must be used as it corresponds to the time an access token was refreshed and thus the latest valid authentication date.
-
- Mar 15, 2021
-
-
Antoine R. Dumont authored
The auth_time is not always provided depending on the authentication flow used. The field iat is provided for example in the direct grant access flow so use it instead as fallback. Related to T2858
- Mar 12, 2021
-
-
Antoine R. Dumont authored
Related to T2858
- Mar 11, 2021
-
-
Antoine R. Dumont authored
Tester will want to craft carefully the keycloak mock so it returns consistent data. Currently the decoded_token and user_info are hard-coded to consistent values. So using the default keycloak mock is ok. As soon as other testers will want another user_info, the decoded token will diverge and not return the correct user_info subpart of the decoded token. This commits fixes such behavior and allows the decoded token to stay consistent with the user_info. Related to T2858
- Mar 09, 2021
-
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
That class is a custom User proxy model for remote users storing OpenID Connect related data (profile containing authentication tokens, ...). The model is also not saved to database as all users are already stored in the Keycloak one. That class will be used for example by both the webapp and the deposit. Related to T3079
- Mar 05, 2021
-
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
- Mar 04, 2021
-
-
Antoine R. Dumont authored
This is needed for the incoming deposit-keycloak integration. Related to T3079
-
This will be required for modules depending on it (swh.web, swh.web.client, swh.deposit) Related to T3079
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This reworks the tests logic as well to reuse the way web tests are written. This is a first step to actually use the mock class defined here as fixture for future modules which will depend on swh-auth (swh-web-client, swh-web and swh-deposit). Related to T3079
-
- Mar 03, 2021
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
This reworks data sample into a dedicated module sample_date for readability. Related to T3079
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related to T3079
-
Antoine R. Dumont authored
-