-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Latest ARB and build fixes. (#31542)
* Code refactored as per main * Fixed issues * Fixed testcases * Reverted play_media_to_all changes * Updated readme as per latest changes * [Core] Add CAE flag to auth policies (#31012) This first adds a keyword argument to the TokenCredential protocol method `get_token`. This enables users and client SDKs to pass in a flag to denote that `get_token` requests should be requesting CAE tokens. If the underlying credential's `get_token` implementation supports this flag, then a CAE token will be requested. Otherwise, a non-CAE token will be requested. Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com> (cherry picked from commit a7519f9) * fix tests (#31526) * fix tests * update (cherry picked from commit d1d0ef6) * Packaging update of azure-mgmt-azureadb2c --------- Co-authored-by: Paul Van Eck <paulvaneck@microsoft.com> Co-authored-by: Xiang Yan <xiangsjtu@gmail.com> Co-authored-by: Azure SDK Bot <adxpysdk@microsoft.com>
- Loading branch information
1 parent
9506187
commit d5e3c1e
Showing
55 changed files
with
1,563 additions
and
888 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
include _meta.json | ||
recursive-include tests *.py *.yaml | ||
recursive-include tests *.py *.json | ||
recursive-include samples *.py *.md | ||
include *.md | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.py | ||
include LICENSE | ||
include azure/mgmt/azureadb2c/py.typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
sdk/azureadb2c/azure-mgmt-azureadb2c/azure/mgmt/azureadb2c/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# ------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# -------------------------------------------------------------------------- | ||
from .v2019_01_01_preview.models import * | ||
from .v2020_05_01_preview.models import * | ||
from azure.core.credentials import AccessToken | ||
|
||
|
||
class FakeTokenCredential(object): | ||
def __init__(self): | ||
self.token = AccessToken("Fake Token", 0) | ||
|
||
def get_token(self, *args, **kwargs): | ||
return self.token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.