Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error when using token for API #3858


User avatar
0
robrechtbelien created

Hi, I'm using the .net core MVC version 4.1 (targeting the .net framework) I can get a token succesfully but when I try to use an API function I get this error:

entication.JwtBearer.JwtBearerMiddleware - Successfully validated the token. entication.JwtBearer.JwtBearerMiddleware - HttpContext.User merged via AutomaticAuthentication from authenticationScheme: Bearer. ERROR 2017-09-12 07:35:23,196 [22 ] entication.JwtBearer.JwtBearerMiddleware - Exception occurred while processing message. System.InvalidOperationException: IDX10803: Unable to obtain configuration from: '{TENANCY_NAME}.domain.com/.well-known/openid-configuration'. ---> System.IO.IOException: IDX10804: Unable to retrieve document from: '{TENANCY_NAME}.domain.com/.well-known/openid-configuration'. ---> System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.

I have no idea why this is happening.
Does anybody have suggestions to solve this issue?


2 Answer(s)
  • User Avatar
    0
    robrechtbelien created

    Solved after upgrading to 4.5.1 No idea why this happened.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for the feedback @RobrechtBelien. I think there was a problem in previous versions about this and we fixed it but I couldn't find the issue number at the moment :).