Android app + Angular app + .NET CORE api

Hello everyone. I’m writing here to ask community how to connect my system. Now I got Angular Web App + .NET Core API. All of that works great. Now I wanted to connect my android app to call methods from my .NET Core api. All the time i got 401 error. What I Have done:

  1. Created machine to machine app for .NET Core
  2. Created SPA app for Angular
  3. Created Native app for Android

What i have got from credentials is access token which i dont know what to use for and Id token. Anyway that token has less infromations than token from my Angular app. Example of android token below:

Blockquote

eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik1EVkVSakUwTlVFNFFVRkJSRVJDTXprMk1rRTRRa1pHUkVNNE16VXpNRU5DUWpFMU1qQkZNdyJ9.eyJpc3MiOiJodHRwczovL3llYWhkem9ua28uZXUuYXV0aDAuY29tLyIsInN1YiI6ImF1dGgwfDVkYzk4ZWE4YTlkODJlMGU3OGViMjg3NCIsImF1ZCI6IjAzWE1iSmphT0NpRU56QWZrWk9TVWUySFB6Tk1VQTJFIiwiaWF0IjoxNTc2MDEzNTE5LCJleHAiOjE1NzYwNDk1MTl9.R8Fj3LlzvqN6v6Slf7mi47H3ni8Pun7e2jHkjG0oC0UDfVZJ6oZ_96LeAt2IagIJYsLqiqYLx5pnQSEIQ6T0548Fx_VxEPPCf1Xv4nZDfeQbZ-7tXQULYQqbhXJQRIHmjorvrUVWeSrc-E8mCoNtyR8t41100pjRFRZihFaet9qYv4HS6gFPiwmJq_tZT0J9WjHHIs3rrFuI4aJSzRnTcWJ27GL5Knz8J8Tkw0pMVOccc8i9x8-m4wFpAQFhNNh74aLIDxdKsno1xj2a7lijwbr_r2xzlEZODMR6gdVe17ql5QSVreCw7TO10yoNeb-W3Nq_dkvroPHlbKeeAzmiUg

Blockquote

I am adding header before http request. But still got 401. Could somebody help me?

During debugging i noticed that error says: Bearer error=“invalid_token”, error_description=“The audience ‘03XMbJjaOCiENzAfkZOSUe2HPzNMUA2E’ is invalid”