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 scopes #10

Open
rmccue opened this issue Jul 1, 2017 · 0 comments
Open

Implement scopes #10

rmccue opened this issue Jul 1, 2017 · 0 comments

Comments

@rmccue
Copy link
Member

rmccue commented Jul 1, 2017

OAuth 2 has "scopes", which allow apps to limit their access to user data. Scopes are required per the spec, so we need to decide what we're going to do with them. (The scope parameter is a space-delimited list.)

There's a few options for what we could do here:

  • Ignore the scope parameter, and have a dummy value for clients which need one (e.g. *)
  • Allow clients to specify roles they're requesting: scope=subscriber could be used if the app only needs user-level data, e.g.
    • We could also allow clients to specify exact caps that they want as well, e.g. scope=subscriber edit_posts
  • Use handcrafted scopes: scope=user.read. I have an existing design for this from the OAuth 1 days.

These each have benefits and drawbacks, so we need to decide what we want to do.

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

No branches or pull requests

1 participant