I'm trying to use the AD services to authenticate from a react app and send the token to my .Net Core to use the [Authorize] attribute, but as I could figure, the token I get here is just for authenticating into the Graph API.
Is there any way to get a token to use as "auth" header to call my API ?
JS:
this.userAgentApplication = new UserAgentApplication(config.appId, null, null);
var access_token = this.userAgentApplication.acquireTokenSilent(config.scopes);
Then i get the access_token and send to my backend as an "Authorization" header with the value "Bearer ${access_token}"