How to pass Google OAuth 2 token to Azure API Authentication?
<p>I followed the steps here to hook up Google OAuth to Azure Authentication.  Unfortunately, those instructions stop very short of a full solution and don't mention what to do with the Google OAuth <code>access_token</code> once you have it.  I tried putting it into the Authorization header as a Bearer token (<code>Bearer &lt;access_token&gt;</code>), but that doesn't appear to work as my application sitting behind the Authorization service just sees the original Authorization header, not the expected <code>X-MS-CLIENT-PRINCIPAL-NAME</code>, <code>X-MS-CLIENT-PRINCIPAL-ID</code>, <code>X-MS-TOKEN-GOOGLE-ACCESS-TOKEN</code>, etc.</p>

<p>Also, when I navigate to <code>/.auth/me</code> with an Authorization Bearer token I get a 401 response.</p>

<p>Sadly, all of the documentation is either specific to AD (which doesn't seem to apply to my scenario) or it is specific to server-side rendered applications, not SPAs that are hosted separate from the API they are calling.</p>

<p>An ideal answer would tell me what I need to do with the Google OAuth 2 <code>access_token</code> to get Azure authorization service to authenticate the token and add the expected headers.</p>

<p>Edit: The <code>access_token</code> is not a JWT token, which may be part of the problem.  If this is in fact the problem and I just need to get a JWT token then how do I do that?  I'm currently using the Google Client API JavaScript (beta).  I attempted to get a JWT token via the Google OAuth 2 dashboard but putting that as a Bearer token also didn't work, despite using my application's client secret to generate the requests.</p>