Skip to content

[Feature Request] Align the broker public API to MSAL .NET #731

@bgavrilMS

Description

@bgavrilMS

MSAL client type

Public

Problem Statement

https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/desktop-mobile/wam

Current API

MsalRuntimeBroker broker = new MsalRuntimeBroker();

PublicClientApplication pca = PublicClientApplication.builder(clientId).
    authority(authority).
    broker(broker).
    build();

Proposed API

// at least 1 OS must be enabled, otherwise throw ex
// if Mac or Linux are enabled, throw NotImplementedException
Broker broker = Broker.builder().   
                                .windowsSupport(true)
                                .macOSSupport(true)
                                .linuxSupport(true)
                                .build();

PublicClientApplication pca = PublicClientApplication.builder(clientId).
    authority(authority).
    broker(broker).
    build();

Thoughts on the above @localden and @Avery-Dunn ?

Metadata

Metadata

Assignees

Labels

BrokerFor issues related to the msal4j-brokers packagepublic-clientFor questions/issues related to public client apps

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions