Relative Content

Tag Archive for asp.netjwtswaggerauthorizationhttp-status-code-401

Bearer error=”invalid_token”,error_description=”The signature key was not found”

I am new to asp.net identity and jwt token authentification and having trouble authorizing API endpoints, or more exactly making calls to enpoints that require authorization. I created an Asp.net Core API with a custom database to which i added Identity on the user table. Everything worked fine untill i added the JWT Authentication. Then all the enpoints that require authorization fail : 401 UNAUTHORIZED Bearer error=”invalid_token”,error_description=”The signature key was not found”.
This is what i have in Program.Cs :