Globus Auth _testing Method List#
globus_sdk.AuthClient#
globus_sdk.AuthClient
has registered responses for the following methods:
create_project
(case="default"
)
{
"project": {
"contact_email": "support@globus.org",
"id": "a87413cc-477b-11ee-ae7b-0242ac110002",
"admins": {
"identities": [
{
"identity_provider": "a87414da-477b-11ee-ae7b-0242ac110002",
"identity_type": "login",
"organization": "Guardians of the Galaxy",
"status": "used",
"id": "a8741570-477b-11ee-ae7b-0242ac110002",
"name": "Star Lord",
"username": "star.lord@guardians.galaxy",
"email": "star.lord2@guardians.galaxy"
}
],
"groups": []
},
"project_name": "Guardians of the Galaxy",
"admin_ids": [
"a8741570-477b-11ee-ae7b-0242ac110002"
],
"admin_group_ids": null,
"display_name": "Guardians of the Galaxy"
}
}
create_project
(case="admin_group"
)
{
"project": {
"contact_email": "support@globus.org",
"id": "a87413cc-477b-11ee-ae7b-0242ac110002",
"admins": {
"identities": [],
"groups": [
{
"id": "a8741606-477b-11ee-ae7b-0242ac110002",
"name": "Guardians of the Galaxy",
"description": "A group of heroes",
"organization": "Guardians of the Galaxy"
}
]
},
"project_name": "Guardians of the Galaxy",
"admin_ids": null,
"admin_group_ids": [
"a8741606-477b-11ee-ae7b-0242ac110002"
],
"display_name": "Guardians of the Galaxy"
}
}
delete_project
(case="default"
)
{
"project": {
"contact_email": "support@globus.org",
"id": "a8767644-477b-11ee-ae7b-0242ac110002",
"admins": {
"identities": [
{
"identity_provider": "a8767720-477b-11ee-ae7b-0242ac110002",
"identity_type": "login",
"organization": "Guardians of the Galaxy",
"status": "used",
"id": "a87677a2-477b-11ee-ae7b-0242ac110002",
"name": "Star Lord",
"username": "star.lord@guardians.galaxy",
"email": "star.lord2@guardians.galaxy"
}
],
"groups": []
},
"project_name": "Guardians of the Galaxy",
"admin_ids": [
"a87677a2-477b-11ee-ae7b-0242ac110002"
],
"admin_group_ids": null,
"display_name": "Guardians of the Galaxy"
}
}
get_identities
(case="default"
)
{
"identities": [
{
"email": null,
"id": "46bd0f56-e24f-11e5-a510-131bef46955c",
"identity_provider": "7daddf46-70c5-45ee-9f0f-7244fe7c8707",
"name": null,
"organization": null,
"status": "unused",
"username": "globus@globus.org"
}
]
}
get_identities
(case="empty"
)
{
"identities": []
}
get_identities
(case="multiple"
)
{
"identities": [
{
"email": null,
"id": "46bd0f56-e24f-11e5-a510-131bef46955c",
"identity_provider": "7daddf46-70c5-45ee-9f0f-7244fe7c8707",
"name": null,
"organization": null,
"status": "unused",
"username": "globus@globus.org"
},
{
"email": "sirosen@globus.org",
"id": "ae341a98-d274-11e5-b888-dbae3a8ba545",
"identity_provider": "927d7238-f917-4eb2-9ace-c523fa9ba34e",
"name": "Stephen Rosen",
"organization": "Globus Team",
"status": "used",
"username": "sirosen@globus.org"
}
]
}
get_identities
(case="globusid"
)
{
"identities": [
{
"email": "support@globus.org",
"id": "00000000-0000-0000-0000-000000000001",
"identity_provider": "41143743-f3c8-4d60-bbdb-eeecaba85bd9",
"identity_type": "login",
"name": "Globus Team",
"organization": "University of Chicago",
"status": "used",
"username": "globus@globusid.org"
}
]
}
get_identities
(case="sirosen"
)
{
"identities": [
{
"email": "sirosen@globus.org",
"id": "ae341a98-d274-11e5-b888-dbae3a8ba545",
"identity_provider": "927d7238-f917-4eb2-9ace-c523fa9ba34e",
"name": "Stephen Rosen",
"organization": "Globus Team",
"status": "used",
"username": "sirosen@globus.org"
}
]
}
get_identities
(case="unauthorized"
)
{
"errors": [
{
"status": "401",
"id": "ab36708c-477b-11ee-ae7b-0242ac110002",
"code": "UNAUTHORIZED",
"detail": "Call must be authenticated",
"title": "Unauthorized"
}
],
"error_description": "Unauthorized",
"error": "unauthorized"
}
get_identity_providers
(case="default"
)
{
"identity_providers": [
{
"short_name": "globusid",
"id": "41143743-f3c8-4d60-bbdb-eeecaba85bd9",
"alternative_names": [],
"domains": [
"globusid.org"
],
"name": "Globus ID"
},
{
"short_name": "globus.org",
"id": "927d7238-f917-4eb2-9ace-c523fa9ba34e",
"alternative_names": [],
"domains": [
"globus.org"
],
"name": "Globus Staff"
}
]
}
get_identity_providers
(case="globusid"
)
{
"identity_providers": [
{
"short_name": "globusid",
"id": "41143743-f3c8-4d60-bbdb-eeecaba85bd9",
"alternative_names": [],
"domains": [
"globusid.org"
],
"name": "Globus ID"
}
]
}
get_identity_providers
(case="globus_staff"
)
{
"identity_providers": [
{
"short_name": "globus.org",
"id": "927d7238-f917-4eb2-9ace-c523fa9ba34e",
"alternative_names": [],
"domains": [
"globus.org"
],
"name": "Globus Staff"
}
]
}
get_projects
(case="default"
)
{
"projects": [
{
"admin_ids": [
"a872c74c-477b-11ee-ae7b-0242ac110002"
],
"contact_email": "eviltestproject@guardians.galaxy",
"display_name": "Evil Test Project Full of Evil",
"admin_group_ids": null,
"id": "a872c7ce-477b-11ee-ae7b-0242ac110002",
"project_name": "Evil Test Project Full of Evil",
"admins": {
"identities": [
{
"identity_provider": "a872c51c-477b-11ee-ae7b-0242ac110002",
"identity_type": "login",
"organization": "Guardians of the Galaxy",
"status": "used",
"id": "a872c74c-477b-11ee-ae7b-0242ac110002",
"name": "Rocket",
"username": "rocket@guardians.galaxy",
"email": "star.lord@guardians.galaxy"
}
],
"groups": []
}
},
{
"admin_ids": [
"a872c74c-477b-11ee-ae7b-0242ac110002"
],
"contact_email": "support@guardians.galaxy",
"display_name": "Guardians of the Galaxy Portal",
"admin_group_ids": null,
"id": "a872c88c-477b-11ee-ae7b-0242ac110002",
"project_name": "Guardians of the Galaxy Portal",
"admins": {
"identities": [
{
"identity_provider": "a872c51c-477b-11ee-ae7b-0242ac110002",
"identity_type": "login",
"organization": "Guardians of the Galaxy",
"status": "used",
"id": "a872c6ac-477b-11ee-ae7b-0242ac110002",
"name": "Star Lord",
"username": "star.lord@guardians.galaxy",
"email": "star.lord2@guardians.galaxy"
},
{
"identity_provider": "a872c51c-477b-11ee-ae7b-0242ac110002",
"identity_type": "login",
"organization": "Guardians of the Galaxy",
"status": "used",
"id": "a872c74c-477b-11ee-ae7b-0242ac110002",
"name": "Rocket",
"username": "rocket@guardians.galaxy",
"email": "star.lord@guardians.galaxy"
}
],
"groups": []
}
}
]
}
oauth2_exchange_code_for_tokens
(case="invalid_grant"
)
{
"error": "invalid_grant"
}
oauth2_revoke_token
(case="default"
)
{
"active": false
}
oauth2_userinfo
(case="unauthorized"
)
{
"errors": [
{
"status": "401",
"id": "ab36708c-477b-11ee-ae7b-0242ac110002",
"code": "UNAUTHORIZED",
"detail": "Call must be authenticated",
"title": "Unauthorized"
}
],
"error_description": "Unauthorized",
"error": "unauthorized"
}
oauth2_userinfo
(case="forbidden"
)
{
"errors": [
{
"status": "403",
"id": "ab3671c2-477b-11ee-ae7b-0242ac110002",
"code": "FORBIDDEN",
"detail": "Call must be authenticated",
"title": "Unauthorized"
}
],
"error_description": "Unauthorized",
"error": "unauthorized"
}
update_project
(case="default"
)
{
"project": {
"contact_email": "support@globus.org",
"id": "a8757ad2-477b-11ee-ae7b-0242ac110002",
"admins": {
"identities": [
{
"identity_provider": "a8757bc2-477b-11ee-ae7b-0242ac110002",
"identity_type": "login",
"organization": "Guardians of the Galaxy",
"status": "used",
"id": "a8757c44-477b-11ee-ae7b-0242ac110002",
"name": "Star Lord",
"username": "star.lord@guardians.galaxy",
"email": "star.lord2@guardians.galaxy"
}
],
"groups": []
},
"project_name": "Guardians of the Galaxy",
"admin_ids": [
"a8757c44-477b-11ee-ae7b-0242ac110002"
],
"admin_group_ids": null,
"display_name": "Guardians of the Galaxy"
}
}
update_project
(case="admin_group"
)
{
"project": {
"contact_email": "support@globus.org",
"id": "a8757ad2-477b-11ee-ae7b-0242ac110002",
"admins": {
"identities": [],
"groups": [
{
"id": "a8757cc6-477b-11ee-ae7b-0242ac110002",
"name": "Guardians of the Galaxy",
"description": "A group of heroes",
"organization": "Guardians of the Galaxy"
}
]
},
"project_name": "Guardians of the Galaxy",
"admin_ids": null,
"admin_group_ids": [
"a8757cc6-477b-11ee-ae7b-0242ac110002"
],
"display_name": "Guardians of the Galaxy"
}
}