# REST Resource: projects.inboundSamlConfigs

- [Resource: InboundSamlConfig](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig)
  - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SCHEMA_REPRESENTATION)
  - [IdpConfig](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpConfig)
    - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpConfig.SCHEMA_REPRESENTATION)
  - [IdpCertificate](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpCertificate)
    - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpCertificate.SCHEMA_REPRESENTATION)
  - [SpConfig](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpConfig)
    - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpConfig.SCHEMA_REPRESENTATION)
  - [SpCertificate](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpCertificate)
    - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpCertificate.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#METHODS_SUMMARY)

## Resource: InboundSamlConfig

A pair of SAML RP-IDP configurations when the project acts as the relying party.

| JSON representation |
|---|
| ``` { "name": string, "idpConfig": { object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpConfig`) }, "spConfig": { object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpConfig`) }, "displayName": string, "enabled": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests. |
| `idpConfig` | ``object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpConfig`)`` The SAML IdP (Identity Provider) configuration when the project acts as the relying party. |
| `spConfig` | ``object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpConfig`)`` The SAML SP (Service Provider) configuration when the project acts as the relying party to receive and accept an authentication assertion issued by a SAML identity provider. |
| `displayName` | `string` The config's display name set by developers. |
| `enabled` | `boolean` True if allows the user to sign in with the provider. |

### IdpConfig

The SAML IdP (Identity Provider) configuration when the project acts as the relying party.

| JSON representation |
|---|
| ``` { "idpEntityId": string, "ssoUrl": string, "idpCertificates": [ { object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpCertificate`) } ], "signRequest": boolean } ``` |

| Fields ||
|---|---|
| `idpEntityId` | `string` Unique identifier for all SAML entities. |
| `ssoUrl` | `string` URL to send Authentication request to. |
| `idpCertificates[]` | ``object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.IdpCertificate`)`` IDP's public keys for verifying signature in the assertions. |
| `signRequest` | `boolean` Indicates if outbounding SAMLRequest should be signed. |

### IdpCertificate

The IDP's certificate data to verify the signature in the SAMLResponse issued by the IDP.

| JSON representation |
|---|
| ``` { "x509Certificate": string } ``` |

| Fields ||
|---|---|
| `x509Certificate` | `string` The x509 certificate |

### SpConfig

The SAML SP (Service Provider) configuration when the project acts as the relying party to receive and accept an authentication assertion issued by a SAML identity provider.

| JSON representation |
|---|
| ``` { "spEntityId": string, "callbackUri": string, "spCertificates": [ { object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpCertificate`) } ] } ``` |

| Fields ||
|---|---|
| `spEntityId` | `string` Unique identifier for all SAML entities. |
| `callbackUri` | `string` Callback URI where responses from IDP are handled. |
| `spCertificates[]` | ``object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs#InboundSamlConfig.SpCertificate`)`` Output only. Public certificates generated by the server to verify the signature in SAMLRequest in the SP-initiated flow. |

### SpCertificate

The SP's certificate data for IDP to verify the SAMLRequest generated by the SP.

| JSON representation |
|---|
| ``` { "x509Certificate": string, "expiresAt": string } ``` |

| Fields ||
|---|---|
| `x509Certificate` | `string` Self-signed public certificate. |
| `expiresAt` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Timestamp of the cert expiration instance. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs/create` | Create an inbound SAML configuration for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs/delete` | Delete an inbound SAML configuration for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs/get` | Retrieve an inbound SAML configuration for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs/list` | List all inbound SAML configurations for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.inboundSamlConfigs/patch` | Update an inbound SAML configuration for an Identity Toolkit project. |