Identityserver4.admin: Help with external provider connection Azure AD

Created on 10 Sep 2020  路  7Comments  路  Source: skoruba/IdentityServer4.Admin

Hello, I have made the connection adding the OIC configurations, but when I click on the button generated on the login page, it returns this error. Attached images of the code and the error.

Captura

Anotaci贸n 2020-09-10 174518

question

All 7 comments

If I use the integration specified in the associated documentation, the _singInManager.GetExternalLoginInfoAsync () method always returns null.

Hi, in our case we have the following configuration:
image
And in the appsettings.json we have this configuration:
image

We had some issues with the creation of the external user (AutoProvisionUserAsync) some claims didn't match but other than that everything worked.

In your case set the ValidateIssuer = false and remove the IssuerValidatior method because that is a custom implementation;
But from what i can understand from your exception it seems that it might a problem of communication. Maybe your URL is not well created.

I am finally using this code. With it I have been able to solve the problem of _signInManager.ExternalLoginSignInAsync ().
I don't know if it's the best option but it worked for me.

`

authenticationBuilder
.AddAzureAD(AzureADDefaults.AuthenticationScheme,AzureADDefaults.OpenIdScheme,AzureADDefaults.CookieScheme,AzureADDefaults.DisplayName, options =>
{
options.ClientId = externalProviderConfiguration.AzureADClientId;
options.TenantId = externalProviderConfiguration.AzureADTenantId;
options.Domain = externalProviderConfiguration.AzureADDomain;
options.Instance = externalProviderConfiguration.AzureADInstance;
options.CallbackPath = externalProviderConfiguration.AzureADCallbackPath;
options.CookieSchemeName = IdentityConstants.ExternalScheme;
});

`

Hi all,

Is it planned to integrate this configurable possibility to the main repo?
For people who use built docker image it can be interesting i think.
What do you think about that ? @skoruba
In my case, i using built docker images rc3 and infact i would like to integrate azureAD authentication.
I can implement in my side this configurable part and propose as PR if you want.

Valentin

Good idea, could you please send a PR?
Thanksx.

@skoruba sure, i currently testing it on my side.
I send PR this week for that :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mehrdad-Davoudi picture Mehrdad-Davoudi  路  4Comments

we4sz picture we4sz  路  4Comments

Aegide picture Aegide  路  4Comments

adeelansari picture adeelansari  路  4Comments

denisisack picture denisisack  路  4Comments