tethysplatform / tethys

The Tethys Platform main Django website project repository.
http://tethysplatform.org/
BSD 2-Clause "Simplified" License
94 stars 51 forks source link

fix ensure_oauth logic #912

Closed sdc50 closed 1 year ago

sdc50 commented 1 year ago

The get_access_token method has the same logic in it already that I had implemented in the ensure_oauth2 decorator. In addition to being redundant it was also not handling an error if the token is not valid.

coveralls commented 1 year ago

Coverage Status

Coverage: 100.0%. Remained the same when pulling 5610421ddad1fbdfe150df11f247728b5c942ee6 on ensure_oauth_hotfix into cfe96e59e2c4d8d8641d85c8c15ef72d77d7daad on main.