Jahia Oauth Okta icon
Module Id
jahia-oauth-okta
Group Id
org.jahiacommunity.modules
Updated
Requires Jahia
8.1.2.1
Author
tleclere@jahia.com
Category
Tools and Utilities
Status
COMMUNITY info

Jahia Oauth Okta group_work

oauth authentication sso okta

This is the custom module (jahia-oauth-okta) for running on a Jahia server.

Dependencies & Dependants

Changelog 1.0.4

Log sitekey and authorizationurl Thomas LE CLERE Today 11:55
FIX Cache Manager with module name to avoid ClassCastException Thomas LE CLERE 25/09/2023 14:21

How To Install

Jahia OAuth Okta

This module is a community module to show how to implement an Okta Authentication based on OAuth protocol.

jahia-oauth-okta module depends on jahia-authentication and jahia-oauth modules.

How to configure ?

Jahia User Group Provider

It is not recommended to save external user in the JCR. This module implements a custom user group provider.

The User Group Provider calls the Okta admin Rest API in order to search groups, users and members.

API results are cached in a specific EHCache for users and another for groups.

Configure the Okta user group provider under server administration:

  • Okta provider name: the user group provider name
  • Target site: the site where users and groups are mounted, globally if empty
  • Organization: Okta organization (https://my.oktapreview.com) must not end with a slash character / and without the protocol (https is mandatory, hard-coded)
  • API Token: the Okta API Token

Jahia Authentication

Activate those modules to your website and go to site settings.

  • Client ID: Okta Client ID
  • Client Secret: Okta Client Secret
  • Scope: OpenID scopes
    • openid: to enable openid flow
    • email: to be able to get profile information (email in the sub property from the JSON token)
  • Organization: the Ping Federate domain without ending with slash character /
  • Callback URL: Jahia callback URL, the return url set up in Ping Federate
  • Return URL: Jahia return URL afeter the callback (optional)

 

License

MIT License

Copyright (c) 2022 Thomas LC.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.