mirror of https://github.com/doccano/doccano.git
5 changed files with 174 additions and 0 deletions
Split View
Diff Options
-
6app/app/settings.py
-
26app/server/social_auth.py
-
52app/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_is_admin.yaml
-
52app/server/tests/cassettes/TestAzureADTenantSocialAuth.test_fetch_permissions_not_admin.yaml
-
38app/server/tests/test_social_auth.py
@ -0,0 +1,52 @@ |
|||
interactions: |
|||
- request: |
|||
body: '{"groupIds": ["dddddddd-dddd-dddd-dddd-dddddddddddd"]}' |
|||
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://graph.microsoft.com/v1.0/me/checkMemberGroups |
|||
response: |
|||
body: |
|||
string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(Edm.String)","value":["dddddddd-dddd-dddd-dddd-dddddddddddd"]}' |
|||
headers: |
|||
Cache-Control: |
|||
- private |
|||
Content-Type: |
|||
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 |
|||
Date: |
|||
- Mon, 20 May 2019 19:34:27 GMT |
|||
Duration: |
|||
- '89.2611' |
|||
Location: |
|||
- https://graph.microsoft.com |
|||
OData-Version: |
|||
- '4.0' |
|||
Strict-Transport-Security: |
|||
- max-age=31536000 |
|||
Transfer-Encoding: |
|||
- chunked |
|||
Vary: |
|||
- Accept-Encoding |
|||
client-request-id: |
|||
- 78c55087-ba07-4e80-8498-8b23b1901356 |
|||
content-length: |
|||
- '135' |
|||
request-id: |
|||
- 78c55087-ba07-4e80-8498-8b23b1901356 |
|||
x-ms-ags-diagnostic: |
|||
- '{"ServerInfo":{"DataCenter":"East US","Slice":"SliceC","Ring":"2","ScaleUnit":"000","RoleInstance":"AGSFE_IN_51","ADSiteName":"EUS"}}' |
|||
status: |
|||
code: 200 |
|||
message: OK |
|||
version: 1 |
@ -0,0 +1,52 @@ |
|||
interactions: |
|||
- request: |
|||
body: '{"groupIds": ["eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee"]}' |
|||
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://graph.microsoft.com/v1.0/me/checkMemberGroups |
|||
response: |
|||
body: |
|||
string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(Edm.String)","value":[]}' |
|||
headers: |
|||
Cache-Control: |
|||
- private |
|||
Content-Type: |
|||
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 |
|||
Date: |
|||
- Mon, 20 May 2019 19:34:52 GMT |
|||
Duration: |
|||
- '84.3986' |
|||
Location: |
|||
- https://graph.microsoft.com |
|||
OData-Version: |
|||
- '4.0' |
|||
Strict-Transport-Security: |
|||
- max-age=31536000 |
|||
Transfer-Encoding: |
|||
- chunked |
|||
Vary: |
|||
- Accept-Encoding |
|||
client-request-id: |
|||
- 69bf4728-ae4e-47ef-afd0-7d2c31129b83 |
|||
content-length: |
|||
- '97' |
|||
request-id: |
|||
- 69bf4728-ae4e-47ef-afd0-7d2c31129b83 |
|||
x-ms-ags-diagnostic: |
|||
- '{"ServerInfo":{"DataCenter":"East US","Slice":"SliceC","Ring":"2","ScaleUnit":"000","RoleInstance":"AGSFE_IN_5","ADSiteName":"EUS"}}' |
|||
status: |
|||
code: 200 |
|||
message: OK |
|||
version: 1 |
Write
Preview
Loading…
Cancel
Save