dservercore.utils_auth

Auth utility functions.

Functions

has_admin_rights(username)

Return True if user has admin rights.

list_register_base_uris(username)

Return list of base URIs the user may regiester datasets to.

list_search_base_uris(username)

Return list of base URIs the user may search.

may_access(username, uri)

Return True if user has privileges to access the dataset URI.

may_register(username, base_uri)

Return True if user has privileges to register on the base URI.

may_search(username, base_uri)

Return True if user has privileges to search the base URI.

user_exists(username)

Return True if the user exists.

dservercore.utils_auth.user_exists(username)

Return True if the user exists.

dservercore.utils_auth.has_admin_rights(username)

Return True if user has admin rights.

Return True if user has privileges to search the base URI.

dservercore.utils_auth.may_access(username, uri)

Return True if user has privileges to access the dataset URI.

dservercore.utils_auth.may_register(username, base_uri)

Return True if user has privileges to register on the base URI.

dservercore.utils_auth.list_search_base_uris(username)

Return list of base URIs the user may search.

dservercore.utils_auth.list_register_base_uris(username)

Return list of base URIs the user may regiester datasets to.