Skip to content

SharedTokenCacheCredential.get_token() should raise ValueError  #11553

@chlowell

Description

@chlowell

Today it raises ClientAuthenticationError because the method is decorated with wrap_exceptions. The purpose of that decorator is to prevent leaking exceptions from msal. This can be achieved in a more focused manner, allowing the method to raise the more appropriate ValueError when called with no scopes.

Metadata

Metadata

Assignees

Labels

Azure.IdentityClientThis issue points to a problem in the data-plane of the library.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions