Open Closed

Angular: OpenID RedirectUri #7464


0
kasem created

Hi

What RedirectUrl should I define for OpenID callback in ASPNetCore with Angular version?


8 Answer(s)
  • 0
    maliming created

    Maybe you can take a look at this discussion: https://github.com/aspnetzero/aspnet-zero-core/issues/2347

  • 0
    kasem created

    Thank you. The solution isn't clear to me yet. Can you please post the exact redirectUri to authenticate users coming from the external OpenId login? Also, I noticed your last release included enhancements for OpenId. Maybe that was part of it?

  • 0
    ismcagdas created

    Hi @kasem

    It is the base url of the app. So, for development it will be http://localhost:4200

  • 0
    kasem created

    Hi @ismcagdas

    1. I noticed redirectUrl is pointing to the login URL instead of http://localhost:4200 openid.PNG

    1. Where can I add configurations like ClientSecret, Metadata end point, Scopes and more?
    2. I'm not familiar with OpenID but noticed you have IdentityServer configurations in appsettings. How IdentityServer are related to OpenID?

    Thanks

  • 0
    kasem created

    any news here? it's urgent and blocking

  • 0
    ismcagdas created

    Hi,

    yes, that configuration is correct. The configuration must be provided by openid provider you are using. Are you trying to connect to Azure Active Directory ? ─░f so, you can find the configuration on Active Directory section of Azure portal.

    ─░dentity Server configuration is not related here.

  • 0
    kasem created

    Hi @ismcagdas

    It's not Azure. I'm trying to connect to an organization that supports OpenID. I only sent them my RedirectUrl http://localhost:4200. They provided ClientID, ClientSecret, ClientName, ClientType, "Grants Required", Token Types, Scopes and different Endpoints

    I'm trying to figure out where I should add those details in NetZero. I found some of those properties available in "IdentityServer" node in appsettings, but since you have multiple IdentityServer configs I don't know which one to use. Also, where should I add the breakpoint to debug the authentication point with the targeted OpenID authority.

    Hope it's clear?

  • 0
    ismcagdas created

    Hi @kasem

    As I said before, Identity Server is not relevant here. You need to use those values in OpenId section of appsettings.json, see:

    image.png