fedcloudclient API references¶
fedcloudclient.checkin module¶
Implementation of "fedcloud token" commands for interactions with EGI Check-in and access tokens
- fedcloudclient.checkin.get_access_token(oidc_access_token, oidc_refresh_token, oidc_client_id, oidc_client_secret, oidc_url, oidc_agent_account)[source]¶
Getting access token. Generate new access token from oidc-agent or refresh token (if given) or use existing token
Check expiration time of access token Raise error if no valid token exists
- Parameters
oidc_access_token --
oidc_refresh_token --
oidc_client_id --
oidc_client_secret --
oidc_url --
oidc_agent_account --
- Returns
access token
- fedcloudclient.checkin.oidc_discover(oidc_url)[source]¶
Discover oidc endpoints
- Parameters
oidc_url -- CheckIn URL
- Returns
JSON object of OIDC configuration
- fedcloudclient.checkin.refresh_access_token(oidc_client_id, oidc_client_secret, oidc_refresh_token, oidc_url)[source]¶
Retrieve access token in plain text (string)
- Parameters
oidc_client_id --
oidc_client_secret --
oidc_refresh_token --
oidc_url --
- Returns
access token