-
Notifications
You must be signed in to change notification settings - Fork 289
Enhanced AppService EasyAuth Payload Processing #985
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
Conversation
…g and handling. Updated and added unit tests to reflect new behavior: invalid EasyAuth payload results in HTTP 401.
src/Service.Tests/Authentication/EasyAuthAuthenticationUnitTests.cs
Outdated
Show resolved
Hide resolved
Aniruddh25
left a comment
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.
LGTM after answering few questions :)
…ill not be present for anonymous requests.
…om/Azure/data-api-builder into dev/seleonar/easyAuthParseEnahance
src/Service.Tests/Authentication/EasyAuthAuthenticationUnitTests.cs
Outdated
Show resolved
Hide resolved
ayush3797
left a comment
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.
LGTM!
ayush3797
left a comment
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.
LGTM! Thanks for resolving the comments, Sean!
Why make this change?
StaticWebAppsorAppServiceWhat is this change?
identityas an EasyAuth authentication failure.identityisnullwhen:AppServiceClientPrincipaltypes.AppServiceClientPrincipalbut propertyAuth_typis null.Auth_typsignifies the authentication method (provider) and a null value is not expected.How was this tested?
Sample Request(s)
X-MS-CLIENT-PRINCIPALheader as the following JSON when authentication provider isAppService{"message": "hello world"}