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

Implement WP authenticator #49

Open
ssnepenthe opened this issue Aug 7, 2021 · 0 comments
Open

Implement WP authenticator #49

ssnepenthe opened this issue Aug 7, 2021 · 0 comments

Comments

@ssnepenthe
Copy link
Owner

ssnepenthe commented Aug 7, 2021

I envision it working like this:

Dev configures user cap required to view metadata. Probably 'manages_options' by default, or maybe we add a clockwork-specific capability.

Username and password would both be required. If credentials match, we fetch or create a clockwork token from user meta. This is the token returned by Auth::attempt().

The Auth::check() method would do a user lookup by clockwork token meta. User caps should probably be verified here as well in case the user role has recently changed.

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

1 participant