Get access_token in TWebAuth for Microsoft Login

Hi,

Over the past few days, I've been experimenting with the TWebAuth component. I've registered an app in EntraID and can log in correctly using:

In the MicrosoftLogin event of TWebAuth, I also receive the corresponding UserData. The id_token (IdTokenJwT) is present, but unfortunately, the access_token is missing. I've seen in the source code that this is indeed included and used to retrieve the data for "me". Could the TMicrosoftUserData event please be extended to include the access_token so that it can be accessed in the event?

Kind regards
Harald

Hi,

Exposing the access token at TMicrosoftUserData level is possible and we did that extension just now. The next version will contain the necessary changes for this.

1 Like