Adding the RunScript Mechanism

Jamf Connect Login can include the RunScript mechanism, allowing you to run scripts after the authentication process.

The RunScript mechanism is not included by default. To add the RunScript mechanism to Jamf Connect Login, do the following:

  1. Execute the following command using the authchanger:

    /usr/local/bin/authchanger -reset -OIDC -preAuth JamfConnectLogin:RunScript,privileged

    Note: If Okta is your cloud identity provider (IdP), replace "-OIDC" with "-Okta".

  2. Add a script to the Jamf Connect Login package, and then use the following preference keys to configure the app for deployment:

    Key

    Description

    Example

    ScriptArgs

    The arguments used with a specified script run by the RunScript mechanism

    Note: The ScriptPath key must bey specified.

    <key>ScriptArgs</key>

    <array>

    <string>-v</string>

    <string>-user</string>

    </array>

    ScriptPath

    Specifies the path to the script or other executable run by the RunScript mechanism. Only one script can be used with Jamf Connect Login at any time.

    <key>ScriptPath</key>

    <string>/usr/local/bin/login</string>

Related Information

For related information, see the following sections in this guide:

For related information, see the Customizing the Jamf Connect Login Package with Composer Knowledge Base article.

Copyright     Privacy Policy     Terms of Use     Security
© copyright 2002-2019 Jamf. All rights reserved.