- Apr 07, 2020
-
-
Antoine Lambert authored
When an access token has expired, try to perform a silent OIDC session refresh through the use of a Django middleware. Closes T2267
- Apr 02, 2020
-
-
Antoine Lambert authored
Related to T2342
-
Antoine Lambert authored
Related to T2342
-
Antoine Lambert authored
Related to T2342
-
- Apr 01, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
When browsing a release targetting a revision, also add a link to associated directory view.
-
- Mar 31, 2020
-
-
Antoine Lambert authored
Since version 5.6, hypothesis warns on `@given` + function-scoped fixtures. So turns concerned swh-web fixtures from function-scoped to session-scoped (there is strictly no difference in tests execution result after that change) and ignore some warnings related to external function-scoped fixtures that are safe to use with @given (client from pytest-django and mocker from pytest-mock).
-
Antoine Lambert authored
-
Antoine Lambert authored
When a snapshot contains a branch or a release alias, the display of pagination links in the branches / releases view could be missing due to an invalid test in the branches/releases view implementation.
-
Antoine Lambert authored
Set sidebar state (collapsed / expanded) once css animation has finished in order to make associated cypress test reliable. Also set "enableRemember" option from adminlte PushMenu and remove custom code that was doing the same operation as it is not needed anymore (see https://adminlte.io/docs/3.0/javascript/push-menu.html). Closes T2341
-
Antoine Lambert authored
-
Nicolas Dandrimont authored
There's a python file with invalid syntax in there, which confuses it
-
- Mar 30, 2020
-
-
Nicolas Dandrimont authored
-
- Mar 27, 2020
-
-
Antoine Lambert authored
No need to query the userinfo endpoint of the OIDC server when authenticating as those information can also be found in the decoded access token. Use more reliable access token expiration date. Check groups claim is provided in decoded token before trying to read it.
-
- Mar 26, 2020
-
-
Antoine R. Dumont authored
-
- Mar 25, 2020
-
-
Antoine Lambert authored
Previously URL of type https://forge.example.org/user/project/sub-project/ were not validated by the isGitRepoUrl function. Closes T2331
-
- Mar 23, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
No need to substract 1 from computed TTLs as it can lead to cache userinfo with a 0 seconds TTL when access token is about to expire and thus send multiple userinfo requests to the OIDC server on successive calls to the Web API.
-
- Mar 20, 2020
-
-
Antoine Lambert authored
When a user is identified as staff, he/she should not be rate limited when querying the Web API. Related to T1927
-
Antoine Lambert authored
-
- Mar 19, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
-
Antoine Lambert authored
Throttling requests is related to Django REST Framework and is only used in the api part of swh-web. So move associated module from common submodule to api one for consistency.
-
- Mar 18, 2020
-
-
Stefano Zacchiroli authored
-
- Mar 16, 2020
-
-
Antoine Lambert authored
This backend for Django REST Framework enables to authenticate users through the use of bearer tokens (provided by Keycloak) sent in HTTP request headers. Closes T2249
-
Antoine Lambert authored
Add Django plumbing in swh-web to use OpenID Connect authentication layer. It enables to securely authenticate users stored in a remote identity and access management server implementing OpenID Connect specifications. For the swh-web case, the open source solution Keycloak will be used. New Django views are also introduced in order for users to login/logout from the main HTML interface. A custom Django User model is also used for remote users in order to store OpenID Connect related data and avoid to save users to Django database (those sensitive information are already securely stored in Keycloak so there is no need to duplicate them). Closes T2245 Closes T2246 Closes T2295
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related to D2820
-
- Mar 02, 2020
-
-
Krithik Vaidya authored
Closes T2294
-
Antoine Lambert authored
-
Antoine Lambert authored
-
- Feb 28, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
swh.model.from_disk.Directory.from_disk signature and usage have changed since rDMOD6da524cb2bd8b870eaa0be477837694617cfff1b.
-
- Feb 24, 2020
-
-
Antoine Lambert authored
Also add a new rule to enforce consistent spacing inside braces.
-
- Feb 22, 2020
-
-
Shankhadeep Dey authored
closes T2286
-
- Feb 19, 2020
-
-
Antoine Lambert authored
This will prevent bad surprises when users simply invoke pytest in the root folder of swh-web as default profile makes tests execution slow and tests can fail depending on the hypothesis version used.
-
- Feb 18, 2020
-
-
Antoine Lambert authored
It will enable to find an origin when users provide urls with or without a trailing slash. Closes T1852 Closes T2289
-
Shankhadeep Dey authored
Closes T2141
-
Antoine Lambert authored
Closes T2284
-