Skip to content

Clarify that allow_broker is not applicable to ConfidentialClientApplication #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2023

Conversation

rayluo
Copy link
Collaborator

@rayluo rayluo commented May 2, 2023

Although MSAL provides two top-level classes: PublicClientApplication and ConfidentialClientApplication, there is another less-popular but still-doable pattern which is to use the base class ClientApplication directly. So, that allow_broker is applicable to both PublicClientApplication and the base class ClientApplication. So, that dynamic check in base class is necessary.

The ConfidentialClientApplication inherits the __init__() and its documentation from base class. Now, we choose to add a sentence in that documentation to clarify that the parameter is not applicable to ConfidentialClientApplication.

See it in action in the staged documentation.

This resolves #544.

…ication

It is applicable to PublicClientApplication and base class ClientApplication
@rayluo rayluo merged commit e8ff807 into dev May 7, 2023
@rayluo rayluo deleted the docs-staging branch May 7, 2023 04:13
@@ -444,6 +444,8 @@ def __init__(
New in version 1.19.0.

:param boolean allow_broker:
This parameter is NOT applicable to :class:`ConfidentialClientApplication`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a positive statement?

This parameter is ONLY applicable to PublicClientApplication.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the emphasis of this PR and its corresponding issue were to call out the only invalid situation among the three. So, taking your suggestion into account, we can change it to:

This parameter is applicable to PublicClientApplication and its base class ClientApplication, but NOT applicable to ConfidentialClientApplication.

How about that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow_broker=True for ConfidentialClientApplication returns error
2 participants