Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 2.22 KB

readme.md

File metadata and controls

31 lines (17 loc) · 2.22 KB

ADFS RelayState Generator

forthebadge

This a super simple webpage that helps you construct ADFS RelayState URLs. These days (2023) ADFS docs are scant, so I'm dropping this on GitHub in case another harried admin needs it.

What is ADFS RelayState?

ADFS Relay State is a parameter used in SAML Implementation to identify a specific resource on a resource provider. For example: To identify an account record in Salesforce.

Relay State specifies the path to which a user would be redirected, once the Identity Provider authenticates the user.

If a user tries to access a specific link embedded in an email such as https://test-sso-dev-ed.my.salesforce.com/003/o and has already logged in to Salesforce, then the user is redirected to the specific record.

If a user is not authenticated earlier, then user is redirected to the ADFS authentication URL and is authenticated and logged in to Salesforce org. However, in this case user gets redirected to his Salesforce org’s homepage and not the page pointed by embedded link because the redirected URL (with RelayState parameter) did not match ADFS’s expected format. Configuration of ADFS for Relay State and URL encoding can resolve this issue. Using Relay State, you can generate a single URL for the user to log in to the target application without any redirects. The generated URL can be embedded in email or documents and would result in IDP Initiated SSO.

Acknowledgements

Demo

https://anthonycastaneda.github.io/RelayState_Generator

License

MIT

forthebadge