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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "d3b2e6f49cb44092845aaef4c14745e6",
    "project": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7acd48-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7ace92-ca30-11f0-a347-3ecc597c3201",
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7acf28-ca30-11f0-a347-3ecc597c3201",
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "name": "FOO",
    "project": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7aca64-ca30-11f0-a347-3ecc597c3201",
    "client_type": "public_webapp_client"
  }
}
create_client_credential (case="default")
{
  "credential": {
    "name": "foo",
    "id": "7d7e879e-ca30-11f0-a347-3ecc597c3201",
    "created": "2023-10-21T22:46:15.845937+00:00",
    "client": "7d7e8834-ca30-11f0-a347-3ecc597c3201",
    "secret": "abc123"
  }
}
create_client_credential (case="name")
{
  "credential": {
    "name": "add482036a964a2793518a5e3be645ee",
    "id": "7d7e879e-ca30-11f0-a347-3ecc597c3201",
    "created": "2023-10-21T22:46:15.845937+00:00",
    "client": "7d7e8834-ca30-11f0-a347-3ecc597c3201",
    "secret": "abc123"
  }
}
create_policy (case="default")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "id": "7d757212-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="project_id_str")
{
  "policy": {
    "project_id": "7d75730c-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "id": "7d75738e-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="project_id_uuid")
{
  "policy": {
    "project_id": "7d757456-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "id": "7d7574f6-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="high_assurance")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "high_assurance": true,
    "authentication_assurance_timeout": 35,
    "required_mfa": false,
    "id": "7d7575a0-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="not_high_assurance")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "high_assurance": false,
    "required_mfa": false,
    "id": "7d757654-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="required_mfa")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "high_assurance": true,
    "authentication_assurance_timeout": 45,
    "required_mfa": true,
    "id": "7d7576f4-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="authentication_assurance_timeout")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "authentication_assurance_timeout": 23,
    "id": "7d75778a-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="display_name")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "009fdf0dad024a43bba755c75aeeb37b",
    "description": "Controls access to Foo",
    "id": "7d757992-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="description")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "e3e88007fe644b448ad4821d4178ad01",
    "id": "7d757a64-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="domain_constraints_include")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_include": [
      "globus.org",
      "uchicago.edu"
    ],
    "id": "7d757b04-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="empty_domain_constraints_include")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_include": [],
    "id": "7d757b9a-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="no_domain_constraints_include")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_include": null,
    "id": "7d757c26-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="domain_constraints_exclude")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_exclude": [
      "globus.org",
      "uchicago.edu"
    ],
    "id": "7d757cb2-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="empty_domain_constraints_exclude")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_exclude": [],
    "id": "7d757d48-ca30-11f0-a347-3ecc597c3201"
  }
}
create_policy (case="no_domain_constraints_exclude")
{
  "policy": {
    "project_id": "7d756f56-ca30-11f0-a347-3ecc597c3201",
    "display_name": "Policy of Foo",
    "description": "Controls access to Foo",
    "domain_constraints_exclude": null,
    "id": "7d758144-ca30-11f0-a347-3ecc597c3201"
  }
}
create_project (case="default")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "7d70ef26-ca30-11f0-a347-3ecc597c3201",
    "admins": {
      "identities": [
        {
          "identity_provider": "7d70efe4-ca30-11f0-a347-3ecc597c3201",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "7d70f05c-ca30-11f0-a347-3ecc597c3201",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        }
      ],
      "groups": []
    },
    "project_name": "Guardians of the Galaxy",
    "admin_ids": [
      "7d70f05c-ca30-11f0-a347-3ecc597c3201"
    ],
    "admin_group_ids": null,
    "display_name": "Guardians of the Galaxy"
  }
}
create_project (case="admin_group")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "7d70ef26-ca30-11f0-a347-3ecc597c3201",
    "admins": {
      "identities": [],
      "groups": [
        {
          "id": "7d70f0d4-ca30-11f0-a347-3ecc597c3201",
          "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": [
      "7d70f0d4-ca30-11f0-a347-3ecc597c3201"
    ],
    "display_name": "Guardians of the Galaxy"
  }
}
create_scope (case="default")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81dff2-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="client_id_str")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81e0ce-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e150-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81e0ce-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="client_id_uuid")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81e1f0-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e272-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81e1f0-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="name")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e394-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "58f77f0295dd427bb6b27e3a093e7710",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="description")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e448-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "7f91d98091ed47e09afa4dc579db9643",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="scope_suffix")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/a1079850d21e4cc78e6a940525eeea18",
    "allows_refresh_token": true,
    "id": "7d81e524-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e5ba-ca30-11f0-a347-3ecc597c3201",
    "advertised": true,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="not_advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e68c-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="allows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e736-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="disallows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": false,
    "id": "7d81e7c2-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="no_required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e84e-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e90c-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [
      "globus.org",
      "uchicago.edu"
    ],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="no_dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81e9c0-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
create_scope (case="dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d81dec6-ca30-11f0-a347-3ecc597c3201/manage",
    "allows_refresh_token": true,
    "id": "7d81eb64-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "Client manage scope",
    "description": "Manage configuration of this client",
    "client": "7d81dec6-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": [
      {
        "scope": "7d81ea4c-ca30-11f0-a347-3ecc597c3201",
        "optional": true,
        "requires_refresh_token": true
      },
      {
        "scope": "7d81eae2-ca30-11f0-a347-3ecc597c3201",
        "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": "7d7d05e0-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7f472e-ca30-11f0-a347-3ecc597c3201",
    "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": "7d777b34-ca30-11f0-a347-3ecc597c3201",
    "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": "7d72ad3e-ca30-11f0-a347-3ecc597c3201",
    "admins": {
      "identities": [
        {
          "identity_provider": "7d72adf2-ca30-11f0-a347-3ecc597c3201",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "7d72ae74-ca30-11f0-a347-3ecc597c3201",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        }
      ],
      "groups": []
    },
    "project_name": "Guardians of the Galaxy",
    "admin_ids": [
      "7d72ae74-ca30-11f0-a347-3ecc597c3201"
    ],
    "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": "7d83eefa-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7849ec-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7849ec-ca30-11f0-a347-3ecc597c3201",
    "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": "7d7dd15a-ca30-11f0-a347-3ecc597c3201",
      "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": "7d7929de-ca30-11f0-a347-3ecc597c3201",
      "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": "7d7928da-ca30-11f0-a347-3ecc597c3201",
      "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": "7fa52168-ca30-11f0-a347-3ecc597c3201",
      "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": "7d742e48-ca30-11f0-a347-3ecc597c3201",
      "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": "7d742f38-ca30-11f0-a347-3ecc597c3201",
      "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": "7d73608a-ca30-11f0-a347-3ecc597c3201",
    "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": [
      "7d6f66a6-ca30-11f0-a347-3ecc597c3201"
    ],
    "contact_email": "support@guardians.galaxy",
    "display_name": "Guardians of the Galaxy Portal",
    "admin_group_ids": null,
    "id": "7d6f671e-ca30-11f0-a347-3ecc597c3201",
    "project_name": "Guardians of the Galaxy Portal",
    "admins": {
      "identities": [
        {
          "identity_provider": "7d6f6458-ca30-11f0-a347-3ecc597c3201",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "7d6f6610-ca30-11f0-a347-3ecc597c3201",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        },
        {
          "identity_provider": "7d6f6458-ca30-11f0-a347-3ecc597c3201",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "7d6f66a6-ca30-11f0-a347-3ecc597c3201",
          "name": "Rocket",
          "username": "rocket@guardians.galaxy",
          "email": "star.lord@guardians.galaxy"
        }
      ],
      "groups": []
    }
  }
}
get_projects (case="default")
{
  "projects": [
    {
      "admin_ids": [
        "7d702000-ca30-11f0-a347-3ecc597c3201"
      ],
      "contact_email": "eviltestproject@guardians.galaxy",
      "display_name": "Evil Test Project Full of Evil",
      "admin_group_ids": null,
      "id": "7d702082-ca30-11f0-a347-3ecc597c3201",
      "project_name": "Evil Test Project Full of Evil",
      "admins": {
        "identities": [
          {
            "identity_provider": "7d701eb6-ca30-11f0-a347-3ecc597c3201",
            "identity_type": "login",
            "organization": "Guardians of the Galaxy",
            "status": "used",
            "id": "7d702000-ca30-11f0-a347-3ecc597c3201",
            "name": "Rocket",
            "username": "rocket@guardians.galaxy",
            "email": "star.lord@guardians.galaxy"
          }
        ],
        "groups": []
      }
    },
    {
      "admin_ids": [
        "7d702000-ca30-11f0-a347-3ecc597c3201"
      ],
      "contact_email": "support@guardians.galaxy",
      "display_name": "Guardians of the Galaxy Portal",
      "admin_group_ids": null,
      "id": "7d70219a-ca30-11f0-a347-3ecc597c3201",
      "project_name": "Guardians of the Galaxy Portal",
      "admins": {
        "identities": [
          {
            "identity_provider": "7d701eb6-ca30-11f0-a347-3ecc597c3201",
            "identity_type": "login",
            "organization": "Guardians of the Galaxy",
            "status": "used",
            "id": "7d701f7e-ca30-11f0-a347-3ecc597c3201",
            "name": "Star Lord",
            "username": "star.lord@guardians.galaxy",
            "email": "star.lord2@guardians.galaxy"
          },
          {
            "identity_provider": "7d701eb6-ca30-11f0-a347-3ecc597c3201",
            "identity_type": "login",
            "organization": "Guardians of the Galaxy",
            "status": "used",
            "id": "7d702000-ca30-11f0-a347-3ecc597c3201",
            "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": "7d801104-ca30-11f0-a347-3ecc597c3201",
    "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": "7d80d9cc-ca30-11f0-a347-3ecc597c3201",
      "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": "7d80da9e-ca30-11f0-a347-3ecc597c3201",
      "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": "7d80d9cc-ca30-11f0-a347-3ecc597c3201",
      "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": "7d80da9e-ca30-11f0-a347-3ecc597c3201",
      "advertised": false,
      "required_domains": [],
      "name": "Client view scope",
      "description": "View configuration of this client",
      "client": "dfc9a6d3-3373-4a6d-b0a1-b7026d1559d6",
      "dependent_scopes": []
    }
  ]
}
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": "7d7c2256-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "82ecd44f174c4162902b4d681871a7a4",
    "id": "7d7c23fa-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "7d7c24a4-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "7d7c253a-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "7d7c25da-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "7d7c26a2-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "7d7c272e-ca30-11f0-a347-3ecc597c3201",
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "7d7c279c-ca30-11f0-a347-3ecc597c3201"
  }
}
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": "7d7c281e-ca30-11f0-a347-3ecc597c3201",
    "prompt_for_named_grant": true,
    "redirect_uris": [],
    "required_idp": null,
    "scopes": [],
    "userinfo_from_effective_identity": true,
    "id": "7d7c288c-ca30-11f0-a347-3ecc597c3201"
  }
}
update_policy (case="default")
{
  "policy": {
    "project_id": "7d769228-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "00339ddc802c4fd78833e7c5206b3022",
    "description": "91a2bed93f7b437ba9ce971f4298cd72",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="project_id_str")
{
  "policy": {
    "project_id": "7d7693b8-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "3408d312ef3041528395aeb60430c116",
    "description": "9624124222714265a0fb83a39c5f222f",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="project_id_uuid")
{
  "policy": {
    "project_id": "7d76952a-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "c99ae5c9455646c297b7705d6f1842d1",
    "description": "fe39b2a801f943a5816c36ab4cbcc9a6",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="authentication_assurance_timeout")
{
  "policy": {
    "project_id": "7d769674-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 9100,
    "display_name": "60e9eef93c7741eea9f2e424dc9694f3",
    "description": "a3a17088fec04cc7a33c7cd5c971aca7",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="required_mfa")
{
  "policy": {
    "project_id": "7d769750-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": true,
    "authentication_assurance_timeout": 25,
    "display_name": "2e26d890f070415aa632344b95e560a1",
    "description": "14dc7ba1c9e24321975f7c423c0a7e43",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="not_required_mfa")
{
  "policy": {
    "project_id": "7d769822-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "46660215ad5e4c0bb8be10dcd9992b41",
    "description": "f5b5b2fee3e14a88bcabd7e3bee27f36",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="display_name")
{
  "policy": {
    "project_id": "7d769926-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "18d4cc3771f44464a5e0bd3bf7f50d1b",
    "description": "d6491cd312354a1d95fdacdabe5c485d",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="description")
{
  "policy": {
    "project_id": "7d769a2a-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "50f7506a35e04e4796095e6045b7cd9d",
    "description": "3bfa36c59b234995919a7e576bb8e1fc",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="no_domain_constrants_include")
{
  "policy": {
    "project_id": "7d769b06-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "a7ebd2d2e1124b3fac181aff39b18548",
    "description": "40456f8bcbd44cf0b84810dd08436135",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="empty_domain_constrants_include")
{
  "policy": {
    "project_id": "7d769be2-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "71fbe6eb34004aea8f7e232ed27fbc62",
    "description": "f723cfc685904f61b9cf1cd7b88d932b",
    "domain_constraints_include": [],
    "domain_constraints_exclude": null
  }
}
update_policy (case="domain_constrants_include")
{
  "policy": {
    "project_id": "7d769caa-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "03aa9e2030264000a818ed78acd02e6c",
    "description": "0a47e3b2046f419e85c1e6f07e012b20",
    "domain_constraints_include": [
      "globus.org",
      "uchicago.edu"
    ],
    "domain_constraints_exclude": null
  }
}
update_policy (case="no_domain_constrants_exclude")
{
  "policy": {
    "project_id": "7d769d72-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "cd2f187ac79043b0b968faa47c31143c",
    "description": "d83c1f31654f4daaaf7dcbb1ba40bf75",
    "domain_constraints_include": null,
    "domain_constraints_exclude": null
  }
}
update_policy (case="empty_domain_constrants_exclude")
{
  "policy": {
    "project_id": "7d769e3a-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "841aed6aabfd460d9e983d675557b355",
    "description": "295eea25bc534c38823f6acd34cf6410",
    "domain_constraints_include": null,
    "domain_constraints_exclude": []
  }
}
update_policy (case="domain_constrants_exclude")
{
  "policy": {
    "project_id": "7d769f02-ca30-11f0-a347-3ecc597c3201",
    "high_assurance": true,
    "required_mfa": false,
    "authentication_assurance_timeout": 25,
    "display_name": "1a67014fb7c94b2a9d19f58645ce2f5f",
    "description": "6dc7a24cf1c741fd858e777a0144cbe0",
    "domain_constraints_include": null,
    "domain_constraints_exclude": [
      "globus.org",
      "uchicago.edu"
    ]
  }
}
update_project (case="default")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "7d71e638-ca30-11f0-a347-3ecc597c3201",
    "admins": {
      "identities": [
        {
          "identity_provider": "7d71e6f6-ca30-11f0-a347-3ecc597c3201",
          "identity_type": "login",
          "organization": "Guardians of the Galaxy",
          "status": "used",
          "id": "7d71e778-ca30-11f0-a347-3ecc597c3201",
          "name": "Star Lord",
          "username": "star.lord@guardians.galaxy",
          "email": "star.lord2@guardians.galaxy"
        }
      ],
      "groups": []
    },
    "project_name": "Guardians of the Galaxy",
    "admin_ids": [
      "7d71e778-ca30-11f0-a347-3ecc597c3201"
    ],
    "admin_group_ids": null,
    "display_name": "Guardians of the Galaxy"
  }
}
update_project (case="admin_group")
{
  "project": {
    "contact_email": "support@globus.org",
    "id": "7d71e638-ca30-11f0-a347-3ecc597c3201",
    "admins": {
      "identities": [],
      "groups": [
        {
          "id": "7d71e7f0-ca30-11f0-a347-3ecc597c3201",
          "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": [
      "7d71e7f0-ca30-11f0-a347-3ecc597c3201"
    ],
    "display_name": "Guardians of the Galaxy"
  }
}
update_scope (case="default")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d830a76-ca30-11f0-a347-3ecc597c3201/6dfc5aa551ac441c9d01fb748a3661cd",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "28bf74be306c4e1abebabad4bd331a50",
    "description": "87bd0c9e679c4e15a8ef7d3b4fc0f5d6",
    "client": "7d830b98-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="name")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831020-ca30-11f0-a347-3ecc597c3201/43dfef2340404b9ea90cb5967408ca75",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "38d8b45b6f9f42f98eaf6c09fbf474ba",
    "description": "d33c3aeea68f423d87c1b1baa4aa02f5",
    "client": "7d831124-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="description")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d8311ec-ca30-11f0-a347-3ecc597c3201/5fe472e507c54fe5b220099aaa85c8d4",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "1014f04c818d4a04904948084e5711ae",
    "description": "66aeb507757a46b48cfe42cc2a227228",
    "client": "7d8312be-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="scope_suffix")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831368-ca30-11f0-a347-3ecc597c3201/60cbac22a24b481a9dd8496dfeebbc42",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "c37176f96ad940458d1e737f70895245",
    "description": "6f6ef27897754582aa11397afe8f7568",
    "client": "7d83143a-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="no_required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d8314d0-ca30-11f0-a347-3ecc597c3201/ecbc39ec9dca499d8521b4f082267dcc",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "817f3a8d310d49e798d4a95d6ceb46b0",
    "description": "a4b6af63312145eeb0e180c7081ead70",
    "client": "7d831598-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="required_domains")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831624-ca30-11f0-a347-3ecc597c3201/4da5c54a317348238da952eae184b633",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [
      "globus.org",
      "uchicago.edu"
    ],
    "name": "53577a4f38ae475a8db9a5ad42b681ee",
    "description": "039c47c662e945e18f29eacc6e48e4ca",
    "client": "7d831714-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="no_dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d8317b4-ca30-11f0-a347-3ecc597c3201/8c1842d4d88b4429b12c6eb6ad4e6a55",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "9208415774f04f1d86a752f05eee59f6",
    "description": "493f3aeb78d749fd824d48456b7fb91e",
    "client": "7d83187c-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="dependent_scopes")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831a16-ca30-11f0-a347-3ecc597c3201/ce3b54621c464272bfe426ef3591b55b",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "59b2e232c6b545009a11bef0dc0bfac2",
    "description": "6ab22439a5bc48a383c9f4998b5430e1",
    "client": "7d831af2-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": [
      {
        "scope": "7d8318fe-ca30-11f0-a347-3ecc597c3201",
        "optional": true,
        "requires_refresh_token": true
      },
      {
        "scope": "7d83198a-ca30-11f0-a347-3ecc597c3201",
        "optional": false,
        "requires_refresh_token": false
      }
    ]
  }
}
update_scope (case="advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831be2-ca30-11f0-a347-3ecc597c3201/2a83879ff8eb4092b320f028ed06f5cd",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": true,
    "required_domains": [],
    "name": "3ffd6662fe2a4031aa35d702178928e5",
    "description": "396f458d57b944d3ae9de1d80d2b280e",
    "client": "7d831caa-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="not_advertised")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831d40-ca30-11f0-a347-3ecc597c3201/4e50693864534625bb966cea0657bf61",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "7523e9fcfd264a578ed2755def3e1cb0",
    "description": "4b01b8f3407c4b2d96f4d78444533a16",
    "client": "7d831e1c-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="allows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831ea8-ca30-11f0-a347-3ecc597c3201/1810a76f2a6148d1b8af98c432cdcd25",
    "allows_refresh_token": true,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "97eea90fb7ac41b28e4631cca9602604",
    "description": "1c3c8a4a6cc746f5ae8505fd7c550f4e",
    "client": "7d831f7a-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
update_scope (case="disallows_refresh_token")
{
  "scope": {
    "scope_string": "https://auth.globus.org/scopes/7d831ffc-ca30-11f0-a347-3ecc597c3201/5e1516e13c954f34a0ac13ad4c2db39b",
    "allows_refresh_token": false,
    "id": "7d830670-ca30-11f0-a347-3ecc597c3201",
    "advertised": false,
    "required_domains": [],
    "name": "47d54460e2e44a69b8555e8444eecddc",
    "description": "c7a6b5b4ad8643718530a6b9ef7e894a",
    "client": "7d8320c4-ca30-11f0-a347-3ecc597c3201",
    "dependent_scopes": []
  }
}
userinfo (case="unauthorized")
{
  "errors": [
    {
      "status": "401",
      "id": "7fa52168-ca30-11f0-a347-3ecc597c3201",
      "code": "UNAUTHORIZED",
      "detail": "Call must be authenticated",
      "title": "Unauthorized"
    }
  ],
  "error_description": "Unauthorized",
  "error": "unauthorized"
}
userinfo (case="forbidden")
{
  "errors": [
    {
      "status": "403",
      "id": "7fa52280-ca30-11f0-a347-3ecc597c3201",
      "code": "FORBIDDEN",
      "detail": "Call must be authenticated",
      "title": "Unauthorized"
    }
  ],
  "error_description": "Unauthorized",
  "error": "unauthorized"
}