-
Notifications
You must be signed in to change notification settings - Fork 372
Added better error message for OIDC error #5433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/MsalServiceExceptionFactory.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/MsalServiceExceptionFactory.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/MsalServiceExceptionFactory.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Common/Core/Mocks/MockHttpManagerExtensions.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CoreTests/InstanceTests/GenericAuthorityTests.cs
Outdated
Show resolved
Hide resolved
{ | ||
var handler = new MockHttpMessageHandler() | ||
{ | ||
ExpectedUrl = authority + "oauth2/v2.0/token", | ||
ExpectedUrl = expectedUrl != null? expectedUrl : $"{authority}oauth2/v2.0/token", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: space between "null" and "?"
public const string AadAccountTypeAndResourceIncompatibleErrorCode = "AADSTS500207"; | ||
public const string AadMissingScopeErrorCode = "AADSTS900144"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you re-use the constants from src/client/Microsoft.Identity.Client/Internal/Constants.cs
? Wouldn't that be better?
.Build(); | ||
|
||
httpManager.AddMockHandler( | ||
CreateOidcHttpHandler(authority + "/" + Constants.WellKnownOpenIdConfigurationPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I know you said you didn't want to use string interpolation for just one string character, but I think we should try to be consistent.
Fixes #
Fix for #4676
Changes proposed in this request
Adding better message for OICD errors
Testing
Performance impact
Documentation