MCPcopy Create free account

hub / github.com/cyberark/shimit / functions

Functions16 in github.com/cyberark/shimit

↓ 4 callersMethodgen_timestamp
Generates a zulu timestamp (i.e. UTC+0). Accepts time difference from current time. :param days: number of day difference :
service_provider.py:38
↓ 3 callersMethodgen_id
Create a GUID for the assertion :return: GUID string
aws.py:36
↓ 2 callersMethodapply_cli_session
Applies the given credentials (i.e. AccessKey, SecretAccessKey and SessionToken) to a new shell to use with aws cli. The credentials are
aws.py:155
↓ 2 callersMethodassume_role
Assumes the desired role using the saml_response given. The response should be b64 encoded. Duration is in seconds :param r
aws.py:133
↓ 2 callersFunctionexit_print_usage
Print usage and quit. :param arg_parser: argparse argument parser
shimit.py:31
↓ 1 callersMethodcreate_assertion
Creates a etree.root of a SAML2.0 assertion based on parameters provided. All parameters should be strings :param time: tim
aws.py:45
↓ 1 callersFunctionget_args
Handle arguments using argparse :return: list of arguments
shimit.py:40
↓ 1 callersMethodload
Returns the ARN and role name from an encoded SAML response. :param saml_response: encoded saml response :return: amazon ac
aws.py:105
↓ 1 callersFunctionmain
Gets arguments from the user, sign a SAML response and opens a session with the generated AccessKey. Mandatory parameters are:
shimit.py:149
↓ 1 callersMethodsign_assertion
Reads the certificate and private key to memory from the paths provided. uses signxml module to sign the root object provided.
aws.py:85
Method__init__
(self, user_agent=AWS_USER_AGENT, c14_alg=DEFAULT_C14_ALG)
aws.py:18
Method__init__
(self)
service_provider.py:8
Methodconnect
Connect to the Service Provider
service_provider.py:21
Methodcreate_assertion
Create the SAML assertion for the SP
service_provider.py:25
Methodgen_id
Generate an assertion id
service_provider.py:33
Methodsign_assertion
Sign the assertion with the private key
service_provider.py:29