Azure / Azure/azure-libraries-for-java

Documentation on wiki: Authenticate using a service principal

オープン
#476 コメント 1 件 リアクション 0 件 担当者 1 名 @jianghaolu が担当を希望しています GitHub で見る
Authentication customer-reported Question
主要言語
Java
スター
97
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

I noticed that the documentation on the wiki may be incorrect. Please tell me if I am wrong.
```java
ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(
"",
"contoso.com",
"",
AzureEnvironment.Azure);
```
The domain name variable, "constoso.com", is really the tenant Id. I tried authenticating several times with the domain name from the Service Principal token. I could never authenticate, and it specified that it was looking for a GUID. Please tell me if I am wrong. As soon as I provided the tenantId, then the code started working correctly. It should be noted that I was trying to authenticate using KeyVaultManager in my deployment pipeline.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。