Skip to main content

Testing & Troubleshooting

Test the login flow

  1. Visit https://portal.uaagi-uno.com.
  2. You should be auto-redirected to the Keycloak login page.
  3. Enter credentials and sign in.
  4. You should land on the Dealership Portal with dealership tiles grouped by region:

Dealership Portal after successful login

  1. Click a dealership tile ("Access System").
  2. You should be auto-authenticated on the dealership's Odoo instance (no second login).

Test the logout flow

  1. From a dealership instance, click user menu > Log out.
  2. You should be redirected to the Keycloak logout endpoint.
  3. After logout, you should land on the portal login page (/web/login?direct=1).
  4. Visiting any instance should now require re-authentication.

Common errors

SymptomLikely causeFix
invalid_request on loginAccess token sent as query param instead of Bearer headerVerify uaagi_dealership_portal module is installed — it overrides _auth_oauth_rpc to use Bearer headers
invalid_grant on code exchangePKCE mismatch or missingCheck client's Advanced > PKCE is set to S256
Realm does not existTypo in OAuth endpoint URLsEnsure all URLs use .../realms/uaagi-dealerships/...
Invalid redirect URICallback URL not registered in clientAdd https://<domain>/auth_oauth/signin to the client's Valid redirect URIs
Post-logout redirect blockedPortal URL missing from dealership clientAdd https://portal.uaagi-uno.com/* to Valid post logout redirect URIs
User sees no dealership tilesEmpty allowed_dealerships attributeCheck the user's Attributes tab in Keycloak — values must match keycloak_client_id in Odoo
User created as portal user in OdooModule not overriding user creationVerify uaagi_dealership_portal is installed and _generate_signup_values adds base.group_user
AccessDenied on first OAuth loginauth_signup.invitation_scope is not b2cExpected — the module bypasses this via _auth_oauth_signin override. If error persists, check module is loaded

Useful Keycloak admin pages

PagePathUse
SessionsManage > SessionsView active SSO sessions, force-logout users
EventsManage > EventsAudit login/logout events, debug auth failures
Client scopesManage > Client scopesVerify profile, email, roles are in default scopes

OpenID endpoint reference

All endpoints for the uaagi-dealerships realm:

EndpointURL
Authorizationhttps://sso.uaagi-uno.com/realms/uaagi-dealerships/protocol/openid-connect/auth
Tokenhttps://sso.uaagi-uno.com/realms/uaagi-dealerships/protocol/openid-connect/token
UserInfohttps://sso.uaagi-uno.com/realms/uaagi-dealerships/protocol/openid-connect/userinfo
Logouthttps://sso.uaagi-uno.com/realms/uaagi-dealerships/protocol/openid-connect/logout
JWKShttps://sso.uaagi-uno.com/realms/uaagi-dealerships/protocol/openid-connect/certs
Well-Knownhttps://sso.uaagi-uno.com/realms/uaagi-dealerships/.well-known/openid-configuration