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

Adjustment for multi-auth with OAuth. #982

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

depfeife-msft
Copy link
Contributor

No description provided.

@depfeife-msft depfeife-msft marked this pull request as ready for review July 28, 2021 01:45
@depfeife-msft depfeife-msft requested a review from a team as a code owner July 28, 2021 01:45
@@ -91,6 +94,17 @@ def upsert(powerapps_rp, settings, client_secret, is_update, overwrite_settings)
elif oauth_settings and not client_secret and not is_update:
raise CLIError('Please provide OAuth2 client secret using the --secret argument.')

# Add secret in connection parameter set
multi_auth = properties.get(_CONNECTION_PARAMETER_SET, {}).get(_VALUES, [])
for auth in multi_auth:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will work if single secret is used for all oauth settings in a multi auth case. In future we need to allow separate secrets.

@depfeife-msft depfeife-msft merged commit 536c9d2 into dev Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants