mirror of
https://github.com/azure/login.git
synced 2026-06-08 03:17:12 +00:00
token logs changes
This commit is contained in:
parent
b44ee3d3fe
commit
917f73dad2
2 changed files with 2 additions and 2 deletions
|
|
@ -141,7 +141,7 @@ function main() {
|
|||
if (environment != "azurecloud")
|
||||
throw new Error(`Your current environment - "${environment}" is not supported for OIDC login.`);
|
||||
let [issuer, subjectClaim] = yield jwtParser(federatedToken);
|
||||
console.log("Federated token details: \n issuer- " + issuer + " \n subject claim - " + subjectClaim);
|
||||
console.log("Federated token details: \n issuer - " + issuer + " \n subject claim - " + subjectClaim);
|
||||
}
|
||||
else {
|
||||
throw new Error("Could not get ID token for authentication.");
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ async function main() {
|
|||
if (environment != "azurecloud")
|
||||
throw new Error(`Your current environment - "${environment}" is not supported for OIDC login.`);
|
||||
let [issuer, subjectClaim] = await jwtParser(federatedToken);
|
||||
console.log("Federated token details: \n issuer- " + issuer + " \n subject claim - " + subjectClaim);
|
||||
console.log("Federated token details: \n issuer - " + issuer + " \n subject claim - " + subjectClaim);
|
||||
}
|
||||
else {
|
||||
throw new Error("Could not get ID token for authentication.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue