Skip to content

Commit b1930c9

Browse files
Consolidating OAuthFlow begin_flow calls into single getTokenOrSignInResource API call (#146)
* Adding call to getTokenOrSignInResource * Updated mocking of UserTokenClient * Commit * Removed continuation_activity assertions for OAuthFlow * Making new operation protected * Adding copyright comments * Addressing PR review --------- Co-authored-by: MattB <[email protected]>
1 parent b73f19b commit b1930c9

File tree

89 files changed

+482
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+482
-119
lines changed

libraries/microsoft-agents-activity/microsoft_agents/activity/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from .token_exchange_invoke_request import TokenExchangeInvokeRequest
6363
from .token_exchange_invoke_response import TokenExchangeInvokeResponse
6464
from .token_exchange_state import TokenExchangeState
65+
from .token_or_sign_in_resource_response import TokenOrSignInResourceResponse
6566
from .token_request import TokenRequest
6667
from .token_response import TokenResponse
6768
from .token_status import TokenStatus
@@ -185,4 +186,5 @@
185186
"load_configuration_from_env",
186187
"ChannelAdapterProtocol",
187188
"TurnContextProtocol",
189+
"TokenOrSignInResourceResponse",
188190
]

libraries/microsoft-agents-activity/microsoft_agents/activity/_load_configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from typing import Any
25

36

libraries/microsoft-agents-activity/microsoft_agents/activity/_model_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from abc import ABC
25
from typing import Any, Callable
36

libraries/microsoft-agents-activity/microsoft_agents/activity/_type_aliases.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from typing import Annotated
25
from pydantic import StringConstraints
36

libraries/microsoft-agents-activity/microsoft_agents/activity/action_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from enum import Enum
25

36

libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from copy import copy
25
from datetime import datetime, timezone
36
from typing import Optional

libraries/microsoft-agents-activity/microsoft_agents/activity/activity_event_names.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from enum import Enum
25

36

libraries/microsoft-agents-activity/microsoft_agents/activity/activity_importance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from enum import Enum
25

36

libraries/microsoft-agents-activity/microsoft_agents/activity/activity_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from enum import Enum
25

36

libraries/microsoft-agents-activity/microsoft_agents/activity/adaptive_card_invoke_action.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from .agents_model import AgentsModel
25
from ._type_aliases import NonEmptyString
36

0 commit comments

Comments
 (0)