The Okta API Integration Module provides Okta API functionality as Drupal Services to manage the following:
- Users
- Applications
- User assignments
- Group assignments
This module provides a settings form where you can configure the API Token and other settings for your Okta account.
Out of the box this module will provide services that integrate with Okta API, these services can be called from your custom modules. By itself this module does not provide any "functionality" as its is an API wrapper module.
Okta API Reference
https://developer.okta.com/docs/api/resources/apps.html
Installation
Install the Okta API Module
composer require drupal/okta_api
Usage
Okta API Service as Dependency Injection
In your custom service, you can use Dependency Injection
my_module.my_service: class: Drupal\my_module\FooBarService arguments: ["@okta_api.okta_client", "@okta_api.okta_users"]
Okta API Service without Dependency Injection
Alternatively, just call the service without Dependency Injection.
$okta_user = \Drupal::service('okta_api.users')->userGetByEmail('email');
Okta as IDP for SimpleSaml
This module is not the one to use if you are looking for IDP integration between Drupal and Okta.
Please use:
https://www.drupal.org/project/simplesamlphp_auth
Updating from Version 1 to Version 2
Version 2 of this module introduces some much needed and exciting functionality. However, you must update your custom modules to make sure they are using the new API changes. See a complete changelog here: https://github.com/dakkusingh/okta_api/commit/6a83f822a707c7259ffa5360e8...
Updating from Version 2 to Version 3
Version 3 of this module introduces API refinements and much needed EVENTS.. YAAY.. However, you must update your custom modules to make sure they are using the new API. See a complete changelog here: https://github.com/dakkusingh/okta_api/compare/8.x-2.4...8.x-3.0-alpha1
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Integrations
15 sites report using this module
- Created by dakku on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 8 || 9 || 10 compatible
Development version: 8.x-2.x-dev updated 2 Nov 2023 at 19:09 UTC



