- The expected issuer is found by removing the string "/.well-known/openid-configuration" from the value set as the "issuer" in the webapps_authn.json file.
- The actual issuer can be found by entering the URL you are using as the issuer in the webapps_authn.json file into a browser -- which should send you to a JSON discovery document with information about the identity provider -- and checking the value listed as "issuer" there.
Why do I receive errors like "Unauthorized" or "The login state is invalid" after upgrading MATLAB Web App Server to R2024b?
I have been using MATLAB Web App Server with OIDC authentication enabled. I recently updated from an earlier release to R2024b. However, I am now hitting errors when I attempt to log in, even though I'm using the exact same webapps_authn.json file that worked in a prior release.
After logging in, I'm redirected to a page with an error message like "Unauthorized" or "The login state is invalid."
The webapps_<timestamp> log shows errors like:
00008333 2025-02-27 17:17:56 0x000053e0 agent::processcontrol::out V processID=015efa51-14a9-43f6-bf63-3bcbbea35052, out={"level":"WARN","time":"2025-02-27T17:17:56.140-0500","caller":"authnzoidc/authnzoidc.go:364","message":"Error: oidcResponse verification of the id_token failed"}
00001010 2025-03-17 12:09:09 0x000022e0 agent::processcontrol::out V processID=68c4894c-c73b-414b-a0b4-38904ffaf297, out={"level":"WARN","time":"2025-03-17T12:09:09.877-0400","caller":"authnzoidc/authnzoidc.go:269","message":"Code login failure, msg state is invalid","msgState":"<nil>"}
Why am I now getting these errors?
采纳的回答
0 个评论
更多回答(0 个)
另请参阅
类别
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!