SAML Redirect

0
Hi I have web application which is using your SAML component to authenticate via ADFS. I’ve got this working well, but the bit I’m stuck on this scenario: 1. User tries to open a page in the website which is not the login screen eg https://mywebsite.com/app/customers 2. The user is then redirected to ADFS for authentication 3. The user authenticates in ADFS and is then taken back to the Main Menu page of my website, which is how ADFS has been configured My question is, am I able to find out what the initial Url was eg /customers and redirect the user back to that Url once they are authenticated in ADFS? If so, how? Many thanks Damien
 
asked 2/26/2019 10:21:59 PM
add a comment

1 Answers

0
You should send the IdP your request with a relay state which can be your user session ID. That ID is used to identify the user and the initial URL. When you receive a redirect request back from your IdP you will be able to lookup the initial URL by that ID.
 
answered 2/27/2019 2:35:38 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged asp.net mvc or ask your own question.