pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
896 stars 318 forks source link

Enhancement: m365 login --authType certificate #5482

Open kanandb opened 11 months ago

kanandb commented 11 months ago

Usage

m365 login --authType certificate --certificate System

Description

Can you add a feature to use windows server system certificates for authentication. For example, In a windows server use the certificates stored in "Local Computer" as an another approach to certificatefile and base64 encoded option what we have currently.

Options

Option | Description --authtype certificate --certificate "pick the saved one from Local computer(only for windows)"

Examples

m365 login --authType certificate --certificate "My Local computer certificate" --thumbprint 47C4885736C624E90491F3xxxxxxxxxxxxx8A7562AF1

m365 login --authType certificate --certificate "My Local computer certificate"--password 'pass@word1'

Default properties

Additional Info

No response

martinlingstuyl commented 11 months ago

Hi @kanandb, thanks for raising this! I like the idea, even if I don't know for sure how easy it is to accomplish it, as were running in a node.js app.

It would be super nice though!

Time for some research I guess.