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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:41:49+00:00 2026-05-26T07:41:49+00:00

Myself implementented SSO in my application using Authentication Exchange in c# by Dotnetopenauth My

  • 0

Myself implementented SSO in my application using Authentication Exchange in c# by Dotnetopenauth

My Doubts follows,

  1. On Response of my AX request , i dont receive any token. should i need to send any parameter ?
  2. In My Application i need user to sign in on Provider everytime , but rightnow if user clicks checkbox on “sign-in automatically next time” it never asks id and password from user next time .
  3. AX fetchResponse null for MyopenId. does it support only Simple Registration?

Request Code:

IAuthenticationRequest request = openid.CreateRequest(txt_openid_identifier.Text);

    var fetchRequest = new FetchRequest();
    fetchRequest.Attributes.Clear();
    fetchRequest.Attributes.AddRequired(WellKnownAttributes.Contact.Email);
    fetchRequest.Attributes.AddRequired(WellKnownAttributes.Name.First);
    fetchRequest.Attributes.AddRequired(WellKnownAttributes.Name.Last);                       fetchRequest.Attributes.AddRequired(WellKnownAttributes.Contact.HomeAddress.Country);                
            request.AddExtension(fetchRequest);

            // Issue request to OP
            request.RedirectToProvider();

Response Code:

using (var openid = new OpenIdRelyingParty())
        {
            var response = openid.GetResponse();

            if (response == null) return;

            switch (response.Status)
            {

                case AuthenticationStatus.Authenticated:
                    string emailID = string.Empty;
                    Session["email"] = string.Empty;
                    Session["name"] = string.Empty;
                    Session["country"] = string.Empty;
                    Session["Accesskey"] = string.Empty;
                    Session["SecretAccesskey"] = string.Empty;

                    var fetchResponse = response.GetExtension<FetchResponse>();

                    if (fetchResponse.Attributes.Contains(WellKnownAttributes.Contact.Email))
                    {
                        IList<string> emailAddresses =
                            fetchResponse.Attributes[WellKnownAttributes.Contact.Email].Values;
                        emailID = emailAddresses.Count > 0 ? emailAddresses[0] : null;
                    }
                    else
                        emailID = string.Empty;
            }
        }
  • 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-26T07:41:50+00:00Added an answer on May 26, 2026 at 7:41 am

    I found that certain providers (i.e. myopenid.com) returned null for a FetchRequest whilst returning valid data for ClaimsRequest. It appears different providers support different mechanisms for attribute exchange. In the request:

    var request = openid.CreateRequest(Request.Form["openid_identifier"]);
    
    var sr = new ClaimsRequest
    {
        Email = DemandLevel.Request, 
        FullName = DemandLevel.Request
    };
    request.AddExtension(sr);
    
    var fetchRequest = new FetchRequest();
    fetchRequest.Attributes.AddRequired(WellKnownAttributes.Contact.Email);
    fetchRequest.Attributes.AddOptional(WellKnownAttributes.Name.FullName);
    request.AddExtension(fetchRequest);
    
    return request.RedirectingResponse.AsActionResult();
    

    and when picking up the response:

    string email, fullName = String.Empty;
    var fetch = response.GetExtension<FetchResponse>();
    if (fetch != null)
    {
        email = fetch.GetAttributeValue(WellKnownAttributes.Contact.Email);
        fullName = fetch.GetAttributeValue(WellKnownAttributes.Name.FullName);
    }
    var claimResponse = response.GetExtension<ClaimsResponse>();
    if (claimResponse != null)
    {
        email = claimResponse.Email;
        fullName = claimResponse.FullName;
    }
    

    Thus we try both ways and hopefully gets the data from at least one of the methods.

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

Sidebar

Related Questions

Got myself in a funny situation: page has three tables. Using sortEnd, any time
I wrote myself a little downloading application so that I could easily grab a
Myself and my team is taking over a DNN web application done by a
Myself, along with my coworkers, aren't aware of any way to filter what is
Teaching myself SQL, and using an employee info db, on oracle 11g. I'm trying
I find myself using this logic a lot: if (isset($array[$key])) $array[$key] += $num; else
I find myself frequently using Python's interpreter to work with databases, files, etc --
I was asking myself how could I design a menu in my application? To
Myself and a colleague have a dispute about which of the following is more
I myself am convinced that in a project I'm working on signed integers are

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.