Trouble Getting STIG Manager to Fully Log In #1787
Replies: 5 comments 3 replies
-
|
In Keycloak, please check the SSO session idle timeout (Realm settings -> Sessions) and the Access token lifespan (Realm settings -> Tokens). The behavior you've described is consistent with either of these values being configured to 10 seconds or less. If that doesn't help, then please report the STIGMAN version you're using and browser. The devtools output looks like Firefox, which is tricky to use for debugging shared workers. So might ask to use Chrome. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, Here are our current settings in Keycloak: SSO Session Idle: 30 minutes We are using STIGMAN version 1.15.13 (pulled from Ironbank). We have also tried this with 1.15.12 (both the Ironbank and Docker Hub images). |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for checking the Keycloak settings. This remains consistent with an edge case where the OIDC shared worker successfully exchanges an OIDC authorization code for a token, but the token is immediately seen as expired so the worker emits the 'noToken' message. It would be helpful if the web app code produced a console message with the actual token response, but unfortunately it currently does not. There are a few ways we could proceed, most of them involve setting breakpoints in the dev tools and inspecting the state. However, if you are willing we could try injecting the missing You will need to know the running container's name. You're using Red Hat (see EDIT), so I'll assume you use podman exec <container-name> sed -i '515i console.log(logPrefix, "Tokens response received", tokensResponse)' /home/node/client/js/workers/oidc-worker.jsIf you're using After doing this, please refresh the browser (keep using Firefox for now, it nicely displays worker console messages in the main thread's console) and provide the full console message that begins with "Tokens response received". EDIT: Not sure why I thought you're using Red Hat, you did not say that! Hopefully this is clear nonetheless. |
Beta Was this translation helpful? Give feedback.
-
|
The actual tokens (access and refresh) would be helpful so they can be provided to our unit tests and I could trace how they are being processed. The |
Beta Was this translation helpful? Give feedback.
-
|
Also, this issue is very likely to revolve around time. It would be helpful to know the exact time the tokens response is received. Please recreate the container and let's add a timestamp to the tokens response console message: $ podman exec <container-name> sed -i '515i console.log(logPrefix, "Tokens response received", Date.now(), tokensResponse)' /home/node/client/js/workers/oidc-worker.js |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good Morning,
We are hoping to get some help with our STIG Manager deployment. We are attempting to deploy STIG Manager in a Kubernetes environment with Helm. We have our own Keycloak (FIPS mode) set up with the stigman realm per the documentation. We have given STIG Manager its own certificate and set
NODE_EXTRA_CA_CERTSto a file with our root and subordinate certificate chain.The issue occurs during the log in process. We navigate to the STIG Manager URL in the browser. The browser gets redirected to the Keycloak login for the STIG Manager deployment. We enter the credentials and they show a successful login in the Keycloak events. The web browser then redirects back to STIG Manager, however STIG Manager never opens in the browser. The web page hangs with the green check box and says "Authorizing" and "Fetching user data". We have adjusted a lot of Keycloak settings to try and get a full login but have unfortunately not been successful.
In the developer tools we see the following:
Would anyone have any advice on how to further troubleshoot this issue? Any help would be greatly appreciated. Please let me know if you would need any other information. Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions