I am trying to implement OAuth 2.0 Authorization Code Flow in a multi-tenant application.
I first requested authorization for "openid profile email" scope at login.microsoftonline.com/organizations/oauth2/v2.0/authorize
and then used the code I obtained along with
grant_type=authorization_code, client_id, client_secret, redirect_uri for an access token at login.microsoftonline.com/organizations/oauth2/v2.0/token
The response I got contained only id_token, and token_type=Bearer. Why wasn't I given the access_token and expired_at fields?
I tried to provide the scope again at the token call but the response came back the same. The spec says it should contain the access token. I also tried /common endpoints but things are the same.