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

Angular: OpenID RedirectUri #7464


User avatar
0
kasem created

Hi

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


8 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

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

  • User Avatar
    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?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kasem

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

  • User Avatar
    0
    kasem created

    Hi @ismcagdas

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

    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

  • User Avatar
    0
    kasem created

    any news here? it's urgent and blocking

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    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?

  • User Avatar
    0
    ismcagdas created
    Support Team

    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: