I ma tiring to configure Azure B2C authentication for android. I am using https://github.com/AzureAD/microsoft-authentication-library-for-android . With the default user flow i am getting exception from the msal lib, because of a missing claim in the token. So i've been advised to configure custom policy - https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-get-started . However i am still not able to get expires_in claim in the JWT token.
https://github.com/AzureAD/microsoft-authentication-library-for-android/issues/1295
My token looks like :
{
"id_token": "eyJ0eX5MmE0LTdlMz...",
"token_type": "Bearer",
"not_before": 1612880617,
"client_info": "eyJ1aWQiOiI3NWU1ZjNjYi01....",
"scope": "",
"refresh_token": "eyJraWQiOiJBanNhY..."
}
where it should look like :
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5HVEZ2ZEstZnl0aEV1Q...",
"token_type": "Bearer",
"expires_in": 3599,
"scope": "https%3A%2F%2Fgraph.microsoft.com%2Fmail.read",
"refresh_token": "AwABAAAAvPM1KaPlrEqdFSBzjqfTGAMxZGUTdM0t4B4...",
"id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhdWQiOiIyZDRkMTFhMi1mODE0LTQ2YTctOD...",
}
so how can i configure B2C authentication to work properly with msal authentication lib ? Or in other words, how can I customize the JWT issuer , to issue needed token ?