<@U04UQ68083H> Is it possible to configure/use a s...
# ory-copilot
f
@chilly-king-10285 Is it possible to configure/use a specific provider id/url in Polis for SAML connections?
c
A message from kapa.ai
Short answer: you can supply a metadata URL for the IdP, but you can’t set an arbitrary “provider id” yourself—Polis derives the provider from the IdP metadata. - When creating a SAML connection you either pass the raw metadata or a metadataUrl; Polis reads the IdP’s details from that metadata. The API response includes idpMetadata.provider (the detected provider/domain). [[SSO API](https://www.ory.sh/docs/polis/sso-flow#sso-connection-api)] - There’s no option documented to manually set a custom provider id; it’s inferred from the metadata you provide. [[SSO API](https://www.ory.sh/docs/polis/sso-flow#sso-connection-api)] - If by “provider id/url” you meant your SP identifiers/URLs, you can configure those via environment variables: SAML_AUDIENCE (SP Entity ID) and ACS_URL (custom ACS URL). [[Env vars](https://www.ory.sh/docs/polis/deploy/env-variables)]