Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ def is_skill_claim(claims: Dict[str, object]) -> bool:
:param claims: A dict of claims.
:return bool:
"""
if AuthenticationConstants.VERSION_CLAIM not in claims:
return False

if (
claims.get(AuthenticationConstants.APP_ID_CLAIM, None)
== AuthenticationConstants.ANONYMOUS_SKILL_APP_ID
):
return True

if AuthenticationConstants.VERSION_CLAIM not in claims:
return False

audience = claims.get(AuthenticationConstants.AUDIENCE_CLAIM)

# The audience is https://api.botframework.com and not an appId.
Expand Down
2 changes: 1 addition & 1 deletion libraries/botframework-connector/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class TestAuth:

@pytest.mark.asyncio
async def test_claims_validation(self):
claims: List[Dict] = []
claims: List[Dict] = {}
default_auth_config = AuthenticationConfiguration()

# No validator should pass.
Expand Down