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

Setting up OAuth for local development #281

Open
eatyourgreens opened this issue Nov 15, 2024 · 3 comments
Open

Setting up OAuth for local development #281

eatyourgreens opened this issue Nov 15, 2024 · 3 comments

Comments

@eatyourgreens
Copy link
Contributor

eatyourgreens commented Nov 15, 2024

Some notes on setting up GItHub auth for local development:

@eatyourgreens
Copy link
Contributor Author

Looks promising…

A screenshot of the Github Oauth permissions screen for Gutenberg running on localhost:3000.

@eatyourgreens
Copy link
Contributor Author

Once you're logged in, you'll need to find your user record in the User table, and set admin to true.

It would be useful to set up an admin user automatically for new installs.

@alasdairwilson
Copy link
Collaborator

It would be useful to set up an admin user automatically for new installs.

I didn't think there was a trivial way to do this considering we are using github oauth, a long time ago there was the idea of allowing direct uname/pass login to the user account rather than via oauth but it isn't useful beyond this idea of preseeding the db with a local admin account.

Likewise it is also necessary to not ALWAYS being admin as the behaviour of the site in the general user case needs to be checked too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants