Unble to access strapi rest api using Azure Active Directory Token

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hi.,
I am using Azure Active Directory Provider (Microsoft) and I followed instructions given in the below url to setup Microsoft Provider.

If I clicked sign in button from front web site, it took me to admin portal and then admin portal took me to active directory sign in page. I signed in successully, It redirected me to admin portal and admin portal redirected me to front web site with access token.

Then I got that acess token from query string, passed that token to strapi rest api for example I have collection type called categories (Authenitcated )

/api/categories and passed authroization header with the token which I got from azure active directory.

But I still get 401 error.

Please help me to fix it