History | View | Annotate | Download (7.8 kB)
astakos: replace CookieAuthenticationMiddleware with a view decorator
reverse commits ab30f5f163a13dfc7f9bec4d263208dd35f09d16 &1439d6383113b151b6a3316e320a0418fa30d421
decorate also ``django.contrib.auth.views`` utilized byastakos
astakos: api calls authenticated via X-Auth-Token shall not affect cookie
CookieAuthenticationMiddleware.process_request() synchronizesthe astakos cookie with the request user.If an astakos cookie is set but there is no logged in user,the middleware deletes the cookie....
Improve log message
Distinguish exceptions while using AstakosClient to communicate withAstakos, from the rest API errors.
Handle AstakosClientException in api_method decorator
Fix API decorator response Content-Type
Remove check for response Content-Type, since 'django.http.HttpResponse'has always a default Content-Type of 'text/html; charset=utf-8'. Viewsdefining their response 'Content-Type' should set the'override_serialization' attribute of response to 'True'.
Make 'api_method' to take astakos_url as argument
snf-django-lib: PEP-8 style fixes
snf-django-lib: ReRaise AstakosClientExceptions as API Faults
Implement single decorator for handling API calls
Create a single decorator for API methods to be used be accross allsynnefo. This decorator does the following: