Missing definition for moduleAuthToken

Hi in the docs for compute modules there is a reference to moduleAuthToken but I can’t seem to find where that is defined: https://www.palantir.com/docs/foundry/compute-modules/functions/.

if __name__ == "__main__":
    certPath = os.environ['CONNECTIONS_TO_OTHER_PODS_CA_PATH']
    postSchemaUri = os.environ["POST_SCHEMA_URI"]

    with open('schemas.json', 'r') as file:
        SCHEMAS = json.load(file)

    requests.post(
        postSchemaUri,
        json=SCHEMAS,
        headers={"Module-Auth-Token": moduleAuthToken, "Content-Type": "application/json"},
        verify=certPath
    )

Would love some help on this :slight_smile:

Best,
Jack

For others: turns out it is in

os.environ["MODULE_AUTH_TOKEN"]

where this is defined in a different page of the docs: https://www.palantir.com/docs/foundry/compute-modules/advanced-custom-client/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.