Stratio / sparta

Real Time Analytics and Data Pipelines based on Spark Streaming
Apache License 2.0
525 stars 196 forks source link

LoggedUser when security is enabled cannot be an AnonymousUser #1815

Closed Frannie-Ludmilla closed 7 years ago

Frannie-Ludmilla commented 7 years ago

If a LoggedUser cannot be parsed well from JSON, instead of returning an AnonymousUser return None. If security is enabled but LoggedUser is None we will return an Unauthorized in the routes.