mirror of https://github.com/doccano/doccano.git
5 changed files with 226 additions and 0 deletions
Split View
Diff Options
-
38app/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_is_admin.yaml
-
38app/server/tests/cassettes/TestOktaOAuth2SocialAuth.test_fetch_permissions_not_admin.yaml
-
38app/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_is_admin.yaml
-
38app/server/tests/cassettes/TestOktaOpenIdConnectSocialAuth.test_fetch_permissions_not_admin.yaml
-
74app/server/tests/test_social_auth.py
@ -0,0 +1,38 @@ |
|||
interactions: |
|||
- request: |
|||
body: "" |
|||
headers: |
|||
Accept: |
|||
- '*/*' |
|||
Accept-Encoding: |
|||
- gzip, deflate |
|||
Connection: |
|||
- keep-alive |
|||
Content-Length: |
|||
- '54' |
|||
Content-Type: |
|||
- application/json |
|||
User-Agent: |
|||
- python-requests/2.21.0 |
|||
method: POST |
|||
uri: https://dev-000000.okta.com/oauth2/v1/userinfo |
|||
response: |
|||
body: |
|||
string: '{"sub":"agaga42hrey546","groups":["admin-group"]}' |
|||
headers: |
|||
Cache-Control: |
|||
- no-cache, no-store |
|||
Content-Type: |
|||
- application/json;charset=UTF-8 |
|||
Date: |
|||
- Fri, 24 Apr 2020 02:54:39 GMT |
|||
Strict-Transport-Security: |
|||
- max-age=315360000 |
|||
Transfer-Encoding: |
|||
- chunked |
|||
Vary: |
|||
- Accept-Encoding |
|||
status: |
|||
code: 200 |
|||
message: OK |
|||
version: 1 |
@ -0,0 +1,38 @@ |
|||
interactions: |
|||
- request: |
|||
body: "" |
|||
headers: |
|||
Accept: |
|||
- '*/*' |
|||
Accept-Encoding: |
|||
- gzip, deflate |
|||
Connection: |
|||
- keep-alive |
|||
Content-Length: |
|||
- '54' |
|||
Content-Type: |
|||
- application/json |
|||
User-Agent: |
|||
- python-requests/2.21.0 |
|||
method: POST |
|||
uri: https://dev-000000.okta.com/oauth2/v1/userinfo |
|||
response: |
|||
body: |
|||
string: '{"sub":"agaga42hrey546","groups":["user-group"]}' |
|||
headers: |
|||
Cache-Control: |
|||
- no-cache, no-store |
|||
Content-Type: |
|||
- application/json;charset=UTF-8 |
|||
Date: |
|||
- Fri, 24 Apr 2020 02:54:39 GMT |
|||
Strict-Transport-Security: |
|||
- max-age=315360000 |
|||
Transfer-Encoding: |
|||
- chunked |
|||
Vary: |
|||
- Accept-Encoding |
|||
status: |
|||
code: 200 |
|||
message: OK |
|||
version: 1 |
@ -0,0 +1,38 @@ |
|||
interactions: |
|||
- request: |
|||
body: "" |
|||
headers: |
|||
Accept: |
|||
- '*/*' |
|||
Accept-Encoding: |
|||
- gzip, deflate |
|||
Connection: |
|||
- keep-alive |
|||
Content-Length: |
|||
- '54' |
|||
Content-Type: |
|||
- application/json |
|||
User-Agent: |
|||
- python-requests/2.21.0 |
|||
method: POST |
|||
uri: https://dev-000000.okta.com/oauth2/v1/userinfo |
|||
response: |
|||
body: |
|||
string: '{"sub":"agaga42hrey546","groups":["admin-group"]}' |
|||
headers: |
|||
Cache-Control: |
|||
- no-cache, no-store |
|||
Content-Type: |
|||
- application/json;charset=UTF-8 |
|||
Date: |
|||
- Fri, 24 Apr 2020 02:54:39 GMT |
|||
Strict-Transport-Security: |
|||
- max-age=315360000 |
|||
Transfer-Encoding: |
|||
- chunked |
|||
Vary: |
|||
- Accept-Encoding |
|||
status: |
|||
code: 200 |
|||
message: OK |
|||
version: 1 |
@ -0,0 +1,38 @@ |
|||
interactions: |
|||
- request: |
|||
body: "" |
|||
headers: |
|||
Accept: |
|||
- '*/*' |
|||
Accept-Encoding: |
|||
- gzip, deflate |
|||
Connection: |
|||
- keep-alive |
|||
Content-Length: |
|||
- '54' |
|||
Content-Type: |
|||
- application/json |
|||
User-Agent: |
|||
- python-requests/2.21.0 |
|||
method: POST |
|||
uri: https://dev-000000.okta.com/oauth2/v1/userinfo |
|||
response: |
|||
body: |
|||
string: '{"sub":"agaga42hrey546","groups":["user-group"]}' |
|||
headers: |
|||
Cache-Control: |
|||
- no-cache, no-store |
|||
Content-Type: |
|||
- application/json;charset=UTF-8 |
|||
Date: |
|||
- Fri, 24 Apr 2020 02:54:39 GMT |
|||
Strict-Transport-Security: |
|||
- max-age=315360000 |
|||
Transfer-Encoding: |
|||
- chunked |
|||
Vary: |
|||
- Accept-Encoding |
|||
status: |
|||
code: 200 |
|||
message: OK |
|||
version: 1 |
Write
Preview
Loading…
Cancel
Save