Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

Add set to 'valid' property on OAuthSecurityHandler #215

Closed BrunoCaimar closed 8 years ago

BrunoCaimar commented 8 years ago

OAuthSecurityHandler was always returning valid property as 'True' even when token generation return "error"

I've changed it to set valid to 'False' and message = 'token request return value' when 'access_token' is not present in token request return (keep the original if check)

Added two tests to demostrate the problem as well.

MikeMillerGIS commented 8 years ago

Thank you!