Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock orcid login in dev environment #1375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sneakers-the-rat
Copy link
Contributor

Fix: #1374

It is currently impossible to login in the dev environment, meaning that we can't interactively try and replicate bugs in prod that require a login like paper submission. In general it's great to be able to test things in a dev environment instead of needing to test in prod!

This PR just mocks the OmniAuth provider using instructions from their docs to automatically log us in as the Lord Fake user.

I updated the seed.db entries to match that (added uid and provider fields) and also updated those to upsert instead of error if they already exist.

It was also impossible to create a paper without a subject existing, so i added one.

…e seed entries to upsert instead of error if they already exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to login in dev environment
1 participant