lepture/flask-oauthlib — pull request #19 by clintecker (2013-06-21 15:41:52+00:00)
Title: New validator method (get_original_scopes) introduced in development branch of oauthlib

There was a bug in `oauthlib` that prevented any kind of scope being applied to new access tokens granted during the refresh token grant flow. This has been [fixed](https://github.com/idan/oauthlib/commit/035d46c73ab7feb4719e4642dafc9bb21aa8bd2c) in a recent commit by replacing the validator method `confirm_scopes` with a new validator method `get_original_scopes`.

I've left `confirm_scopes` in place so it will interop with older versions of oauth (despite it not really working properly) and added the new method. The [subset comparison](https://github.com/idan/oauthlib/commit/035d46c73ab7feb4719e4642dafc9bb21aa8bd2c#L0L98) of scopes now takes place at the `oauthlib` level.