oAuth Setup Example

This example explains steps to set up oAuth authentication on Okta 

  1. Go to the Okta site, and select your application under the Applications menu.

  1. Save your client ID and continue to Edit settings.

  1. Grant type

    1. Select all of the following options:

      1. Refresh token

      2. Allow ID Token with implicit grant type

      3. Allow Access Token with implicit grant type

  1. Add the sign-in redirect URL:

    1. http://locahost:{connector port}/oAuth.aspx

  2. Add sign-out redirect URL.

  3. Click Save.

  1. Go to http://localhost:{connector port}/OAuth.aspx

    1. Client Id: Set your Client ID

    2. Server URL: Set your server URL: Enter the URL of your Okta server

      • Example: https://my.local.okta.server-admin.okta.com/

    3. Click Authorize.


6. Go to the Web Service Connection in Connectivity Hub.

  1. Site: Set the URL of the site to crawl

  2. Client Id: Set your Client ID

  3. Settings: Set the additional connector settings in the Settings field.

  4. Example:

Copy
Additional Settings Example
{
        "crawlDelay": 100,
        "crawlTimeout": 300000,
        "retryCount": 3,
        "filters": {
            "allow": [
                "/"            ],
            "disallow": [
                "*?utm_source"            ]
        },
        "supportFileExtensions": [
            "pdf"        ],        

       "oAuthInitializationPage":"https://localhost:3000/oAuthInitialization?access={AccessToken}&idToken={IdToken}"    
}