예제 #1
0
def get_environment(args):
    tenant = args.tenant
    if ("idaptive." not in tenant and "centrify.com" not in tenant):
        tenant = tenant + ".centrify.com"
    name = tenant.split(".")[0]
    tenant = "https://" + tenant
    cert = certifi.where()
    debug = args.debug
    env = environment.Environment(name, tenant, cert, debug)
    return env
예제 #2
0
def get_environment(args):
    tenant = args.tenant
    if ("centrify.com" not in tenant):
        tenant = tenant + ".centrify.com"
    name = tenant.split(".")[0]
    tenant = "https://" + tenant
    cert = "cacerts_" + name + ".pem"
    debug = args.debug
    env = environment.Environment(name, tenant, cert, debug)
    return env
예제 #3
0
def get_environment(args):
    tenant = args.tenant
    if ("idaptive." not in tenant):
        tenant = tenant + ".idaptive.app"
    name = tenant.split(".")[0]
    tenant = "https://" + tenant
    #cert = "cacerts_" + name + ".pem"  
    cert = True    # comment this line and uncomment above line to add certificate pinning. Please refer url https://identity-developer.cyberark.com/docs/making-cacertspem
    debug = args.debug
    env = environment.Environment(name, tenant, cert, debug)
    return env
예제 #4
0
def get_environment(args):
    tenant = args.tenant
    name = tenant.split(".")[0]
    if not tenant.startswith('https://'):
        tenant = "https://" + tenant
    if args.cert:
        cert = args.cert
    else:
        cert = "cacerts_" + name + ".pem"
    debug = args.debug
    env = environment.Environment(name, tenant, cert, debug)
    return env