Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How can i pass user authen to other project #10023


User avatar
0
kwanp created

My version ASP.NET CORE & Angular v9.1.0 with .NET Core 3.1

I have 2 projects and i want to share user login authen

How can i pass user authen to other project?

Thank you


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kwanp

    You can take a look at how Public website project logins using the Host project. These two apps are using a shared login like you wanted.

  • User Avatar
    0
    kwanp created

    what about if i want to share user login authen to other website on different Server and port, It is possible?

    Thank you

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kwanp

    In that way, maybe it is better to use Identity Server on your main app. You can enable identity server on your AspNet Zero app, and other website can login to your Zero app using OpenID Connect protocol. In this way, you can implment a single sign on.

  • User Avatar
    0
    kwanp created

    Any tutorial that i can learn how to implement Identity Server to use OpenID Connect protocol.

    Thank you

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kwanp

    You can just enable Identity Server in your AspNet Zero project's appsettings.json file. To connect it using OpenID Connect, you can follow this document. It explains connecting to Azure AD but same steps will be valid for AspNet Zero.