Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8600467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:37:25+00:00 2026-06-12T01:37:25+00:00

I have setup ACS on Azure and enabled WIF on my MVC 4 site

  • 0

I have setup ACS on Azure and enabled WIF on my MVC 4 site hosted on Azure. I also made a Windows Store App.

To be able to login from my windows store app i had to put this controller on the website to redirect the login to the webauthenticationbroker in the metro app.

public HttpResponseMessage Post()
        {
            var data = this.Request.Content.ReadAsFormDataAsync();
            var test = data.Result;

            var response = this.Request.CreateResponse(HttpStatusCode.Redirect);
            var identity = ((ClaimsIdentity)((ClaimsPrincipal)HttpContext.Current.User).Identity);
            var token = data.Result["wresult"];

            response.Headers.Add("Location", "/api/federation/end?acsToken=" + "hello");

            return response;
        }

There is two problems.
1) I cant return the token to Metro because its to long. A big xml with claims. What is it i should send to my client?

2) When i use WebAuthenticationBroker.AuthenticateAsync – if i want to use the following url to login(it pops up and people can pick what provider to use) the return url needs to be set on the ACS management site. It need to point to my controller /mysite/federation/.

https://traffictheory.accesscontrol.windows.net:443/v2/wsfederation?wa=wsignin1.0&wtrealm=/mysite/

and if i dont have this return url set to /mysite/ the authentication do not work on the mcv site.

I found one solution, setting the return url to /mysite/ and then in the windows store app i need to parse the identifiers myself.

    var client = new HttpClient();
    var response = await client.GetAsync("https://traffictheory.accesscontrol.windows.net:443/v2/metadata/IdentityProviders.js?protocol=wsfederation&realm=/mysite/&reply_to=/mysite/federation&context=&request_id=&version=1.0&callback=");
    var result = await response.Content.ReadAsStringAsync();

and pass a provider login to the authentication broker.

Is there another way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:37:26+00:00Added an answer on June 12, 2026 at 1:37 am

    For 1, ACS supports a number of token formats, some of which are quite compact. I would recommend trying JWT, which is in beta. You can also modify your output rules to decrease the number of claims in the token, which will make it smaller.

    For 2, WS-Federation includes a “wreply” parameter, so you can add “&wreply=https://mysite.com/federation”. Alternately, you can configure the “/federation” URL as the default reply URL for your RP in the ACS portal, in which case you don’t have to specify it on every request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have setup my ACS in Azure. I have created a MVC 4 WebAPI
I have setup all the things for Windows Azure and Drupal. But, when I
I have setup airbrake in my app but it doesn't seem to log any
I have setup an app project and a static project in a workspace in
I have setup some simple associations in my rails app: resources :properties do resources
I have setup a SharePoint site with forms authentication and My Sites. The users
I have setup Core Data for an iPhone app without an instance of NSFetchedResultsController.
I have setup a basic test app that displays a view containing a label,
I have setup a simplesaml installation and configured my sources, I made themes for
I have setup a test database and console app to confirm the following: Given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.