| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from ._common import FORBIDDEN_AUTH_RESPONSE, UNAUTHORIZED_AUTH_RESPONSE |
| 4 |
|
| 5 |
RESPONSES = ResponseSet( |
| 6 |
unauthorized=RegisteredResponse( |
| 7 |
service="auth", |
| 8 |
path="/v2/oauth2/userinfo", |
| 9 |
status=401, |
| 10 |
json=UNAUTHORIZED_AUTH_RESPONSE.json, |
| 11 |
metadata={ |
| 12 |
"error_id": UNAUTHORIZED_AUTH_RESPONSE.error_id, |
| 13 |
**UNAUTHORIZED_AUTH_RESPONSE.metadata_include, |
| 14 |
}, |
| 15 |
), |
| 16 |
forbidden=RegisteredResponse( |
| 17 |
service="auth", |
| 18 |
path="/v2/oauth2/userinfo", |
| 19 |
status=403, |
| 20 |
json=FORBIDDEN_AUTH_RESPONSE.json, |
| 21 |
metadata={ |
| 22 |
"error_id": FORBIDDEN_AUTH_RESPONSE.error_id, |
| 23 |
**FORBIDDEN_AUTH_RESPONSE.metadata_include, |
| 24 |
}, |
| 25 |
), |
| 26 |
) |