Skip to content
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

Fix for --unauthenticated-client-action V2 issue #5741

Merged
merged 6 commits into from
Feb 10, 2023
Merged

Conversation

annzho
Copy link
Contributor

@annzho annzho commented Jan 9, 2023

Previously, using az webapp auth --unauthenticated-client-action argument did not correctly update Unauthenticated Client Action configuration setting if the argument was set to RejectWith401, RejectWith404, or RejectWith403 due a naming mismatch between the CLI and the API surface.

Previous issues raised for this: Azure/azure-cli#24086, Azure/azure-cli#21618

The fix was to rename some of the allowed values for --unauthenticated-client-action. Also added the Return403 value. Allowed Values: RedirectToLoginPage, AllowAnonymous, Return401, Return404, Return403


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az webapp auth update command fix --unauthenticated-client-action argument

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

@ghost ghost requested review from yonzhan and zhoxing-ms January 9, 2023 22:40
@ghost ghost added the Auto-Assign Auto assign by bot label Jan 9, 2023
@ghost ghost requested a review from wangzelin007 January 9, 2023 22:40
@ghost ghost assigned zhoxing-ms Jan 9, 2023
@ghost ghost added this to the Jan 2023 (2023-02-07) milestone Jan 9, 2023
@ghost ghost added the App Services label Jan 9, 2023
@ghost ghost requested review from kairu-ms, jsntcy, jiasli and evelyn-ys January 9, 2023 22:40
@yonzhan yonzhan requested a review from yanzhudd January 9, 2023 23:18
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 9, 2023

webapp

@annzho
Copy link
Contributor Author

annzho commented Jan 14, 2023

Rerecorded the live tests, CI is now passing. @zhoxing-ms, could you help with approving?

@zhoxing-ms
Copy link
Contributor

@annzho Please add the description of PR into the HISTORY.rst. If you want to release a new version for this PR, please also upgrade the version defined in the setup.py.

@annzho
Copy link
Contributor Author

annzho commented Jan 23, 2023

@zhoxing-ms Have added the description of the new version in HISTORY.rst and upgraded version in setup.py. Thanks!

src/authV2/HISTORY.rst Outdated Show resolved Hide resolved
@annzho
Copy link
Contributor Author

annzho commented Feb 9, 2023

@zhoxing-ms, moved the version notes to top of history file, could you approve?

@zhoxing-ms zhoxing-ms merged commit 992948e into Azure:main Feb 10, 2023
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ authV2 ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=33281&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants