IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

IdentityServer4 and ADFS 4.0

Open windischb opened this issue 9 years ago • 4 comments

Hi!

I have configured my IdentityServer to use ADFS from Windows Server 2016 with "app.UseOpenIdConnectAuthentication"

After entering my credentials on the ADFS Site i'll be always redirected to "/account/login". I can't figure out if this is a Setting on Identityserver or on ADFS Site.

Any Ideas? Br Bernhard

windischb avatar Feb 01 '17 19:02 windischb

I just added my ADFS to the IS4 host - check the latest on dev.

All I needed to do was to add an "app group" in ADFS and point it to the "signin-adfs" callback address.

leastprivilege avatar Feb 04 '17 17:02 leastprivilege

closing for now - feel free to re-open if it needs further discussion.

leastprivilege avatar Feb 05 '17 14:02 leastprivilege

Hi! where can I found an example of that configuration: use ADFS as an External Identity provider for IdSrv4? In another post I read this: "You have to setup IdSrv in ADFS as a relying party, and ADFS in IdSrv as an identity provider" but I dont know how can I do that.

In documentation I saw it may be done using Oidc: ".AddOpenIdConnect("adfs", "ADFS", options =>{...});"

but what is the configuration I need to do? Is the same for connecting to Azure AD, only changing the authority? I made the next configuration for Azure AD: .AddOpenIdConnect("AAD", "Employees", options => { options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme; options.SignOutScheme = IdentityServerConstants.SignoutScheme; options.Authority = "https://login.microsoftonline.com/common"; options.ClientId = "<GUID for configured app in azure ad - apps>"; options.Scope.Add("openid"); options.Scope.Add("profile"); options.TokenValidationParameters = new TokenValidationParameters { ValidateIssuer = false }; options.GetClaimsFromUserInfoEndpoint = true; });

Thanks in advance.

gcardozoj avatar Aug 29 '18 16:08 gcardozoj

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 13 '20 01:01 lock[bot]