Globus Auth _testing Method List

globus_sdk.AuthClient

globus_sdk.AuthClient has registered responses for the following methods:

create_client (case="default")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="name")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "5ac4fd6247de4f419041e9be52abb9c9",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="public_client")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="private_client")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": false,
    "client_type": "hybrid_confidential_client_resource_server"
  }
}
create_client (case="project_id")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d906660-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="publicly_visible")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "visibility": "public",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="not_publicly_visible")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "visibility": "private",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="redirect_uris")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [
      "https://foo.com"
    ],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="links")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": "https://boo.org",
      "terms_and_conditions": "https://foo.org"
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="required_idp")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": "6d9067b4-67ff-11f0-b7ab-8263e8809d78",
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="preselect_idp")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": "6d90685e-67ff-11f0-b7ab-8263e8809d78",
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "public_client": true,
    "client_type": "public_installed_client"
  }
}
create_client (case="client_type_confidential_client")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "confidential_client"
  }
}
create_client (case="client_type_public_installed_client")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "public_installed_client"
  }
}
create_client (case="client_type_client_identity")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "client_identity"
  }
}
create_client (case="client_type_resource_server")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "resource_server"
  }
}
create_client (case="client_type_globus_connect_server")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "globus_connect_server"
  }
}
create_client (case="client_type_hybrid_confidential_client_resource_server")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "hybrid_confidential_client_resource_server"
  }
}
create_client (case="client_type_public_webapp_client")
{
  "client": {
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token",
      "urn:globus:auth:grant_type:dependent_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "6d9063ea-67ff-11f0-b7ab-8263e8809d78",
    "client_type": "public_webapp_client"
  }
}
create_client_credential (case="default")
{
  "credential": {
    "name": "foo",
    "id": "6d93f168-67ff-11f0-b7ab-8263e8809d78",
    "created": "2023-10-21T22:46:15.845937+00:00",
    "client": "6d93f1fe-67ff-11f0-b7ab-8263e8809d78",
    "secret": "abc123"
  }
}
create_client_credential (case="name")
{
  "credential": {
    "name": "48acc3a18fca48e8ab38c87066b40517",
    "id": "6d93f168-67ff-11f0-b7ab-8263e8809d78",
    "created": "2023-10-21T22:46:15.845937+00:00",
    "client": "6d93f1fe-67ff-11f0-b7ab-8263e8809d78",
    "secret": "abc123"
  }
}
create_policy (case="default")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "id": "6d8b9734-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="project_id_str")
{
  "policy": {
    "project_id": "6d8b981a-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "id": "6d8b9892-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="project_id_uuid")
{
  "policy": {
    "project_id": "6d8b995a-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "id": "6d8b99e6-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="high_assurance")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "high_assurance": true,
    "authentication_assurance_timeout": 35,
    "required_mfa": false,
    "id": "6d8b9a86-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="not_high_assurance")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "high_assurance": false,
    "required_mfa": false,
    "id": "6d8b9b3a-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="required_mfa")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "high_assurance": true,
    "authentication_assurance_timeout": 45,
    "required_mfa": true,
    "id": "6d8b9bd0-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="authentication_assurance_timeout")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "authentication_assurance_timeout": 23,
    "id": "6d8b9c66-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="display_name")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "46859f97b13e496baa76183a90748962",
    "description": "Controls access to Foo",
    "id": "6d8b9d56-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="description")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "5652b84ff3ae409f9ac486cd9653a143",
    "id": "6d8b9e1e-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="domain_constraints_include")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_include": [
      "globus.org",
      "uchicago.edu"
    ],
    "id": "6d8b9ec8-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="empty_domain_constraints_include")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_include": [],
    "id": "6d8b9f5e-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="no_domain_constraints_include")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_include": null,
    "id": "6d8b9ffe-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="domain_constraints_exclude")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_exclude": [
      "globus.org",
      "uchicago.edu"
    ],
    "id": "6d8ba080-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="empty_domain_constraints_exclude")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_exclude": [],
    "id": "6d8ba10c-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_policy (case="no_domain_constraints_exclude")
{
  "policy": {
    "project_id": "6d8b9608-67ff-11f0-b7ab-8263e8809d78",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_exclude": null,
    "id": "6d8ba1a2-67ff-11f0-b7ab-8263e8809d78"
  }
}
create_project (case="default")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "6d874bfc-67ff-11f0-b7ab-8263e8809d78",
    "admins": {
      "identities": [
        {
          "identity_provider": "6d874cba-67ff-11f0-b7ab-8263e8809d78",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "6d874d32-67ff-11f0-b7ab-8263e8809d78",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        }
      ],
      "groups": []
    },
    "project_name": "Guardians of the Galaxy",
    "admin_ids": [
      "6d874d32-67ff-11f0-b7ab-8263e8809d78"
    ],
    "admin_group_ids": null,
    "display_name": "Guardians of the Galaxy"
  }
}
create_project (case="admin_group")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "6d874bfc-67ff-11f0-b7ab-8263e8809d78",
    "admins": {
      "identities": [],
      "groups": [
        {
          "id": "6d874daa-67ff-11f0-b7ab-8263e8809d78",
          "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": [
      "6d874daa-67ff-11f0-b7ab-8263e8809d78"
    ],
    "display_name": "Guardians of the Galaxy"
  }
}
create_scope (case="default")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d9729c8-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="client_id_str")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d972a90-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d972b12-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d972a90-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="client_id_uuid")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d972ba8-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d972c2a-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d972ba8-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="name")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d972d1a-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "b81177552c8f4454abe9a5af123ddad5",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="description")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d972dd8-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "7910fdbc83c04e3f8f56580d48208b03",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="scope_suffix")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/0634f30382294c41ae0243091c496621",
    "allows_refresh_token": true,
    "id": "6d972ebe-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d972f4a-67ff-11f0-b7ab-8263e8809d78",
    "advertised": true,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="not_advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d972ffe-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="allows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d97309e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="disallows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": false,
    "id": "6d973148-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="no_required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d9731f2-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d973288-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [
      "globus.org",
      "uchicago.edu"
    ],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="no_dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d97330a-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
create_scope (case="dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9728c4-67ff-11f0-b7ab-8263e8809d78/manage",
    "allows_refresh_token": true,
    "id": "6d9734cc-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "6d9728c4-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": [
      {
        "scope": "6d973396-67ff-11f0-b7ab-8263e8809d78",
        "optional": true,
        "requires_refresh_token": true
      },
      {
        "scope": "6d97344a-67ff-11f0-b7ab-8263e8809d78",
        "optional": false,
        "requires_refresh_token": false
      }
    ]
  }
}
delete_client (case="default")
{
  "client": {
    "required_idp": null,
    "name": "Great client of FOO",
    "redirect_uris": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "scopes": [],
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token"
    ],
    "id": "6d927f86-67ff-11f0-b7ab-8263e8809d78",
    "prompt_for_named_grant": false,
    "fqdns": [
      "globus.org"
    ],
    "project": "da84e531-1afb-43cb-8c87-135ab580516a",
    "client_type": "client_identity",
    "visibility": "private",
    "parent_client": null,
    "userinfo_from_effective_identity": true,
    "preselect_idp": null,
    "public_client": false
  }
}
delete_client_credential (case="default")
{
  "credential": {
    "name": "foo",
    "id": "6d94a7a2-67ff-11f0-b7ab-8263e8809d78",
    "created": "2023-10-21T22:46:15.845937+00:00",
    "client": "7dee4432-0297-4989-ad23-a2b672a52b12",
    "secret": null
  }
}
delete_policy (case="default")
{
  "policy": {
    "high_assurance": false,
    "domain_constraints_include": [
      "greenlight.org"
    ],
    "display_name": "GreenLight domain Only Policy",
    "description": "Only allow access from @greenlight.org",
    "id": "6d8d6a0a-67ff-11f0-b7ab-8263e8809d78",
    "domain_constraints_exclude": null,
    "project_id": "da84e531-1afb-43cb-8c87-135ab580516a",
    "authentication_assurance_timeout": 35,
    "required_mfa": false
  }
}
delete_project (case="default")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "6d890bb8-67ff-11f0-b7ab-8263e8809d78",
    "admins": {
      "identities": [
        {
          "identity_provider": "6d890c76-67ff-11f0-b7ab-8263e8809d78",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "6d890cee-67ff-11f0-b7ab-8263e8809d78",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        }
      ],
      "groups": []
    },
    "project_name": "Guardians of the Galaxy",
    "admin_ids": [
      "6d890cee-67ff-11f0-b7ab-8263e8809d78"
    ],
    "admin_group_ids": null,
    "display_name": "Guardians of the Galaxy"
  }
}
delete_scope (case="default")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/3f33d83f-ec0a-4190-887d-0622e7c4ee9a/manager",
    "allows_refresh_token": false,
    "id": "6d992426-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "3f33d83f-ec0a-4190-887d-0622e7c4ee9a",
    "dependent_scopes": []
  }
}
get_client (case="default")
{
  "client": {
    "required_idp": null,
    "name": "Great client of FOO",
    "redirect_uris": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "scopes": [],
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token"
    ],
    "id": "6d8e2742-67ff-11f0-b7ab-8263e8809d78",
    "prompt_for_named_grant": false,
    "fqdns": [
      "globus.org"
    ],
    "project": "da84e531-1afb-43cb-8c87-135ab580516a",
    "client_type": "client_identity",
    "visibility": "private",
    "parent_client": null,
    "userinfo_from_effective_identity": true,
    "preselect_idp": null,
    "public_client": false
  }
}
get_client (case="fqdn")
{
  "client": {
    "required_idp": null,
    "name": "Great client of FOO",
    "redirect_uris": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "scopes": [],
    "grant_types": [
      "authorization_code",
      "client_credentials",
      "refresh_token"
    ],
    "id": "6d8e2742-67ff-11f0-b7ab-8263e8809d78",
    "prompt_for_named_grant": false,
    "fqdns": [
      "globus.org"
    ],
    "project": "da84e531-1afb-43cb-8c87-135ab580516a",
    "client_type": "client_identity",
    "visibility": "private",
    "parent_client": null,
    "userinfo_from_effective_identity": true,
    "preselect_idp": null,
    "public_client": false
  }
}
get_client_credentials (case="default")
{
  "credentials": [
    {
      "name": "foo",
      "id": "6d934146-67ff-11f0-b7ab-8263e8809d78",
      "created": "2023-10-21T22:46:15.845937+00:00",
      "client": "7dee4432-0297-4989-ad23-a2b672a52b12",
      "secret": null
    }
  ]
}
get_clients (case="default")
{
  "clients": [
    {
      "required_idp": null,
      "name": "Lessor client of BAR",
      "redirect_uris": [],
      "links": {
        "privacy_policy": null,
        "terms_and_conditions": null
      },
      "scopes": [],
      "grant_types": [
        "authorization_code",
        "client_credentials",
        "refresh_token"
      ],
      "id": "6d8ed192-67ff-11f0-b7ab-8263e8809d78",
      "prompt_for_named_grant": false,
      "fqdns": [
        "bar.org"
      ],
      "project": "da84e531-1afb-43cb-8c87-135ab580516a",
      "client_type": "client_identity",
      "visibility": "private",
      "parent_client": null,
      "userinfo_from_effective_identity": true,
      "preselect_idp": null,
      "public_client": false
    },
    {
      "required_idp": null,
      "name": "Great client of FOO",
      "redirect_uris": [],
      "links": {
        "privacy_policy": null,
        "terms_and_conditions": null
      },
      "scopes": [],
      "grant_types": [
        "authorization_code",
        "client_credentials",
        "refresh_token"
      ],
      "id": "6d8ed0d4-67ff-11f0-b7ab-8263e8809d78",
      "prompt_for_named_grant": false,
      "fqdns": [
        "foo.net"
      ],
      "project": "da84e531-1afb-43cb-8c87-135ab580516a",
      "client_type": "client_identity",
      "visibility": "private",
      "parent_client": null,
      "userinfo_from_effective_identity": true,
      "preselect_idp": null,
      "public_client": false
    }
  ]
}
get_consents (case="default")
{
  "consents": [
    {
      "created": "2022-09-21T17:10:14.270581+00:00",
      "id": 142632,
      "status": "approved",
      "updated": "2022-09-21T17:10:14.270581+00:00",
      "allows_refresh": true,
      "dependency_path": [
        142632
      ],
      "scope_name": "urn:globus:auth:scope:transfer.api.globus.org:all",
      "atomically_revocable": false,
      "effective_identity": "8ca28797-3541-4a5d-a264-05b00f91e608",
      "auto_approved": false,
      "last_used": "2024-03-18T17:34:04.719126+00:00",
      "scope": "89ecabba-4acf-4e2e-a98d-ce592ccc2818",
      "client": "065db752-2f43-4fe1-a633-2ee68c9da889"
    },
    {
      "created": "2024-03-18T17:32:51.496893+00:00",
      "id": 433892,
      "status": "approved",
      "updated": "2024-03-18T17:32:51.496893+00:00",
      "allows_refresh": true,
      "dependency_path": [
        142632,
        433892
      ],
      "scope_name": "https://auth.globus.org/scopes/542a86fc-1766-450d-841f-065488a2ec01/data_access",
      "atomically_revocable": true,
      "effective_identity": "8ca28797-3541-4a5d-a264-05b00f91e608",
      "auto_approved": false,
      "last_used": "2024-03-18T17:33:05.178254+00:00",
      "scope": "fe334c19-4fe6-4d03-ac73-8992beb231b6",
      "client": "2fbdda78-a599-4cb5-ac3d-1fbcfbc6a754"
    }
  ]
}
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": "6fc92444-67ff-11f0-b7ab-8263e8809d78",
      "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_policies (case="default")
{
  "policies": [
    {
      "high_assurance": false,
      "domain_constraints_include": [
        "greenlight.org"
      ],
      "display_name": "GreenLight domain Only Policy",
      "description": "Only allow access from @greenlight.org",
      "id": "6d8a6fd0-67ff-11f0-b7ab-8263e8809d78",
      "domain_constraints_exclude": null,
      "project_id": "da84e531-1afb-43cb-8c87-135ab580516a",
      "authentication_assurance_timeout": 35,
      "required_mfa": false
    },
    {
      "high_assurance": true,
      "domain_constraints_include": null,
      "display_name": "No RedLight domain Policy",
      "description": "Disallow access from @redlight.org",
      "id": "6d8a708e-67ff-11f0-b7ab-8263e8809d78",
      "domain_constraints_exclude": [
        "redlight.org"
      ],
      "project_id": "da84e531-1afb-43cb-8c87-135ab580516a",
      "authentication_assurance_timeout": 35,
      "required_mfa": false
    }
  ]
}
get_policy (case="default")
{
  "policy": {
    "high_assurance": false,
    "domain_constraints_include": [
      "greenlight.org"
    ],
    "display_name": "GreenLight domain Only Policy",
    "description": "Only allow access from @greenlight.org",
    "id": "6d89bc52-67ff-11f0-b7ab-8263e8809d78",
    "domain_constraints_exclude": null,
    "project_id": "da84e531-1afb-43cb-8c87-135ab580516a",
    "authentication_assurance_timeout": 35,
    "required_mfa": false
  }
}
get_project (case="default")
{
  "project": {
    "admin_ids": [
      "6d85c8b8-67ff-11f0-b7ab-8263e8809d78"
    ],
    "contact_email": "support@guardians.galaxy",
    "display_name": "Guardians of the Galaxy Portal",
    "admin_group_ids": null,
    "id": "6d85c930-67ff-11f0-b7ab-8263e8809d78",
    "project_name": "Guardians of the Galaxy Portal",
    "admins": {
      "identities": [
        {
          "identity_provider": "6d85c6d8-67ff-11f0-b7ab-8263e8809d78",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "6d85c818-67ff-11f0-b7ab-8263e8809d78",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        },
        {
          "identity_provider": "6d85c6d8-67ff-11f0-b7ab-8263e8809d78",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "6d85c8b8-67ff-11f0-b7ab-8263e8809d78",
          "name": "Rocket",
          "username": "rocket@guardians.galaxy",
          "email": "star.lord@guardians.galaxy"
        }
      ],
      "groups": []
    }
  }
}
get_projects (case="default")
{
  "projects": [
    {
      "admin_ids": [
        "6d867ccc-67ff-11f0-b7ab-8263e8809d78"
      ],
      "contact_email": "eviltestproject@guardians.galaxy",
      "display_name": "Evil Test Project Full of Evil",
      "admin_group_ids": null,
      "id": "6d867d4e-67ff-11f0-b7ab-8263e8809d78",
      "project_name": "Evil Test Project Full of Evil",
      "admins": {
        "identities": [
          {
            "identity_provider": "6d867b8c-67ff-11f0-b7ab-8263e8809d78",
            "identity_type": "login",
            "organization": "Guardians of the Galaxy",
            "status": "used",
            "id": "6d867ccc-67ff-11f0-b7ab-8263e8809d78",
            "name": "Rocket",
            "username": "rocket@guardians.galaxy",
            "email": "star.lord@guardians.galaxy"
          }
        ],
        "groups": []
      }
    },
    {
      "admin_ids": [
        "6d867ccc-67ff-11f0-b7ab-8263e8809d78"
      ],
      "contact_email": "support@guardians.galaxy",
      "display_name": "Guardians of the Galaxy Portal",
      "admin_group_ids": null,
      "id": "6d86817c-67ff-11f0-b7ab-8263e8809d78",
      "project_name": "Guardians of the Galaxy Portal",
      "admins": {
        "identities": [
          {
            "identity_provider": "6d867b8c-67ff-11f0-b7ab-8263e8809d78",
            "identity_type": "login",
            "organization": "Guardians of the Galaxy",
            "status": "used",
            "id": "6d867c4a-67ff-11f0-b7ab-8263e8809d78",
            "name": "Star Lord",
            "username": "star.lord@guardians.galaxy",
            "email": "star.lord2@guardians.galaxy"
          },
          {
            "identity_provider": "6d867b8c-67ff-11f0-b7ab-8263e8809d78",
            "identity_type": "login",
            "organization": "Guardians of the Galaxy",
            "status": "used",
            "id": "6d867ccc-67ff-11f0-b7ab-8263e8809d78",
            "name": "Rocket",
            "username": "rocket@guardians.galaxy",
            "email": "star.lord@guardians.galaxy"
          }
        ],
        "groups": []
      }
    }
  ]
}
get_scope (case="default")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/3f33d83f-ec0a-4190-887d-0622e7c4ee9a/manager",
    "allows_refresh_token": false,
    "id": "6d9569a8-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "3f33d83f-ec0a-4190-887d-0622e7c4ee9a",
    "dependent_scopes": []
  }
}
get_scopes (case="default")
{
  "scopes": [
    {
      "scope_string": "https://auth.globus.org/scopes/3f33d83f-ec0a-4190-887d-0622e7c4ee9a/manage",
      "allows_refresh_token": false,
      "id": "6d962bfe-67ff-11f0-b7ab-8263e8809d78",
      "advertised": false,
      "required_domains": [],
      "name": "Client manage scope",
      "description": "Manage configuration of this client",
      "client": "3f33d83f-ec0a-4190-887d-0622e7c4ee9a",
      "dependent_scopes": []
    },
    {
      "scope_string": "https://auth.globus.org/scopes/dfc9a6d3-3373-4a6d-b0a1-b7026d1559d6/view",
      "allows_refresh_token": false,
      "id": "6d962cbc-67ff-11f0-b7ab-8263e8809d78",
      "advertised": false,
      "required_domains": [],
      "name": "Client view scope",
      "description": "View configuration of this client",
      "client": "dfc9a6d3-3373-4a6d-b0a1-b7026d1559d6",
      "dependent_scopes": []
    }
  ]
}
get_scopes (case="id")
{
  "scopes": [
    {
      "scope_string": "https://auth.globus.org/scopes/3f33d83f-ec0a-4190-887d-0622e7c4ee9a/manage",
      "allows_refresh_token": false,
      "id": "6d962bfe-67ff-11f0-b7ab-8263e8809d78",
      "advertised": false,
      "required_domains": [],
      "name": "Client manage scope",
      "description": "Manage configuration of this client",
      "client": "3f33d83f-ec0a-4190-887d-0622e7c4ee9a",
      "dependent_scopes": []
    }
  ]
}
get_scopes (case="string")
{
  "scopes": [
    {
      "scope_string": "https://auth.globus.org/scopes/dfc9a6d3-3373-4a6d-b0a1-b7026d1559d6/view",
      "allows_refresh_token": false,
      "id": "6d962cbc-67ff-11f0-b7ab-8263e8809d78",
      "advertised": false,
      "required_domains": [],
      "name": "Client view scope",
      "description": "View configuration of this client",
      "client": "dfc9a6d3-3373-4a6d-b0a1-b7026d1559d6",
      "dependent_scopes": []
    }
  ]
}
oauth2_userinfo (case="unauthorized")
{
  "errors": [
    {
      "status": "401",
      "id": "6fc92444-67ff-11f0-b7ab-8263e8809d78",
      "code": "UNAUTHORIZED",
      "detail": "Call must be authenticated",
      "title": "Unauthorized"
    }
  ],
  "error_description": "Unauthorized",
  "error": "unauthorized"
}
oauth2_userinfo (case="forbidden")
{
  "errors": [
    {
      "status": "403",
      "id": "6fc9255c-67ff-11f0-b7ab-8263e8809d78",
      "code": "FORBIDDEN",
      "detail": "Call must be authenticated",
      "title": "Unauthorized"
    }
  ],
  "error_description": "Unauthorized",
  "error": "unauthorized"
}
update_client (case="default")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "6d91a296-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="name")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "df794bee8e2745af90fc91d3d317e5fe",
    "id": "6d91a3fe-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="publicly_visible")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "visibility": "public",
    "id": "6d91a4a8-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="not_publicly_visible")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "visibility": "private",
    "id": "6d91a53e-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="redirect_uris")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [
      "https://foo.com"
    ],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "6d91a5de-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="links")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": "https://boo.org",
      "terms_and_conditions": "https://foo.org"
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "6d91a69c-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="required_idp")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": null,
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": "6d91a728-67ff-11f0-b7ab-8263e8809d78",
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "6d91a796-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_client (case="preselect_idp")
{
  "client": {
    "client_type": "public_installed_client",
    "grant_types": [
      "authorization_code",
      "refresh_token"
    ],
    "fqdns": [],
    "links": {
      "privacy_policy": null,
      "terms_and_conditions": null
    },
    "parent_client": null,
    "preselect_idp": "6d91a80e-67ff-11f0-b7ab-8263e8809d78",
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "6d91a87c-67ff-11f0-b7ab-8263e8809d78"
  }
}
update_policy (case="default")
{
  "policy": {
    "project_id": "6d8c79a6-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "c4e7e56b9afd42379109592cf496a396",
    "description": "72f44a748c0045a5b34244e080272529",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="project_id_str")
{
  "policy": {
    "project_id": "6d8c7b22-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "8c0b1ff10e384439a78ecd233f7bfa6a",
    "description": "dd9ef79885dd42c5b14e178d9a085db8",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="project_id_uuid")
{
  "policy": {
    "project_id": "6d8c7c8a-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "ea21992ad452436fba5dcc396e087825",
    "description": "794bf443f2934751ae7076f3a4c2123d",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="authentication_assurance_timeout")
{
  "policy": {
    "project_id": "6d8c7dde-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 9100,
    "display_name": "0f6c0d33fd114657a6aefe6e7f9fd6a2",
    "description": "ce4d90fcc80740299f89bc41ee0d21ff",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="required_mfa")
{
  "policy": {
    "project_id": "6d8c7eba-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": true,
    "authentication_assurance_timeout": 25,
    "display_name": "eada55cfaa0b4305a32cbbd8bd6949cd",
    "description": "ed0dde727dfc429e9e5ce6a98b180be2",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="not_required_mfa")
{
  "policy": {
    "project_id": "6d8c7f96-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "82f0fa4d022f4a8ba36b2331c3745130",
    "description": "0487b4d87d514bce86f39ab951d2d224",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="display_name")
{
  "policy": {
    "project_id": "6d8c8090-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "e596f122870f4c05b00dce7eed927f2e",
    "description": "5ee4bdcf2eaa4358aa47c9867a627de0",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="description")
{
  "policy": {
    "project_id": "6d8c81a8-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "05a273aebb2242949d36d32840e1c8d4",
    "description": "097c9a47babb48d9bd1aef669769b13a",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="no_domain_constrants_include")
{
  "policy": {
    "project_id": "6d8c828e-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "75cec105eb3d40c7a447e6cb550c018d",
    "description": "6f8a17678a9540c18dff446cd9e7c19e",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="empty_domain_constrants_include")
{
  "policy": {
    "project_id": "6d8c8388-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "edcaabfa36ee4a488e6c853f71cf731f",
    "description": "e217706f34034ac9a0461385f7ed130a",
    "domain_constraints_include": [],
    "domain_constraints_exclude": null
  }
}
update_policy (case="domain_constrants_include")
{
  "policy": {
    "project_id": "6d8c8450-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "bf0de567b0974e718ec228dc8e5b7ee0",
    "description": "2bcc87368d204966b36e9f075e88ce1c",
    "domain_constraints_include": [
      "globus.org",
      "uchicago.edu"
    ],
    "domain_constraints_exclude": null
  }
}
update_policy (case="no_domain_constrants_exclude")
{
  "policy": {
    "project_id": "6d8c8522-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "121f5a0ca30d422884d3697e43a561de",
    "description": "1af1ee9d50394080873eac9b99486404",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="empty_domain_constrants_exclude")
{
  "policy": {
    "project_id": "6d8c85ea-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "d139f795b8804572b94d86a5602b57d8",
    "description": "df8ed2d601f24de98facb14a39ab8263",
    "domain_constraints_include": null,
    "domain_constraints_exclude": []
  }
}
update_policy (case="domain_constrants_exclude")
{
  "policy": {
    "project_id": "6d8c86a8-67ff-11f0-b7ab-8263e8809d78",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "ffa13ccf17ed4ee793b5b57a5dcf3fdd",
    "description": "a2adc8aad382443d8cd5a408b999997b",
    "domain_constraints_include": null,
    "domain_constraints_exclude": [
      "globus.org",
      "uchicago.edu"
    ]
  }
}
update_project (case="default")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "6d8844f8-67ff-11f0-b7ab-8263e8809d78",
    "admins": {
      "identities": [
        {
          "identity_provider": "6d8845b6-67ff-11f0-b7ab-8263e8809d78",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "6d88462e-67ff-11f0-b7ab-8263e8809d78",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        }
      ],
      "groups": []
    },
    "project_name": "Guardians of the Galaxy",
    "admin_ids": [
      "6d88462e-67ff-11f0-b7ab-8263e8809d78"
    ],
    "admin_group_ids": null,
    "display_name": "Guardians of the Galaxy"
  }
}
update_project (case="admin_group")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "6d8844f8-67ff-11f0-b7ab-8263e8809d78",
    "admins": {
      "identities": [],
      "groups": [
        {
          "id": "6d88469c-67ff-11f0-b7ab-8263e8809d78",
          "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": [
      "6d88469c-67ff-11f0-b7ab-8263e8809d78"
    ],
    "display_name": "Guardians of the Galaxy"
  }
}
update_scope (case="default")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d984858-67ff-11f0-b7ab-8263e8809d78/31ebac0e3cef4cbab842737d94b230dc",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "e0d6f4963e6a4aa68f21d948f7a66b70",
    "description": "986c28ef2c42440c94203ca1d67c019a",
    "client": "6d98495c-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="name")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d984a7e-67ff-11f0-b7ab-8263e8809d78/7951986a551e4f11a56b658c91bd7526",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "c5d3812cacfb4be7a37b6a3f5e86f3cb",
    "description": "48a275eebe0447d590eadd1d8a3d061b",
    "client": "6d984b6e-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="description")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d984c2c-67ff-11f0-b7ab-8263e8809d78/4c221472da684496a855b9437f0b661c",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "948291a0f1dd4eb9a94fb67a429a08b0",
    "description": "80220be542594987bfb1884972082e3c",
    "client": "6d984cfe-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="scope_suffix")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d984db2-67ff-11f0-b7ab-8263e8809d78/f6f9eeac9e1c4d239bbc8a1a56485ae8",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "adf9caa7c70346fbbdf8466377a63fcc",
    "description": "dc95b9cefb9a47a3942d2f495af36f3b",
    "client": "6d984e7a-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="no_required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d984f06-67ff-11f0-b7ab-8263e8809d78/b3ad377f22154121b262a6cd7f95b437",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "240ebe0cab45475bbf13db2a77325076",
    "description": "9d5a3e24d84644d18374c9e37af8783a",
    "client": "6d984fce-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d98505a-67ff-11f0-b7ab-8263e8809d78/bce34baa5ad74812893f1c3b90a92c00",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [
      "globus.org",
      "uchicago.edu"
    ],
    "name": "ff8791595dcc491cb98644ecca917330",
    "description": "06c9327c402548949f611b0613f3a10c",
    "client": "6d98512c-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="no_dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9851cc-67ff-11f0-b7ab-8263e8809d78/f7015dc496cf45638e9128d1242ca80c",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "6c194aabe7594c3bba101f3d82e0e0d5",
    "description": "0a2da1a7ac584b7e8aaee1875bac4526",
    "client": "6d9852b2-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d985780-67ff-11f0-b7ab-8263e8809d78/05302eeac94949868eb7714e15204779",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "209b36e0864f46fdbc2af1937f815cd9",
    "description": "7e7764cb2b044f23b7cefb578926c28f",
    "client": "6d9858e8-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": [
      {
        "scope": "6d985654-67ff-11f0-b7ab-8263e8809d78",
        "optional": true,
        "requires_refresh_token": true
      },
      {
        "scope": "6d9856ea-67ff-11f0-b7ab-8263e8809d78",
        "optional": false,
        "requires_refresh_token": false
      }
    ]
  }
}
update_scope (case="advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d9859a6-67ff-11f0-b7ab-8263e8809d78/e36aff62be58492b9cee88f0f68e9419",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": true,
    "required_domains": [],
    "name": "611419f120fe49758a1f9e2952f3561e",
    "description": "be4ec850383f45efb559fdf1fcaadeb4",
    "client": "6d985a6e-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="not_advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d985b04-67ff-11f0-b7ab-8263e8809d78/2f073405260b43b8878a0ce21110e438",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "8ad37e90699748d2b7687acde767ab33",
    "description": "0bcf4c2a92a74ef5ab41c0ee79582557",
    "client": "6d985bc2-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="allows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d985c4e-67ff-11f0-b7ab-8263e8809d78/c2ea6ae2a62a4421b75e24a0d2bd5c32",
    "allows_refresh_token": true,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "119f7210caf5407f81e63008354acb45",
    "description": "5b976a688e364d81ada2de2c9d766417",
    "client": "6d985d0c-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
update_scope (case="disallows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/6d985d98-67ff-11f0-b7ab-8263e8809d78/0a382d87210a4f26be7a567eb1169151",
    "allows_refresh_token": false,
    "id": "6d98475e-67ff-11f0-b7ab-8263e8809d78",
    "advertised": false,
    "required_domains": [],
    "name": "4141193d611648ab9831896eea4e157a",
    "description": "62b8b79abe7a4fdba149b392a0edc1ba",
    "client": "6d985e56-67ff-11f0-b7ab-8263e8809d78",
    "dependent_scopes": []
  }
}
userinfo (case="unauthorized")
{
  "errors": [
    {
      "status": "401",
      "id": "6fc92444-67ff-11f0-b7ab-8263e8809d78",
      "code": "UNAUTHORIZED",
      "detail": "Call must be authenticated",
      "title": "Unauthorized"
    }
  ],
  "error_description": "Unauthorized",
  "error": "unauthorized"
}
userinfo (case="forbidden")
{
  "errors": [
    {
      "status": "403",
      "id": "6fc9255c-67ff-11f0-b7ab-8263e8809d78",
      "code": "FORBIDDEN",
      "detail": "Call must be authenticated",
      "title": "Unauthorized"
    }
  ],
  "error_description": "Unauthorized",
  "error": "unauthorized"
}