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 7188813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:09:59+00:00 2026-05-28T19:09:59+00:00

I am playing with DotNetOpenAuth samples, trying to understand how to properly integrate with

  • 0

I am playing with DotNetOpenAuth samples, trying to understand how to properly integrate with OpenID. One of the samples is called OpenIdRelyingPartyMvc. It has two code sections that I am not sure about how they influence functionality.

  • In Global.asax.cs:

    routes.MapRoute(
        "Default",                                              // Route name
        "{controller}/{action}/{id}",                           // URL with parameters
        new { controller = "Home", action = "Index", id = string.Empty });  // Parameter defaults
    
    routes.MapRoute(
        "Root",
        string.Empty,
        new { controller = "Home", action = "Index", id = string.Empty });
    

If I remove last line that maps “Route”, nothing seems to be affected: mapping “Default” seems to be sufficient. Why is there a “Route” route?

  • In HomeController.cs

    public class HomeController : Controller {
        public ActionResult Index() {
            Response.AppendHeader(
                "X-XRDS-Location",
                new Uri(Request.Url, 
                    Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri);
            return View("Index");
        }
    
        public ActionResult Xrds()
        {
            return View("Xrds");
        }
    }
    

If I remove “AppendHeader” call and test the sample, it still works! I understand that this header is sufficient, I just can’t make the sample application depend on it: it works without it’s being set up. If I set the breakpoint inside Xrds method, it is never triggered.

  • 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-05-28T19:10:00+00:00Added an answer on May 28, 2026 at 7:10 pm

    The route in global.asax.cs may be superfluous.

    The X-XRDS-Location header that you’re removing is not strictly necessary for the OpenID flow, but if you publish your relying party application without out, Yahoo! and other OpenID Providers may warn the user that your site is not legit.

    You can test this locally (and thus observe the Home/Xrds action being executed) by running the OpenIdProviderWebForms sample and logging into your RP using an identifier from that sample OP. During login, the OP will query the RP’s XRDS, and on the web page asking you to confirm the login, it will indicate whether “RP verification” succeeded or failed. If it succeeded, you should be good to go.

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

Sidebar

Related Questions

I am currently playing with DotNetOpenAuth to make an ASP.NET (C#) website use OpenID
Just playing around with java trying to learn it etc. Here is my code
Playing with jquery for the first time, and I'm trying to get a simple
Just playing around with the now released Silverlight 2.0. I'm trying to put a
While playing around with the emulator, I noticed that when trying to view a
While playing around with one-to-one associations in castle activerecord I stumbled upon the following
been playing with http://openidenabled.com/php-openid/trunk/examples/consumer and tried the following: flim.blogspot.com flimcc.blogspot.com The first works, the
Been playing around with JavaScript, and what Im trying to do is only allow
Recently playing around with the open source iphone app code, and found it uses
Been playing with this for too long now! I'm using codeigniter. I am trying

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.