arcgis.auth.tools package

Submodules

arcgis.auth.tools.certificate module

Tools to assist users to work with PKI Certificates

arcgis.auth.tools.certificate.pfx_to_pem(pfx_path, pfx_password, folder=None, use_openssl=False)

Decrypts the .pfx file to be used with requests.

Parameter

Description

pfx_path

Required string. File pathname to .pfx file to parse.

pfx_password

Required string. Password to open .pfx file to extract key/cert.

folder

Optional String. The save location of the certificate files. The default is the tempfile.gettempdir() directory.

user_openssl

Optional Boolean. If True, OpenPySSL is used to convert the pfx to pem instead of cryptography.

Returns:

Tuple File path to key_file located in a tempfile location File path to cert_file located in a tempfile location

arcgis.auth.tools.verifycontext module

Module contents

class arcgis.auth.tools.LazyLoader(module_name, submod_name=None, strict=False)

Bases: ModuleType

Lazy load modules

np = LazyLoader(“numpy”) pd = LazyLoader(“pandas”) arcpy = LazyLoader(“arcpy”, strict=True) cf = LazyLoader(module_name=”concurrent.futures”)

static check_module_exists(name)

Checks if a module exists

arcgis.auth.tools.parse_url(url)

Parses a URL string into it’s pieces.

Returns:

Named Tuple

arcgis.auth.tools.pfx_to_pem(pfx_path, pfx_password, folder=None, use_openssl=False)

Decrypts the .pfx file to be used with requests.

Parameter

Description

pfx_path

Required string. File pathname to .pfx file to parse.

pfx_password

Required string. Password to open .pfx file to extract key/cert.

folder

Optional String. The save location of the certificate files. The default is the tempfile.gettempdir() directory.

user_openssl

Optional Boolean. If True, OpenPySSL is used to convert the pfx to pem instead of cryptography.

Returns:

Tuple File path to key_file located in a tempfile location File path to cert_file located in a tempfile location

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close