Skip to content

Allow profiles of provisioned users to be updated every time they sign in#7

Closed
TdlQ wants to merge 3 commits intoCombodo:masterfrom
TdlQ:master
Closed

Allow profiles of provisioned users to be updated every time they sign in#7
TdlQ wants to merge 3 commits intoCombodo:masterfrom
TdlQ:master

Conversation

@TdlQ
Copy link
Contributor

@TdlQ TdlQ commented May 22, 2025

Base information

Question Answer
Related to a SourceForge thead / Another PR / Combodo ticket? No
Type of change? Enhancement

Objective (enhancement)

We use OktaOIDC and user profiles are defined depending on the Okta groups of the user. These groups may change and profiles require to be updated accordingly. Therefore the user must be updated.

It requires patches provided in Combodo/iTop#716

Proposed solution (bug and enhancement)

To enable user updates, these patches add the parameter "refresh_existing_users".
Regarding groups, it expects to find them in $oUserProfile->data['groups'] and applies mappings defined in configuration of the authentication provider ("groups_to_profiles").

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested all changes I made on an iTop instance
  • Would a unit test be relevant and have I added it?
  • Is the PR clear and detailed enough so anyone can understand digging in the code?

@TdlQ
Copy link
Contributor Author

TdlQ commented May 22, 2025

For reference, you can find the OktaOIDC mentioned above here: hybridauth/hybridauth#1434
It only lacks a line in combodo-oauth2-client/vendor/composer/autoload_static.php to load it properly with iTop.

Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
@jf-cbd jf-cbd moved this from First review needed to Pending technical review in Combodo PRs dashboard Jun 6, 2025
@odain-cbd
Copy link
Contributor

Current PR work has been accepeted/merged apart from this PR. it will come with 2.x versions of the extension.

@odain-cbd odain-cbd closed this Sep 22, 2025
@github-project-automation github-project-automation bot moved this from Pending technical review to Finished in Combodo PRs dashboard Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants