fix(idp): provide id_token for tenant id based azure ad (#7188)

* fix(idp): provide id_token for tenant based azure ad

* comments

* remove unintentional changes
This commit is contained in:
Livio Spring
2024-01-10 16:02:17 +01:00
committed by GitHub
parent 1a1bb564b9
commit 7c592ce638
7 changed files with 96 additions and 18 deletions

View File

@@ -1166,11 +1166,12 @@ func Test_tokensForSucceededIDPIntent(t *testing.T) {
"azure tokens",
args{
&azuread.Session{
Session: &oauth.Session{
OAuthSession: &oauth.Session{
Tokens: &oidc.Tokens[*oidc.IDTokenClaims]{
Token: &oauth2.Token{
AccessToken: "accessToken",
},
IDToken: "idToken",
},
},
},
@@ -1183,7 +1184,7 @@ func Test_tokensForSucceededIDPIntent(t *testing.T) {
KeyID: "id",
Crypted: []byte("accessToken"),
},
idToken: "",
idToken: "idToken",
err: nil,
},
},