locked
how to create single sign on for multiple domains RRS feed

  • Question

  • User-722317328 posted

    I'm using asp.net c#

    And I am trying to create single sign on for multiple domains but dont know how to do.

    I had already check below link video but not redirected go back.

    Link is here.

    https://youtu.be/qR4KXDK4HWE

    Please solve my problem.

    Thanks.

    Monday, November 16, 2020 10:19 PM

All replies

  • User475983607 posted

    I'm using asp.net c#

    And I am trying to create single sign on for multiple domains but dont know how to do.

    I had already check below link video but not redirected go back.

    Link is here.

    https://youtu.be/qR4KXDK4HWE

    Please solve my problem.

    The best a support forum can do is point you in a direction.  Learning is up to you.  IdentityServer4 which is an OAuth/OIDC server is a good place to start learning modern SSO.  Set aside time to go through the Quick Starts. https://identityserver4.readthedocs.io/en/latest/

    You'll have a much better understanding once you get through the quick starts and play around with the protocol.

    If you have questions about the youTube video then I recommend contacting the author for assistance. 

    Monday, November 16, 2020 11:12 PM
  • User1535942433 posted

    Hi ibrartrq,

    ibrartrq

    I'm using asp.net c#

    And I am trying to create single sign on for multiple domains but dont know how to do.

    I had already check below link video but not redirected go back.

    Link is here.

    https://youtu.be/qR4KXDK4HWE

    Please solve my problem.

    Thanks.

    Could you tell us the sentences of "not redirected go back" meanings? Do you couldn't  redirects to the originally requested page?

    Do you make sure credentials is correct and set cookie correctly?

    There is a  SSO Form Authentication opeartions:

    • You hit a page in an ASP.NET application which is accessible only to the authenticated users (logged in users) of the application.
      The ASP.NET runtime looks for a cookie (forms authentication cookie) in the request, and if the cookie is not found, it redirects the current request to the login page (the login page location is configured in the web.config).
    • You provide the login credentials and hit the "Login" button. Assuming that the credentials are correct, your system validates the credentials successfully against the data storage, sets the user name to the Thread.CurrentPrincipal.Identity.Name property, writes a cookie in the Response (along with setting the cookie value with the user information and setting some properties like cookie name, expiration date/time etc.), and redirects to the originally requested page.
    • You hit another page in the application (or, click a link that navigates you to another page), and your browser sends the authentication cookie (with any other cookie that were written by the same site earlier), this time because the browser has already got the authentication cookie in the last response.
    • As usual, the ASP.NET runtime looks for the authentication cookie in the request, and this time it finds the cookie. It checks the cookie properties (like expiration date/time, path etc.), and if not expired already, reads the cookie value, retrieves the user information from the cookie, sets the user name into the Thread.CurrentPrincipal.Identity.Name property, checks if the user has permission to access the requested page, and if he/she has permission, executes and serves the page to the browser.

    More details,you could refer to below article:

    https://www.codeproject.com/Articles/106439/Single-Sign-On-SSO-for-cross-domain-ASP-NET-applic

    Best regards,

    Yijing Sun 

    Tuesday, November 17, 2020 2:26 AM
  • User-722317328 posted

    not solved my problem. Still facing error

    Sunday, January 3, 2021 11:29 AM
  • User475983607 posted

    You must realize that we cannot see the error in your code.  What is the error?  Did you follow the advice and learn OAuth/OIDC and IdentityServer4?  Can you share code that reproduces the issue you are having?

    Sunday, January 3, 2021 12:40 PM
  • User-722317328 posted

    Can you post a video tutorial link for better understainding.

    Monday, January 4, 2021 2:44 PM