Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

update users's own profile: support AAD mode; update extension #5032

Merged
merged 4 commits into from
Nov 3, 2020

Conversation

suiguoxin
Copy link
Member

@suiguoxin suiguoxin commented Oct 30, 2020

This PR is for release v1.4. Needed for multi-cluster feature.

update users own profile API:

  • support AAD mode
  • suppport extension update
  • Some code is refactored: checkAdmin should be a common logic in token check, while checkSelf should be controller specific since it relies on the request body.

@coveralls
Copy link

coveralls commented Oct 30, 2020

Coverage Status

Coverage decreased (-0.2%) to 34.228% when pulling b95eb62 on suiguoxin:user-profile into 0df8edf on microsoft:master.

@suiguoxin suiguoxin requested review from abuccts and hzy46 October 30, 2020 03:42
@suiguoxin suiguoxin marked this pull request as ready for review November 3, 2020 02:21
Comment on lines 69 to 70
token.checkAdmin,
param.validate(userInputSchema.basicAdminUserUpdateInputSchema),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the order to keep consistent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the order to keep consistent?

Auth check should have a higher level of priority than content check. checkAdmin is independent of the input schema, so I think it should be placed before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the order to keep consistent?

Order changed to keep the original logic.

@suiguoxin suiguoxin merged commit 730a23c into microsoft:master Nov 3, 2020
@suiguoxin suiguoxin deleted the user-profile branch November 3, 2020 09:03
@suiguoxin suiguoxin mentioned this pull request Nov 20, 2020
38 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants