mozilla / fxa-oauth-server

OAuth server for Firefox Accounts
48 stars 40 forks source link

Formalize, document, and implement shared code for oauth scope-checking rules #575

Closed rfk closed 6 years ago

rfk commented 6 years ago

(I'm spinning this out as an issue from https://github.com/mozilla/fxa-oauth-server/pull/551 so that I can link all the PRs in waffle)

While working on adding OAuth support for sync, I figured we should have a canonical reference for what sorts of scope we support and how we check for matches. This issue is to track:

Here's the rendered view of the WIP documentation:

https://github.com/mozilla/fxa-oauth-server/blob/scopes-documentation/docs/scopes.md

rfk commented 6 years ago

So as a quick update, I've got WIP PRs for each of the three servers:

I'm mostly happy with how the shared API has supported them, despite each approaching scope checking in a different way. It has definitely removed a lot of duplicated (and often implicit) logic about how our scopes work.

Things that remain:

I won't get a chance to work on these anymore this week, but will try to revisit on Monday. It will be OK if they are still pending review when we cut train-116, but I'll aim to at least have them ready.

rfk commented 6 years ago

Alright, I think these are all ready to go, moving to waffle:review!

vladikoff commented 6 years ago

looks like PRs got merged, reopen this if still needed