geonode.base.auth
Attributes
Functions
|
|
|
Extracts headers from the Django request object |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Function performing user authentication based on BasicAuth Authorization header |
|
|
|
|
|
|
|
|
|
Module Contents
- geonode.base.auth.extract_headers(request)[source]
Extracts headers from the Django request object
- Parameters:
request – The current django.http.HttpRequest object
- Returns:
a dictionary with OAuthLib needed headers
- geonode.base.auth.create_auth_token(user, client=settings.OAUTH2_DEFAULT_BACKEND_CLIENT_NAME)[source]
- geonode.base.auth.get_auth_user(access_token, client=settings.OAUTH2_DEFAULT_BACKEND_CLIENT_NAME)[source]
- geonode.base.auth.get_or_create_token(user, client=settings.OAUTH2_DEFAULT_BACKEND_CLIENT_NAME)[source]
- geonode.base.auth.delete_old_tokens(user, client=settings.OAUTH2_DEFAULT_BACKEND_CLIENT_NAME)[source]