[openstreetmap/openstreetmap-website] Add support for OAuth 2 (#3177)

Tom Hughes notifications at github.com
Wed May 12 20:34:34 UTC 2021


> > Scope names:
> > ```
> > * read_prefs:  read their user preferences
> > ```
> 
> This is one thing that I ran into earlier while I was testing out the various screens. The dummy OAuth client that I was using to trigger the token-related screens needed to know the scope names (e.g. `read_prefs`) but they aren't shown anywhere and I failed to guess them. I think the developers always need to know them, is that right? If so, we should show them on the user interface somewhere, so that after an application has been registered the developer can find them out. That leads me to think that on the oauth_application#show (and maybe #index) page, where the human-descriptions of the scopes are shown. I first thought about doing them as hover-text but this might be hard to find, so perhaps as another column in the table or as `formatted code` after the names, or similar. But I thought I should check if this information is commonly needed, or just an artefact of how I was testing it.

How does this look?
![image](https://user-images.githubusercontent.com/147741/118040631-b4baa180-b369-11eb-9bce-e8a7ae601d74.png)
That's the `show` view but we could do the same for `index` easily enough.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3177#issuecomment-840078779
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210512/7bad2ab8/attachment-0001.htm>


More information about the rails-dev mailing list