Skip to content

[Identity] Small improvements#31544

Merged
pvaneck merged 3 commits intoAzure:mainfrom
pvaneck:identity-cae-pops
Sep 5, 2023
Merged

[Identity] Small improvements#31544
pvaneck merged 3 commits intoAzure:mainfrom
pvaneck:identity-cae-pops

Conversation

@pvaneck
Copy link
Copy Markdown
Member

@pvaneck pvaneck commented Aug 9, 2023

  • Ensure the enable_cae isn't passed in to msal through kwargs. There was only one spot where this was the case.
  • Ensure kwargs are passed through to _get_jwt_assertion_request so that enable_cae can be properly detected.
  • Pop enable_cae for sync pipeline runner. This mirrors the behavior of the async pipeline runner.

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

- Ensure the `enable_cae` isn't passed in to msal through kwargs
  There was only one spot where this was the case.
- Ensure kwargs are passed through to _get_jwt_assertion_request.
- Pop enable_cae for sync pipeline runner. This mirrors the behavior
  of the async pipeline runner.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck force-pushed the identity-cae-pops branch from 6b09316 to ed892a6 Compare August 29, 2023 23:08
@pvaneck pvaneck marked this pull request as ready for review August 29, 2023 23:27
@pvaneck pvaneck requested review from a team and xiangyan99 as code owners August 29, 2023 23:27

def obtain_token_by_jwt_assertion(self, scopes: Iterable[str], assertion: str, **kwargs: Any) -> AccessToken:
request = self._get_jwt_assertion_request(scopes, assertion)
request = self._get_jwt_assertion_request(scopes, assertion, **kwargs)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck merged commit 1696445 into Azure:main Sep 5, 2023
@pvaneck pvaneck deleted the identity-cae-pops branch September 5, 2023 23:48
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