koltyakov / sp-rest-proxy

🌐 SharePoint API Proxy for local development
MIT License
172 stars 43 forks source link

How to authenticate with smart card on demand #72

Closed spevilgenius closed 5 years ago

spevilgenius commented 5 years ago

I am in an environment where I use a smart card to authenticate. I selected on demand but get a bad request on any query when it goes to execute. Is there another setting to adjust to support that scenario??

koltyakov commented 5 years ago

Hi @spevilgenius,

Do you have Electron installed globally? It is required for On-Demand flow.

sp-rest-proxy uses node-sp-auth library for authentication. So it's better creating auth-related issues/questions in node-sp-auth's repo.

spevilgenius commented 5 years ago

Yes, electron is installed globally. I will see about posting to that repo instead. Thanks!!

koltyakov commented 5 years ago

Btw, this project can simplify things for generic auth troubleshooting.

koltyakov commented 5 years ago

The version of Electron can also make sense as Electron changed CLI arguments format after 2nd version. We've aligned the format with the latest Electron. I'd recommend targeting On-Demand to a predictable environment, e.g. OOTB SPO and check if it works.

koltyakov commented 5 years ago

Let me close this one as related to auth library.