pnp/cli-microsoft365

Update `spfx project azuredevops pipeline add` and `spfx project github workflow add` commands to add support for federated Identity

Open

#6.761 geöffnet am 14. Juni 2025

Auf GitHub ansehen
 (12 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)TypeScript (399 Forks)auto 404
enhancementhelp wanted

Repository-Metriken

Stars
 (1.390 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Currently the m365 spfx project azuredevops pipeline add and m365 spfx project github workflow add commands will scaffold a yaml pipeline/workflow that defaults (or rather suggests) using certificate authentication method. When the loginMethod option is set to application, which is the default value, the scaffolded yaml will have variable placeholders for specifying the certificate (either file or base 64 encoded string) and other properties like password etc. What we could do is introduce a new possibility for the loginMethod option that use federated Identity login in the scaffolded flows and then for v11 we should consider this to make default option.

Currently, the -l, --loginMethod [loginMethod] option allows to be set as either user or application (default). The naming here is not that best but what if we introduce a third option federatedIdentity and in future for v11 we rename the applciation to certificate to more align with options from the m365 login command?

Contributor Guide