Skip to content

Swagger API "could not validate credentials" though it says I'm logged in #1267

@bmeluch

Description

@bmeluch

Describe the bug
In the production Swagger UI page, I get a "could not validate credentials" response on the first use of a padlocked endpoint even though it says I'm logged in when I click on "Authorizations" at the top of the page.

To Reproduce
Steps to reproduce the behavior:

  1. Open a new tab api.microbiomedata.org
  2. It says I'm already logged in. Cool!
  3. Try and use a locked endpoint eg. queries:run
  4. Server response { "Could not validate credentials" }

Expected behavior
I should be able to use locked endpoints when the page says I am logged in.

Acceptance Criteria
Can use a locked endpoint upon opening a new tab where the API says I am logged in without having to reenter my credentials.

Additional context
I'm speculating that this is related to the new addition of persistent login because 1) logging out and back in fixes the problem and 2) this didn't happen to me before the last release.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions