Package glue :: Package auth
[hide private]
[frames] | no frames]

Package auth

source code

The glue.auth module provides methods to communicate with data stored behind the LIGO.ORG authentication system


Version: 8cbd1b7187ce3ed9a825d6ed11cc432f3cfde9a5

Date: 2017-12-05 15:29:36 +0000

Author: Duncan Macleod <duncan.macleod@ligo.org>

Submodules [hide private]
  • glue.auth.saml: This module is intended to make it easier to build web clients written in Python using the urllib module that can interoperate with the @LIGO.ORG infrastructure.

Functions [hide private]
 
request_ligodotorg(url, debug=False)
Request the given URL using LIGO.ORG SAML authentication.
source code
Variables [hide private]
  COOKIE_JAR = '/tmp/jenkins_cookies'
  LIGO_LOGIN_URL = 'login.ligo.org'
  __credits__ = 'Scott Koranda <scott.koranda@ligo.org>'
  __package__ = 'glue.auth'
Function Details [hide private]

request_ligodotorg(url, debug=False)

source code 
Request the given URL using LIGO.ORG SAML authentication.

This requires an active Kerberos ticket for the user, to get one:

$ kinit albert.einstein@LIGO.ORG

Parameters
----------
url : `str`
    URL path for request
debug : `bool`, optional
    Query in verbose debuggin mode, default `False`

Returns
-------
urllib.addinfourl
    file object containing output data, use .read() to extract
    text content