Oauth2 redirection Issue #436
Replies: 2 comments 3 replies
-
Hello, please check you backend logs, as those logs only show the calls done by the frontend. If locally 500 is happening, there has to be something in the logs in the service which throws them. |
Beta Was this translation helpful? Give feedback.
-
Auth is fine in Keycloak, but the Dataspace Portal backend cannot find a corresponding user record in its Postgres DB.
→ If no rows: provisioning failed. Verify configs Ensure .env values match Keycloak setup: AUTH_REALM=authority-portal Quick unblock (manual insert) sql |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description - What happened? *
Hello,
I am following up production guideline. I have configured all in local. i am using env variables for oauth2 as per guideline. when I am trying to hit frontend url it is redirect to oauth2 and after successfull login its thrown 500 ERROR like
192.168.0.154:40296 - 921b846a-6225-44bf-a1dd-8a6900a777d3 - xxxxx [2025/03/03 17:07:58] xxxx GET / "/api/user-info" HTTP/1.1 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" 500 74 0.008
everything configured as define in guideline. Using all official images of sovity. no custom images.
Expected Behavior *
expect success ful login in dataspace portal but stuck in /api/userinfo with 500.
Observed Behavior *
when we authenticated successful we are getting error as above mentioned.
192.168.0.154:40296 - e707cc29-2bbf-4952-9ee3-ecd78aad2324 - xxxx [2025/03/03 17:07:57] [AuthSuccess] Authenticated via OAuth2: Session{email:xxxxx user:017870c3-fe55-4d03-8cf0-aafc1bfaf300 PreferredUsername:xxxxx token:true id_token:true created:2025-03-03 17:07:57.665698935 +0000 UTC m=+2112.211396179 expires:2025-03-03 17:08:57.663814785 +0000 UTC m=+2172.209512030 refresh_token:true groups:[role:offline_access role:default-roles-authority-portal role:uma_authorization role:account:manage-account role:account:manage-account-links role:account:view-profile]}
192.168.0.154:40296 - e707cc29-2bbf-4952-9ee3-ecd78aad2324 - - [2025/03/03 17:07:57] xxxxxx GET - "/oauth2/callback?state=D4O6wXFsiWfBzMWqbMcrpq32wPxMFF0tZ3ZfXFAarBQ%3Ahttps%3A%2F%2Fxxxxx&session_state=3e04dc35-f698-4fcc-83c2-92edfea2074c&iss=https%3A%2F%2Fx%2Frealms%2Fauxxxxthority-portal&code=e7aef32f-7d77-4b1e-9680-120184ee9a58.3e04dc35-f698-4fcc-83c2-92edfea2074c.e9254817-e123-4659-a8bf-b5c59e1c71a5" HTTP/1.1 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" 302 44 0.022
Steps to Reproduce
No response
Context Information
No response
Relevant log output
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions