Base solution for your next web application

Activities of "Gaurav.Mahajan"

Sorry, I have removed that code since it did not resolve the issue but it was a simple string replace (only on the one side that had the dashes). Also, it was passing thiscondition (not throwing the error here) but was failing on line 423 as mentioned above. HTH but please let me know if I can further assist

Hi! Sorry for the delay. I replicated this issue in ANZ 9.0 out of the box so its the same controller.

Stripping the dashes on the server side resulted in errors for me. This is where it failed:

Hi @ismcagdas

Thank you for your inputs. When you say strip dashes on the server side, it's just in the GetExternalUserInfo method from TokenAuthController (image shown above) or other places as well?

Also, what scenarios have you seen the dashes not come in from the provider, just so we can test and validate at our end?

Thank you!

Thanks for your response - Yes - it's O365 via Azure AD. Also, so I can account for them in my implementation if needed - what scenarios does the current implementation work with?

  • What is your product version? 9.0.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

Issue: This code in login.service.ts (see image below) is resulting in the Microsoft logins to fail. Could you please let me know if #1 is still an issue and why #2 had to be implemented in the first place? Removing the logic in #2 to strip the dashes fixes the login issue for us but I wanted to get your take on why was it needed in the first place? Did any of this implementation change as part of the 9.1.0 or 9.2.0 releases?

For your reference, the error occurs here in TokenAuthController becuase one of the keys has dashes and the other one does not:

Thank you!

Answer

Hi

Just checking to see if this evercame through: https://support.aspnetzero.com/QA/Questions/4435#answer-fabc2f47-8b35-44f1-ad6a-6c6bc35e12ff

Thank you!

Showing 1 to 7 of 7 entries