0

I am using Azure functions as backend. I want to authenticate every request that whether it is having JWT token or not.

I tried to implementing it by using AddAuthentication(). but It doesn't seem to work in azure functions.

I tried this link this as well Validate AWS cognito in .net core api

After implementing the above link I got an error

no authentication handler is registered for the scheme 'bearer' in azure functions

Please help me.

Thanks in advance!!

Tejinder Singh
  • 1,070
  • 2
  • 8
  • 24

1 Answers1

0

Use the ValidateToken method of the JwtSecurityTokenHandler .

Docs here: https://msdn.microsoft.com/en-us/library/dn451155(v=vs.114).aspx.

DixitArora-MSFT
  • 1,768
  • 1
  • 5
  • 8