Partner-Center-DotNet-Samples icon indicating copy to clipboard operation
Partner-Center-DotNet-Samples copied to clipboard

Partner Consent App Does not Redirect with ADFS

Open jhughes17 opened this issue 7 years ago • 7 comments

Steps to reproduce

Configured Application with the Config Values, ran project and it prompts for login. Enter my username, redirects because domain is on ADFS, project redirects to blank page, no token exchange occurs. I am trying to just use the example to understand how everything works but since we are ADFS it appears not to be working. Are there additional actions that must be taken for domains configured to use ADFS?

jhughes17 avatar Dec 12 '18 16:12 jhughes17

@jhughes17 I have the same problem. Did you ever resolve this?

maciz84 avatar Jan 04 '19 14:01 maciz84

@jhughes17 I have the same problem. Did you ever resolve this?

Afraid not! Still waiting on a response since it was tagged as a bug. @isaiahwilliams any chance you can give us additional information?

jhughes17 avatar Jan 04 '19 16:01 jhughes17

Hey! I have set up the Redirect URi in the OpenIdConnectAuthenticationOptions in Configure Auth of Startup.Auth, and also in the Redirect URIs of the Azure Portal Web application registration but still no luck when trying to authenticate with ADFS. The enforcement date is coming and this is going to cause major disruption to our operations! Any assistance is appreciated! Have you tested this on ADFS?

jhughes17 avatar Jan 15 '19 21:01 jhughes17

Hi @jhughes17,

I have deployed ADFS, in a lab, and I have not been able to reproduce your issue. Would you sharing what version you are using?

Also, just to confirm you have this domain federated with Azure AD and it is working when accessing Azure or Office 365?

ghost avatar Jan 17 '19 05:01 ghost

Okay. I have figured out the Issue.

The GUID in my app.config for the ida:CSPApplicationId was UPPER CASE. SQL Generates all of our GUIDs as Upper so we store them in the fashion when we save them as well.

I changed the GUID to be lower case in the config file and voila! It worked. Its strange to me that the convention for GUID is lower case in owin, when by default the convention is upper case.

@maciz84 check if this works for you, not sure if it's the same as you were facing.

jhughes17 avatar Jan 17 '19 16:01 jhughes17

@isaiahwilliams I just want to thank you for your patience in helping me with this, I am sorry to have used up so much of your time!

jhughes17 avatar Jan 17 '19 16:01 jhughes17

Hi. I have been working as c# developer since 2016. I want to contribute open sources but I don;t have experience much. Who can help me?. Thanks

lethienhoang avatar May 19 '19 12:05 lethienhoang