Before refactor, pre(self) was called as such: OAuth2ResourceController.pre(self). Matching syntax from before.
Current clients get returned 401s when trying to access /api/v1/me and passing up access token w/ bearer authorization.
Fixing issues with /api/v1/me
Before refactor, `pre(self)` was called as such: `OAuth2ResourceController.pre(self)`. Matching syntax from before.
While it's definitely possible I broke something during the refactoring, the proposed change won't have any effect. The function was called as OAuth2ResourceController.pre(self) previously due to how things were subclassed. Sub- and super-classes of OAuth2ResourceController also had pre methods, so it was previously necessary to explicitly call the pre method of the desired class.
After the refactor, there's only one authenticate_with_token method, so the subclassing is not a concern and the function can be called normally.
Gotchya. My understanding of python syntax is off then, guess I better freshen up!
Also, is your reddit avatar a dragon?