isAuthorizedSE is an optional service extension that can be used on its own or in addition to rules to determine if a user is authorized. When both rules and isAuthorizedSE are configured, a user will be authorized if both the rules and the isAuthorizedSE evaluate to true.
#### Unauthorized Page
`unauthorizedPage` is an optional parameter that specifies where the Orchestrator will redirect the user if they are not authorized to access the requested resource.
### Attribute Providers
The `attrProviders` is an optional configuration for an identity system or data store from which the SAMLProvider may retrieve additional attributes used in `claimsMapping`.
#### Connector
Connector is a reference to the name of the defined connector which will be used as an attribute provider.
#### usernameMapping
The `usernameMapping` configuration makes sure the Attribute Provider (i.e. LDAP Connector) has the correct attribute it needs to successfully query for the user's attributes. It specifies the attribute used to look up user attributes from the defined attribute provider.
### Signature
`signature` defines the certificate and key used when signing SAML responses. By default, both the SAML response element and SAML assertion element will be signed.
Key-pairs used for signing can be loaded from a secret provider, defined inline, or loaded from the file system. Only one of these methods can be used at a time.
This field is optional when defined on a SAML app. When the `signature` properties are not defined on the app, the certificates attached to the [SAML Provider](/v1/docs/saml-provider-local-development) will be used. It may be advantageous to define unique signing certificates per SAML app to help manage the testing overhead of certificate rotations.
To retrieve app-specific metadata, add the `appID` query param when making a metadata request. For example, `https://idp.enterprise.com/idp/saml/metadata.xml?appID=0cb87d2a-76af-4450-8d7c-455b45eec312` where `0cb87d2a-76af-4450-8d7c-455b45eec312` represents the app's ID (name).
#### Certificate
`certificate` is the x509 certificate used by SAML service providers to validate the signature of SAML response and assertions.
#### Certificate File
`certificateFile` is the path to the x509 certificate file used by SAML service providers to validate the signature of SAML response and assertions.
#### Private Key
`privateKey` is the RSA256 private key used to sign SAML assertions.
#### Private Key File
`privateKeyFile` is the path to the RSA256 private key file used to sign SAML assertions.
#### Disable Signed Response
`disableSignedResponse` a boolean value to disable the signing of the SAML response element.
#### Disable Signed Assertion
`disableSignedAssertion` a boolean value to disable the signing of the SAML assertion element.
### Encryption
`encryption` is an optional configuration used for encrypting the SAML assertion.
#### Key Encrypt Method
`keyEncryptMethod` configures the encryption method for encrypting the symmetric key which is used to encrypt the assertion. Currently, we support two values here which are [RSA_OAEP](http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p) and [RSA-1_5](http://www.w3.org/2001/04/xmlenc#rsa-1_5).
`RSA-1_5` is not recommended according to the [XML encryption spec](https://www.w3.org/TR/xmlenc-core1/#sec-RSA-1_5) due to security risks associated with the algorithm.
#### Data Encrypt Method
`dataEncryptMethod` configures the encryption method for encrypting the actual data of the assertion. Valid values are `AES128CBC`, `AES192CBC`, and `AES256CBC`.
#### Digest Method
`digestMethod` is the message digest algorithm use to compute a message digest as part of the encryption process. Valid values are `SHA256`, and `SHA512`.
#### Certificate
`certificate` is the PEM encoded string that can be defined inline or via a secret provider. This certificate is typically retrieved from the Service Provider.
### Claims Mapping
`claimsMapping` defines how to map attributes from the session to a SAML assertion.
### Build Claims Service Extensions
`buildClaimsSE` is an optional Service Extension that can customize which attributes will be added to the SAML 2.0 AttributeStatement.
> [!NOTE]
> Only a subset of data types can be used as attribute values. The following builtin data types are supported as attribute values: `bool`, `int`, `int8`, `int32`, `int64`, `float32`, `float64`, and `string`.
## Examples
### Basic SAML App Config Example
```yaml
apps:
- name: exampleSAMLApp
type: saml
entityIDs:
- identifier: https://app.enterprise.com
default: true
- identifier: https://beta.enterprise.com/
consumerServiceURLs:
- url: https://app.enterprise.com/acs
default: true
- url: https://app2.enterprise.com/acs
logoutServiceURL: https://app.enterprise.com/logout
idpInitiatedLogin:
loginURL: https://idp.enterprise.com/sso/example-app
relayStateURL: https://app.enterprise.com/index.html
duration: 300
requestVerification:
certificate: