You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Save the ID token during an upstream authorization
This commit is contained in:
@ -267,7 +267,7 @@ pub(crate) async fn get(
|
||||
.http_service("upstream-exchange-code")
|
||||
.await?;
|
||||
|
||||
let (_response, id_token) =
|
||||
let (response, id_token) =
|
||||
mas_oidc_client::requests::authorization_code::access_token_with_authorization_code(
|
||||
&http_service,
|
||||
client_credentials,
|
||||
@ -296,7 +296,7 @@ pub(crate) async fn get(
|
||||
add_link(&mut txn, &mut rng, &clock, &provider, subject).await?
|
||||
};
|
||||
|
||||
let _session = complete_session(&mut txn, &clock, session, &link).await?;
|
||||
let _session = complete_session(&mut txn, &clock, session, &link, response.id_token).await?;
|
||||
|
||||
txn.commit().await?;
|
||||
|
||||
|
Reference in New Issue
Block a user