Restrict and document scopes that can be requested #143
Comments
|
Open question could be what we do in response to invalid scopes. Options:
|
|
I think this has these downsides:
/cc @rfk since he mentioned interest at work week |
|
We need to maintain a central collection of scopes for:
I agree it may be nice to keep the OAuth server decoupled from the service providers to keep things moving fast. I'll change this to a doc bug and we can revisit restriction later. |
|
I'm changing my mind, Changing this to a doc bug. I'm still concerned that if we allow service providers to go "cowboy" with the scopes we won't have a great way to track what scopes they are using so we can document and localize them properly. Have the fail fast if they aren't on a whitelist forces them to notify us so we can make sure they get documented and localized. |
|
Easily adding new scopes would be a great use for our OAuth Management API and related CLI. |
|
Another issue we need to careful about is to make sure that added scopes make their way through the system (dev -> stage -> prod). |
|
got here via triage, what should we do about this @rfk ? |
|
Let's revisit this as part of oauth/openid-connect work in Q4; hearting |
|
I got hit by this today, would love to see a documented list of scopes, and an endpoint that advertises them (like #257). Ones that don't work (result ing errno 109, "Invalid request parameter"):
Ones that work:
Others? |
@jwhitlock this seems to be because you're marked as an "untrusted" client (i.e. one that's not hosted by Mozilla) which restricts the scopes that you can request. I'm surprised that "profile" scope ever worked in this configuration. |
|
It was working February 2015, probably before the trusted/untrusted distinction. |
|
Ah, indeed, that distinction would have come in around March/April 2015. Thanks for clarifying! |
|
|
If a whitelisted relier requests an unknown scope (e.g.a typo), it could be frustrating debugging experience why it doesn't work. In addition to
profile, we got three others in the pipeline now:basket,makedrive, andgalaxy.The text was updated successfully, but these errors were encountered: