Azure / Azure/azure-libraries-for-java

Not able to login with ApplicationTokenCredentials.

オープン
#686 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Authentication customer-reported needs-more-info
主要言語
Java
スター
97
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

**As per document:**

Using ApplicationTokenCredentials
Similarly to the file-based approach, this method requires a service principal registration, but instead of storing the credentials in a local file, the required inputs can be supplied directly via an instance of the ApplicationTokenCredentials class:

ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(
client, tenant, key, AzureEnvironment.AZURE);
Azure azure = Azure.authenticate(credentials).withSubscription(subscriptionId);
or

ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(
client, tenant, pfxCertificatePath, password, AzureEnvironment.AZURE);
Azure azure = Azure.authenticate(credentials).withSubscription(subscriptionId);
where client, tenant, subscriptionId, and key or pfxCertificatePath and password are strings with the required pieces of information about your service principal and subscription. The last parameter, AzureEnvironment.AZURE represents the Azure worldwide public cloud. You can use a different value out of the currently supported alternatives in the AzureEnvironment enum.

##############################################
But as mentioned above implementation of ApplicationTokenCredentials in java is:
ApplicationTokenCredentials(string clientID, sring tenantID, byte [] certificate, String certificatePassword, environment);

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

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

調査の方向性

まず、文書化されている ApplicationTokenCredentials コンストラクターと、issue に示されている Java 実装を比較し、次に client、tenant、certificate または key、password、environment、subscription の入力を使用してログイン試行を再現します。完了の条件は、文書化された認証フローが機能すること、またはサポートされているコンストラクター入力についてドキュメントと実装が一致していることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, java
領域
authentication, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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