Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cyberark/shimit
/ functions
Functions
16 in github.com/cyberark/shimit
⨍
Functions
16
◇
Types & classes
2
↓ 4 callers
Method
gen_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 callers
Method
gen_id
Create a GUID for the assertion :return: GUID string
aws.py:36
↓ 2 callers
Method
apply_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 callers
Method
assume_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 callers
Function
exit_print_usage
Print usage and quit. :param arg_parser: argparse argument parser
shimit.py:31
↓ 1 callers
Method
create_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 callers
Function
get_args
Handle arguments using argparse :return: list of arguments
shimit.py:40
↓ 1 callers
Method
load
Returns the ARN and role name from an encoded SAML response. :param saml_response: encoded saml response :return: amazon ac
aws.py:105
↓ 1 callers
Function
main
Gets arguments from the user, sign a SAML response and opens a session with the generated AccessKey. Mandatory parameters are:
shimit.py:149
↓ 1 callers
Method
sign_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
Method
connect
Connect to the Service Provider
service_provider.py:21
Method
create_assertion
Create the SAML assertion for the SP
service_provider.py:25
Method
gen_id
Generate an assertion id
service_provider.py:33
Method
sign_assertion
Sign the assertion with the private key
service_provider.py:29