Note that there are some explanatory texts on larger screens.

plurals
  1. POPassing SWT token from Azure ACS to my application
    primarykey
    data
    text
    <p>I have created an ASP.NET MVC 4 WebApi application, which uses claims based authentication, and uses Azure ACS as a federated authentication. Everything works fine out of the box, by that I mean that I have configured my Azure ACS as an STS reference, I have added class for SWTSecurityTokenHandler to be able to read SWT tokens from ACS, and now when I go into a secure address in my browser, I get redirected to ACS page where I can select my Identity provider, after selecting one I log in to this IdProv, and then I get redirected to my application, which can read claims from the generated token.</p> <p>Now my problem is, that I am trying to reimplement the same request->redirect->response path (from some identity provider to ACS and to my application) using just fiddler to imitate the requests and responses. I was able to get a token from my IdProv, pass it to ACS, and get an SWT token from ACS. </p> <p>But in whatever way I try to pass the ACS token to my application, it always redirects me to ACS IdProv selection page. I have no idea how to pass the token, so my application would try to use it. Can you guys instruct me on that?</p> <p>I am asking about it, because I will want to create a JS client, which will invoke this login logic later on, that's why I won't be able to use ACS IdProv selection screen.</p> <p>Am I doing something wrong, or my whole logic (to pass the token) is wrong? I would really appreciate some assistance, I have been struggling with that for almost a week now. </p> <p>---------------------------------------UPDATE------------------------------------------</p> <p>I have tried to create something similar to what is shown in this ACS example: <a href="http://msdn.microsoft.com/en-us/library/hh674475" rel="nofollow">http://msdn.microsoft.com/en-us/library/hh674475</a></p> <p>It is an example showing how to get an OAuth token from ACS, and I have managed to get a token from my ACS using this code: <a href="http://pastebin.com/tyTdNVCf" rel="nofollow">http://pastebin.com/tyTdNVCf</a></p> <p>And the final version of the code, tries to pass the obtained token to my application (running on localhost) but my application always returns the ACS IdProv selection page as a response. I have no idea what am I doing wrong...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload