lildude / phpSmug

:camera: phpSmug is a simple object orientated wrapper for the new SmugMug API v2, written in PHP.
https://lildude.github.io/phpSmug
MIT License
42 stars 19 forks source link

Move oauth middleware #73

Closed hvanoch closed 2 years ago

hvanoch commented 2 years ago

Move oauth middleware after redirects middleware so redirect also gets new oauth token

This fixes issue at https://github.com/lildude/phpSmug/issues/68 We are experiencing the same issue. If the response indicates a redirect, the redirect results in a 401 because the same nonce is being used.