koa_middleware.keck_client

Classes

KeckObserverAuthClient()

Client for authorizing credentials to login to the Keck Observatory.

class koa_middleware.keck_client.KeckObserverAuthClient[source]

Bases: object

Client for authorizing credentials to login to the Keck Observatory.

This client manages authentication with the Keck Observatory login system, handling session management and cookie persistence. Eventually a similar client will be made for the Keck Observatory Archive (KOA).

property cookies

Get the session cookies.

Returns:

The cookies from the current session.

Return type:

requests.cookies.RequestsCookieJar

property cookies_dict: dict

Get the session cookies as a dictionary.

Returns:

The cookies from the current session as a dictionary.

Return type:

dict