Skip to content

Attempting to authenticate against Staging actually authenticates against production #59

@maxkadel

Description

@maxkadel

Attempting to authenticate against staging actually authenticates against production. This creates issues with creating test users and cases, since you cannot log in with a staging-only user or credentials.

Reproduction instructions

  1. Go to staging site - https://princeton-manifold-friends.notch8.cloud/
  2. Enter an email address and password (do not hit enter / submit yet)
  3. Open up the network tab in the developer tools
  4. Hit submit
  5. In the network tab, you should see a red line with tokens?email= - open up the details, it will be a POST request to https://openpublishing.princeton.edu/api/v1/tokens?email=[YOUR_INFO] - aka, the production URL

Acceptance criteria

  • Attempting to authenticate via the staging UI authenticates against the staging environment, including the staging database
  • Attempting to authenticate via the production UI authenticates against the production environment, including the production database

Notes

I think it's possible that the production and staging sites are pointing at the same database. Alternatively, this could be a configuration issue with the authentication path itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions