-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add auth subgroups #108
Add auth subgroups #108
Conversation
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.
Haven't tested it yet, but I have a few initial thoughts based on reading the code.
Don't forget to follow the linter prompts (like adding help text etc.)
Thanks for making this change; it looks very tedious :(
@@ -38,7 +38,8 @@ | |||
|
|||
# TODO: Add any additional SDK dependencies here | |||
DEPENDENCIES = [ | |||
'azure-cli-core' | |||
'azure-cli-core', | |||
'azure-mgmt-appcontainers==1.0.0' |
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.
nice
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.
any reason we are adding the SDK here? this will install the SDK - the idea was to do this when we move to core-cli & make changes to use SDK
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.
@StrawnSC I see you already merged this - please remove the SDK pkg added to the dependency. I see my above comment got ignored since this was marked resolved originally
could you also add info on this feature to the history.rst entry? |
…ods. Added comments to separate auth params, ignored disable_max_length on secrets. Use stable_api_version for client instead of hardcoding. Remove is_preview from containerapp main command group. Added flag to disable max secret length. Removed pylint disable unused-argument comments. Refactored some code.
with self.command_group('containerapp auth openid-connect', client_factory=auth_config_client_factory) as g: | ||
g.custom_show_command('show', 'get_openid_connect_provider_settings') | ||
g.custom_command('add', 'add_openid_connect_provider_settings', exception_handler=ex_handler_factory()) | ||
g.custom_command('update', 'update_openid_connect_provider_settings', exception_handler=ex_handler_factory()) |
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.
Curious any reason this sub-group alone has add & remove?
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.
All the other providers are unique (one per CA) except for providers, so there is no way of updating them if the provider name changes, since that will be considered a different identity provider. That's my understanding of it anyways, I tried to follow the webapp spec as much as possible.
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.
A few comments to address
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)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 PR is merged into master branch, a new PR will be created to update
src/index.json
automatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json
.