maproulette / maproulette/maproulette-backend

Session lost after second login attempt (Kubernetes deployment)

Open
#1,198 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
53
Forks
39
Avg merge
1d 17h
Merged PRs (30d)
12

Description

I deployed MapRoulette in my Kubernetes cluster with the frontend served at https://maproulette.stg.test.cloud.

On the first login using OpenStreetMap credentials, the authentication flow succeeds and I am able to access the dashboard.

However, when I sign out and try to log in again, the backend (/auth/callback) still succeeds, but immediately after that the frontend calls /api/v2/user/whoami, which returns a 401 Unauthorized. This forces the frontend to sign me out again.

Steps to reproduce:

  1. Deploy MapRoulette frontend and backend in Kubernetes.
  2. Log in via OSM for the first time — works fine.
  3. Sign out.
  4. Log in again with the same OSM account.
  5. Observe that the backend login succeeds, but the whoami call fails and the frontend signs out automatically.
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the authentication flow around /auth/callback and the subsequent /api/v2/user/whoami request, then reproduce the second-login sequence in the Kubernetes deployment described. Done means signing out and logging in again with the same OpenStreetMap account leaves the frontend authenticated and makes whoami return successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, scala
Domain
api, authentication, backend, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.