- Does the MATLAB Web App Server have access to the attribute used for role assignment? (See What attributes can I use for role-/policy-based access with MATLAB Web App Server?)
- Does the attribute match the exact same name and value (including capitalization) as in your identity provider? For example: "mail" vs. "email", or "jdoe" vs. "JDoe".
- If you are assigning roles based on group membership, check if your identity provider limits the number of groups included in JWT tokens.
- For further troubleshooting, test to confirm the attributes being passed to the MATLAB Web App Server with your current configuration:
Why do I receive the error "You have logged out. To access MATLAB web apps, log back in." on MATLAB Web App Server?
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 11 Apr 2022
Edited: MathWorks Support Team
on 25 Nov 2025 at 16:38
I configured my web app server to authenticate with OIDC (Azure AD). I’m able to login but I directly get taken to this page asking me to login again and the same loop keeps happening. The message is "You have logged out. To access MATLAB web apps, log back in."

Accepted Answer
MathWorks Support Team
on 25 Nov 2025 at 0:00
Edited: MathWorks Support Team
on 25 Nov 2025 at 16:38
This behavior indicates that you do not have access to the server based on the rules configured from Role-based Access. You must be assigned either the User or Author role based on the rules dictated in the webapps_app_roles.json file to be able to access the server.
If you believe you should have access based on these rules but still encounter this error, consider the following:
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Web App Server in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!