Closed qu4n closed 1 year ago
Usually when we see this, there are a few things that cause it we ask people to check.
Normally one of those is causing the forbidden access. The "admin" type user you create with the Keycloak script usually has the proper role. So if you are using that user to log in, it may be one of the others.
Also, the URL to access OpenRMF OSS, the URL for the JWT Authority (plus auth/realms/openrmf
at the end), and the Valid Redirect URI in Keycloak (plus the /*
at the end) have to all be the same. And be a valid IP or DNS and not localhost
or 127.0.0.1
type of entries. Keycloak creates the JWT for you, it is passed back to the web interface, and then that is used in API calls. The APIs validate the JWT token and authority as well for security. So all those URLs/DNS/IPs have to be the same for those 3 things to login successfully as well.
@DaleBinghamSoteriaSoft,
Thank you for the quick reply. After going through it multiple times based on your recommendation, I finally figured out what the problem was. I noticed that in your step-by-step instructions, you mentioned:
We tell folks to click the "+ Add valid redirect URIs" button underneath each so they are set correctly. Then scroll down to click the Save button and you are good here.
I really didn't know what that meant, but what I had done previously was just typed in the URIs. I did not clicked on the "+ Add valid redirect URIs" button underneath each one. I guess just having typed it in doesn't set it until that is done. Now after logging in, I don't get anymore errors and am able to see the add package buttons. This issue is now resolved:
Thanks again for the help!
@qu4n that is excellent news. Thanks for sharing here so others can see as well.
Describe the bug Upon initial loading, the Dashboard shows "error" message for the on the system packages, checklists, and templates buttons. See screenshot with js console errors shown:
Expanding these showed keycloak errors:
When clicking on the "System Packages" button on the Dashboard page, the following errors are displayed:
The "Checklists" button on the Dashboard page is inactive (not clickable).
Clicking on the "Templates" button produced the following js errors:
Currently not able to upload packages.
To Reproduce Steps to reproduce the behavior:
Currently running Docker Desktop 4.19.0 and Ubuntu 22.04 LTS under Windows 11 Pro WSL2 (See config below):
Followed step-by-step instructions. Note that the startup script was executed within Ubuntu terminal.
Expected behavior
The Dashboard should not have any errors and there should be capability to upload packages.
Screenshots
Applicable screenshots provided above.
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
Docker Desktop shows all 27 containers are running.
Since there were keycloak errors, I inspected the logs and grepped the following errors:
Note that I redacted 3 unique IPs.
I am also running the latest scripts from OpenRMF-OSS-v1.9.zip file.