KSS
KSS

Reputation: 1

IDX20803 ERROR : JWT Bearer Token Unable to obtain configuration from 'System.String'

I used Identity Server 4 for token generation without https protocol , IS4 is working fine giving me the token back , when I try to call authorized method of the another API in Postman by passing the bearer token it shows me this error , but the unauthorized methods are working fine.

I searched for this error but everyone it talking in the context of docker , K8s , OKTA , OWIN , PII is hidden etc. but no has issue related with JWT , please respond if know any correct way how to fix this.


My Identity Server is on

http://localhost:55817

which is working fine. This link is also working fine

http://localhost:55817/connect/token

and this is also working

http://localhost:55817/.well-known/openid-configuration


This is Configure Services authentication method where I have used Identity Server localhost : Note : Please open the link of the image to see the error and settings because I am not able to indent all the code with 4 spaces Stack Over Flow: Requirement

Configure Services Method

Exception

Upvotes: 0

Views: 731

Answers (2)

mikolaj semeniuk
mikolaj semeniuk

Reputation: 2458

I had exactly the same problem for me worked:

In root folder of Identity Server listening on http://localhost:55817 run:

sudo dotnet dev-certs https --clean
sudo dotnet dev-certs https --trust

Upvotes: 0

slim
slim

Reputation: 2583

In your first image, you're calling your non-ssl endpoint using https.

Upvotes: 0

Related Questions