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 15:02:17 +00:00
committed by GitHub
parent 1a1bb564b9
commit 7c592ce638
7 changed files with 96 additions and 18 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ func tokensForSucceededIDPIntent(session idp.Session, encryptionAlg crypto.Encry
case *jwt.Session:
tokens = s.Tokens
case *azuread.Session:
tokens = s.Tokens
tokens = s.Tokens()
case *apple.Session:
tokens = s.Tokens
default:
+3 -2
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,
},
},