Azure / Azure/azure-libraries-for-java
Not able to login with ApplicationTokenCredentials.
- Vorherrschende Sprache
- Java
- Sterne
- 97
- Forks
- 102
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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);
Beitragsleitfaden
Rechercherichtung
Beginnen Sie damit, die dokumentierten ApplicationTokenCredentials-Konstruktoren mit der im Issue gezeigten Java-Implementierung zu vergleichen, und reproduzieren Sie anschließend den Anmeldeversuch unter Verwendung der Eingaben client, tenant, certificate oder key, password, environment und subscription. Als erledigt gilt die Aufgabe, wenn der dokumentierte Authentifizierungsablauf funktioniert oder Dokumentation und Implementierung hinsichtlich der unterstützten Konstruktor-Eingaben übereinstimmen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, java
- Bereich
- authentication, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100