Download the PHP package nzta/silverstripe-okta-api without Composer

On this page you can find all versions of the php package nzta/silverstripe-okta-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-okta-api

Okta API

Provides the ability to integrate with the Okta API and sync users and groups from Okta into your SilverStripe database.

Documentation for the Okta Users API can be found here Documentation for the Okta Groups API can be found here

Requirements

SilverStripe 4.x

Features

Installation

composer require nzta/silverstripe-okta-api

And you will need to add the following constants to your .env file:

SS_OKTA_GATEWAY_REST_URL="https://<organisation>.okta.com/api/v1/"
SS_OKTA_API_TOKEN="<token>"

Where {organisation} is your organisation's Okta sub domain and {token} is your API token which can be generated by following these instructions.

Configuration

You can update your Member field mapping by adding the following to your mysite/_config/config.yml:

OktaProfileMemberExtension:
  okta_ss_member_fields_name_map:
    CustomField: 'customField'
    ExtraCustomField: 'profile.extraCustomField'

Where the CustomField and ExtraCustomField are the SilverStripe Member database field names and customField and profile.extraCustomField are the keys in the object returned from the Okta API for each user. The dot notation in profile.extraCustomField allows you to map to fields nested one level deep, e.g. the extraCustomField key inside of a profile top level key.

Note: This replaces the default configuration so you will have to include the original Member fields, e.g. FirstName, Surname and Email, if they are required to be synced.

You can add/update additional queue jobs by adding the following to your mysite/_config/config.yml:

SyncOktaUsersJob:
  additional_job_list:
     - 'AdditionalFirstJob'
     - 'AdditionalSecondJob'

Where the AdditionalFirstJob and AdditionalSecondJob are the additional SilverStripe QueuedJobs that you can run after the primary job (SyncOktaUsersJob) finishes. You can set the public $schedule_after static to delay when the additional jobs kicks off. Eg. setting public $schedule_after = 30 would mean additional job would start 30 seconds after the main job finishes.

Okta Group Filters

You can create filters in the CMS that define which groups should be saved into the SilverStripe database. These work by defining a key/value pair which a group from the Okta API should match. These filters are configured to be matched using an OR style filter, so you can create multiple filters and each group from the Okta API just needs to match one of the filters.

These filters can be created in the Okta Group Filters ModelAdmin and each filter has a Filter and Value field which maps to the key/value pair respectively.


All versions of silverstripe-okta-api with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^4.2
silverstripe/cms Version ^4.2
symbiote/silverstripe-queuedjobs Version ^4.2
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nzta/silverstripe-okta-api contains the following files

Loading the files please wait ....