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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:33:35+00:00 2026-06-17T11:33:35+00:00

I’m really puzzled about this, I know there is a couple of duplicate posts

  • 0

I’m really puzzled about this, I know there is a couple of duplicate posts like this around, done quite some reading and I know a bit about ClaimsResponse (at least i think i do) working with both SREG and AX information, web.config configuration for enabling AXFetchAsSregTransform, how to use ClaimsRequest to get Google Email with DemandLevel.Require. What i’m trying to do is getting my sample to work (sample used from strathweb) with unified DotNetOpenAuth.dll library after v4.0 as a single reference to my project not a nuget package. Sample works with version DotNetOpenAuth-3.4.7.11121. I would greatly appreciate if anyone could give me some info regarding this problem. All goes well when I am creating request and using DotNetOpenAuth.dll v3.4.7:

public IAuthenticationRequest ValidateAtOpenIdProvider(string
openIdIdentifier, Realm realm, Uri returnurl)

{

IAuthenticationRequest openIdRequest = openId.CreateRequest(Identifier.Parse(openIdIdentifier), realm,
returnurl);

        var fields = new ClaimsRequest()
        {
            Email = DemandLevel.Require,
            FullName = DemandLevel.Require,
            Nickname = DemandLevel.Require
        };
        openIdRequest.AddExtension(fields);

        return openIdRequest;
    }

And redirecting the user to the service provider:

var response = openidemembership.ValidateAtOpenIdProvider(identifier,
realm, new Uri(“DomainUrl or Localhost/GoogleCallback”));

        if (response != null)
        {
            return response.RedirectingResponse.AsActionResult();
        }

After User is redirected back those 2 methods are called:

public OpenIdUser GetUser()
{

        OpenIdUser user = null;
        IAuthenticationResponse openIdResponse = openId.GetResponse();

        if (openIdResponse.IsSuccessful())
        {
            user = ResponseIntoUser(openIdResponse);
        }

        return user;
    }

private OpenIdUser ParseResponse(IAuthenticationResponse response)
{

        OpenIdUser user = null;
        var claimResponseUntrusted = response.GetUntrustedExtension<ClaimsResponse>();
        var claimResponse = response.GetExtension<ClaimsResponse>();
                  if (claimResponse != null)
        {
            user = new OpenIdUser(claimResponse, response.ClaimedIdentifier);
        }
        else if (claimResponseUntrusted != null)
        {
            user = new OpenIdUser(claimResponseUntrusted, response.ClaimedIdentifier);
        }

        return user;
    }

Inside the controller :

public ActionResult GoogleCallback()
{

        var user = openidemembership.GetUser();
        if (user != null)
        {
            //Create cookie and redirect the user back 
            return new RedirectResult(Request.Params["ReturnUrl"] ?? "/");
        }

        return View();
    }

Web.Config

 <section name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection" requirePermission="false" allowLocation="true" />

<dotNetOpenAuth>
    <openid>
      <relyingParty>
        <behaviors>
          <add type="DotNetOpenAuth.OpenId.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
        </behaviors>
      </relyingParty>
    </openid>
  </dotNetOpenAuth>

still after using DotNetOpenAuth.dll v4.0 +++, inside ParseResponse method call i can’t get any values from ClaimsResponse. And i am using namespace DotNetOpenAuth.OpenId.Extensions.SimpleRegistration. With nuget everything is fine, but is there any other way to get it working with single dll, i really don’t wont to add all those references from nuget to my existing project which i am currently working on for one of my customers, thank you in advance.

  • 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-17T11:33:36+00:00Added an answer on June 17, 2026 at 11:33 am

    Update your web.config file to use DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform. (Note the change in namespace to add “RelyingParty” to it. In v4.x, DotNetOpenAuth moved the namespace of behaviors in order to support the multi-assembly builds, and it impacted even the unified assembly versions.

    <dotNetOpenAuth>
        <openid>
          <relyingParty>
            <behaviors>
              <add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
            </behaviors>
          </relyingParty>
        </openid>
      </dotNetOpenAuth>
    

    Also, you can still use NuGet to get DotNetOpenAuth even if you want the unified assembly:

    Install-Package DotNetOpenAuth.Ultimate

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I know there's a lot of other questions out there that deal with this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

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.