logging in with oidc in production #115

Closed
opened 2026-06-05 13:01:45 +00:00 by KattisLej · 1 comment
KattisLej commented 2026-06-05 13:01:45 +00:00 (Migrated from github.com)

Describe the bug

Logging in with the oidc login in production mode gives "Try signing in with a different account"

Steps to reproduce

Start application in production mode and try the log in proccess.

Environment

Production mode.

Expected behavior

  • Make sure the log in works in production mode

Screenshots

Image

Additional context

The error in the log:

 [next-auth][error][OAUTH_CALLBACK_ERROR] 
frontend-1  | https://next-auth.js.org/errors#oauth_callback_error  {
frontend-1  |   error: Error [OAuthCallbackError]: 
frontend-1  |       at ignore-listed frames {
frontend-1  |     code: 'ECONNREFUSED'
frontend-1  |   },
frontend-1  |   providerId: 'lsaai-oidc',
frontend-1  |   message: ''
frontend-1  | }
## Describe the bug Logging in with the oidc login in production mode gives "Try signing in with a different account" ## Steps to reproduce Start application in production mode and try the log in proccess. ### Environment Production mode. ## Expected behavior - [ ] Make sure the log in works in production mode ## Screenshots <img width="582" height="277" alt="Image" src="https://github.com/user-attachments/assets/7bfc1451-aefd-4d32-ae3b-dc65b79e3087" /> ## Additional context The error in the log: ``` [next-auth][error][OAUTH_CALLBACK_ERROR] frontend-1 | https://next-auth.js.org/errors#oauth_callback_error { frontend-1 | error: Error [OAuthCallbackError]: frontend-1 | at ignore-listed frames { frontend-1 | code: 'ECONNREFUSED' frontend-1 | }, frontend-1 | providerId: 'lsaai-oidc', frontend-1 | message: '' frontend-1 | } ```
aaperis commented 2026-08-17 07:51:25 +00:00 (Migrated from github.com)

Closing this. The production image is deployed for the demo site and is working. The problem was that the ls-aai mock cannot accept passwords that are not strictly alphanumeric strings.

EDIT: for local deployment of the prod image, one also needs to modify docker-compose.yml as:

extra_hosts:
      - "host.docker.internal:host-gateway"
      - "localhost:host-gateway"
Closing this. The production image is deployed for the demo site and is working. The problem was that the ls-aai mock cannot accept passwords that are not strictly alphanumeric strings. EDIT: for local deployment of the prod image, one also needs to modify `docker-compose.yml` as: ``` extra_hosts: - "host.docker.internal:host-gateway" - "localhost:host-gateway" ```
Sign in to join this conversation.
No description provided.