Authentication and authorisation¶
DQSEGDB servers can be operated in a number of authorisation modes depending on the access controls required.
The supported modes are detailed below.
No auth¶
DQSEGDB servers can be operated without requiring any authorisation credentials.
SciTokens¶
DQSEGDB servers may be operated with support for SciTokens, an implementation of JSON Web Tokens designed for distributed scientific computing.
When using the query functions, the following keyword arguments can be used with all functions to control the use of SciTokens:
tokenDefault:
NoneA bearer token (
SciToken) to use to authorise the request.Pass
token=Falseto disable any use of SciTokens.token_audienceDefault:
<scheme://host>(the fully-qualifiedhostURI)The expected value of the
audtoken claim, which should match the fully-qualified URL of the GWDataFind host.token_scopeDefault:
"dqsegdb.read"The expected value of
scopetoken claim. At the time of writing, only"dqsegdb.read"is supported.
See also
For full details on token arguments and how they are parsed, see
igwn_auth_utils.Session.