Skip to content

allow_broker=True for ConfidentialClientApplication returns error #544

@victormatyiku

Description

@victormatyiku

Describe the bug
Trying to pass allow_broker=True for as an argument for ConfidentialClientApplication returns an error that it is not supported. However, the documentation says that it is supported.

Expected behavior
For the package to try to create a broker.

What you see instead
Traceback (most recent call last):
File "c:\Users\matyvic\Documents\CSPC\colectica-rest-api-demo\python\corestica\corestica.py", line 561, in
staging_test = ColecticaRepository(
File "c:\Users\matyvic\Documents\CSPC\colectica-rest-api-demo\python\corestica\corestica.py", line 131, in init
self.authenticate_via_sign_in(username, password)
File "c:\Users\matyvic\Documents\CSPC\colectica-rest-api-demo\python\corestica\corestica.py", line 171, in authenticate_via_sign_in
app = msal.ConfidentialClientApplication(
File "C:\Users\matyvic\AppData\Roaming\Python\Python39\site-packages\msal\application.py", line 555, in init
raise ValueError("allow_broker=True is only supported in PublicClientApplication")
ValueError: allow_broker=True is only supported in PublicClientApplication

The MSAL Python version you are using
1.21.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions