title: Django doesn't validate or see the JWT token from Azure
body: <p>I used <a href="https://pypi.org/project/azure-ad-verify-token/" rel="nofollow noreferrer">azure-ad-verify-token 0.2.1</a> on <code>Django-rest</code> backend to validate a <code>jwt token</code> from <code>Microsoft Azure</code>, where the user is authenticated on the frontend with <code>React</code>.</p>
  <p>According to the documentation, this library should do everything on its own.</p>
  <pre><code>from azure_ad_verify_token import verify_jwt
  
  azure_ad_app_id = 'my app id'
  azure_ad_issuer = 'https://exampletenant.b2clogin.com/0867afa-24e7-40e9-9d27-74bb598zzzzc/v2.0/'
  azure_ad_jwks_uri = 'https://exampletenant.b2clogin.com/exampletenant.onmicrosoft.com/B2C_1_app_sign_in/discovery/v2.0/keys'
  payload = verify_jwt(
      token='&lt;AZURE_JWT_TO_VERIFY_HERE&gt;',
      valid_audiences=[azure_ad_app_id],
      issuer=azure_ad_issuer,
      jwks_uri=azure_ad_jwks_uri,
      verify=True,
  )
  
  print(payload)
  </code></pre>
  <p>I don't understand the line <code>token='&lt;AZURE_JWT_TO_VERIFY_HERE&gt;'</code>, how can I put the token there?</p>
  <p>Authorization from Azure on <code>React</code> is successful, and I get a <code>access jwt-token</code> that I can extract:</p>
  <pre><code>token = request.headers['Authorization']
  </code></pre>
  <p>But I need to validate it and somehow insert it into a string <code>token='&lt;AZURE_JWT_TO_VERIFY_HERE&gt;'</code>, but it doesn't recognize the <code>request</code> here.</p>
  <p>How can I put a <code>token=</code> from the <code>header</code>?</p>
  <p>And in general, is this the right way? Or am I missing something? Any help and hints would be very helpful and would be greatly appreciated. Or advise another library for <code>token validation</code> in <code>Python</code>.</p>