Managing Okta Credentials
Use the openit_idpconnectorconsole utility to manage Okta credentials for data collection.
Open iT saves the credential file, idpconnector.db, in the OpeniT directory, which is by default in C:\ProgramData\OpeniT in Windows and /var/tmp/OpeniT in Unix.
You can:
Requirements
- An Open iT Core Client connected to an Open iT Core Server or a coexistent Open iT Core setup
- Okta Credentials:
- Okta Domain – The URL of your organization's Okta environment, used to connect to the Okta API.
Example:https://company.okta.com - Okta API Token – The API token used to authenticate requests to the Okta API. The token must have sufficient permissions to retrieve the required user information.
- Okta Domain – The URL of your organization's Okta environment, used to connect to the Okta API.
Add and Verify an Okta Credential
Follow these steps to configure and validate a credential.
- Windows
- Unix
Step 1: Open Command Prompt
- Open a command prompt with Administrator level privileges.
Step 2: Navigate to the bin Directory
-
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin, run the command:Command Syntaxcd <bin_dir>Examplecd C:\Program Files\OpeniT\Core\bin
Step 3: Add Okta Credentials
-
Run the following command:
Command Syntaxopenit_idpconnectorconsole okta credential add -
Enter the required details when prompted:
- Domain
- Api Key
ExampleDomain: https://company.okta.com
Api Key: AbC******************
Step 4: (Optional) Add Multiple Okta Accounts
If you need to collect sign-in logs from multiple Okta accounts, use the --name parameter:
openit_idpconnectorconsole okta credential add --name <name>
where <name> is the name of the account you want to use for data collection.
openit_idpconnectorconsole okta credential add --name okta1
Step 5: Verify the Credentials
-
Verify the default credential:
Exampleopenit_idpconnectorconsole okta credential verify -
Verify a named credential:
Exampleopenit_idpconnectorconsole okta credential verify --name <name>where
<name>is the name of the account you want to verify. -
Confirm that the output indicates a successful connection:
Sample OutputConnection verified successfully.
Open iT securely stores credentials in the idpconnector.db file in the OpeniT directory, which is by default in C:\ProgramData\OpeniT. API Keys are encrypted before they are written to the database.
When using the --name parameter, Open iT stores named credentials in the same database, allowing multiple accounts to be managed from a single location.
Step 1: Navigate to the bin Directory
-
Go to the bin directory, which is by default in
/opt/openit/bin, run the command:Command Syntaxcd <bin_dir>Examplecd /opt/openit/bin
Step 2: Add Okta Credentials
-
Run the following command:
Command Syntax./openit_idpconnectorconsole okta credential add -
Enter the required details when prompted:
- Domain
- Api Key
ExampleDomain: https://company.okta.com
Api Key: AbC******************
Step 3: (Optional) Add Multiple Okta Accounts
If you need to collect sign-in logs from multiple Okta accounts, use the --name parameter:
./openit_idpconnectorconsole okta credential add --name <name>
where <name> is the name of the account you want to use for data collection.
./openit_idpconnectorconsole okta credential add --name okta1
Step 4: Verify the Credentials
-
Verify the default credential:
Example./openit_idpconnectorconsole okta credential verify -
Verify a named credential:
Example./openit_idpconnectorconsole okta credential verify --name <name>where
<name>is the name of the account you want to verify. -
Confirm that the output indicates a successful connection:
Sample OutputConnection verified successfully.
Open iT securely stores credentials in the idpconnector.db file in the OpeniT directory, which is by default in /var/tmp/OpeniT. API Keys are encrypted before they are written to the database.
When using the --name parameter, Open iT stores named credentials in the same database, allowing multiple accounts to be managed from a single location.
Additional Credential Management
Update a Credential
- Windows
- Unix
Step 1: Open Command Prompt
- Open a command prompt with Administrator level privileges.
Step 2: Navigate to the bin Directory
-
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin, run the command:Command Syntaxcd <bin_dir>Examplecd C:\Program Files\OpeniT\Core\bin
Step 3: Update Okta Credentials
- Run the following command:
openit_idpconnectorconsole okta credential update
For named credentials:
openit_idpconnectorconsole okta credential update --name <name>
Step 1: Navigate to the bin Directory
-
Go to the bin directory, which is by default in
/opt/openit/bin, run the command:Command Syntaxcd <bin_dir>Examplecd /opt/openit/bin
Step 2: Update Okta Credentials
- Run the following command:
./openit_idpconnectorconsole okta credential update
For named credentials:
./openit_idpconnectorconsole okta credential update --name <name>
Delete a Credential
- Windows
- Unix
Step 1: Open Command Prompt
- Open a command prompt with Administrator level privileges.
Step 2: Navigate to the bin Directory
-
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin, run the command:Command Syntaxcd <bin_dir>Examplecd C:\Program Files\OpeniT\Core\bin
Step 3: Update Okta Credentials
- Run the following command:
openit_idpconnectorconsole okta credential delete
For named credentials:
openit_idpconnectorconsole okta credential delete --name <name>
Step 1: Navigate to the bin Directory
-
Go to the bin directory, which is by default in
/opt/openit/bin, run the command:Command Syntaxcd <bin_dir>Examplecd /opt/openit/bin
Step 2: Update Okta Credentials
- Run the following command:
./openit_idpconnectorconsole okta credential delete
For named credentials:
./openit_idpconnectorconsole okta credential delete --name <name>
The --name parameter applies to all actions (add, update, delete, verify). If not specified, the default credential, <default>, is used.