1. Update lib/auth.ts
Enable the skipRequestAcsUrl option and ensure metadata signing is enabled.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
How to use a single IdP configuration for multiple environments.
SAML Identity Providers (IdPs) typically require a strict match between the Assertion Consumer Service (ACS) URL configured in the IdP and the one sent in the SAML request.
This creates a challenge for:
Traditionally, you would need to register separate Assertion Consumer Service (ACS) URLs for each environment.
The weblogin-auth-sdk supports a skipRequestAcsUrl option. When enabled, the SDK does not send the AssertionConsumerServiceURL in the SAML AuthnRequest.
Stanford's IdP supports this via the skipEndpointValidation feature. This allows the IdP to accept requests from any URL as long as the Entity ID matches and the request is signed with the registered certificate.
Enable the skipRequestAcsUrl option and ensure metadata signing is enabled.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
Set this variable in your non-production environments (localhost, previews, staging).
| 1 | |
When registering your SP with SPDB, to enable skipEndpointValidation for your Entity ID. You must provide your metadata with a valid signing certificate.