Skip to content
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

How to login as a Service Principal with certificate #37

Closed
prashanthyv opened this issue Jul 2, 2018 · 5 comments · Fixed by Azure/ms-rest-nodeauth#53
Closed

How to login as a Service Principal with certificate #37

prashanthyv opened this issue Jul 2, 2018 · 5 comments · Fixed by Azure/ms-rest-nodeauth#53

Comments

@prashanthyv
Copy link

Going over this library I cannot find a way to login without using a Service Principal Secret.
https://www.npmjs.com/package/ms-rest-azure

Is there a way to login with a certificate instead?

@amarzavery
Copy link
Contributor

You pointed a link to ms-rest-azure package (notice the missing -js). That is the runtime for the node sdk which has the service principal login method over here.

Sorry for the confusion. We are in the process of making major changes to our Javascript SDKs. We are moving in the direction of making our SDKs isomorphic.

Some context:
This repo https://github.com/Azure/ms-rest-azure-js is the runtime for the new isomorphic (same source code to be run in browser and node.js environment) JS sdk and it does not have the authentication pieces in it. node.js specific authentication has been moved to ms-rest-nodeauth. All of this (the isomorphic stuff) is still in preview.

For stable stuff, you can take a look at the azure-sdk-for-node repo, right now.

@prashanthyv
Copy link
Author

Thank you. I'm not sure I understand how I can login using a certificate instead?
I'm looking at this - https://github.com/Azure/ms-rest-nodeauth#service-principal-authentication-from-auth-file-on-disk

Is that still right though?

@amarzavery
Copy link
Contributor

We don't have support for sp login with cert. We only provide support for sp login with secrets/password.

@prashanthyv
Copy link
Author

So for Azure Key Vault, the best practise is to use a certificate while authentication to AAD and not a secret.
Is this feature currently in works?

@amarzavery
Copy link
Contributor

I see. We haven't implemented this feature yet. It is low on our priority. If it is extremely important, then we can see how we can rejig the priority in our current/next sprint. Please shoot an email internally.

@amarzavery amarzavery changed the title How to login without a Service Principal Secret How to login as a Service Principal with certificate Jul 2, 2018
@ghost ghost added this to the Sprint-127 milestone Nov 5, 2018
@ghost ghost removed this from the Sprint-127 milestone Dec 4, 2018
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 a pull request may close this issue.

2 participants