Skip to content

Add ScimClient model #18468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Add ScimClient model #18468

wants to merge 1 commit into from

Conversation

NobodysNightmare
Copy link
Contributor

Including basic services to manipulate them. The
service account is managed as part of the ScimClient's lifecycle.

We make sure to revoke non-chosen authentication methods with every update, so that it's not possible to keep authenticating through an outdated (and most likely UI-invisible) method anymore.

Ticket

https://community.openproject.org/work_packages/62516/activity

What are you trying to accomplish?

To process SCIM requests we need to authenticate an entity during the corresponding API requests. This must be possible via three high-level methods:

  • JWT token from an identity provider
  • access token issued by OpenProject Doorkeeper::Application
  • static token issued "by OpenProject"

Which approach did you choose and why?

The ScimClient is the central entity to configure settings around a configured SCIM client. It's related to a user (new subtype ServiceAccount) and optionally an oauth application. The service account is the authenticated entity. In this model we can cover all three authentication modes:

  • JWT token is natively supported by adding an identity_url to the service account
  • access token and static token can both be supported through a Doorkeeper::Application that uses the service account as a client credentials user
    • static token is a special case of this config, where we directly offer a token created for this oauth app to the user, without really performing an oauth token request

Merge checklist

  • Added/updated tests

@NobodysNightmare NobodysNightmare marked this pull request as draft March 27, 2025 12:35
@NobodysNightmare NobodysNightmare force-pushed the scim-client-model branch 3 times, most recently from 7f5a11d to 09a3770 Compare March 28, 2025 09:31
Including basic services to manipulate them. The
service account is managed as part of the ScimClient's lifecycle.

We make sure to revoke non-chosen authentication methods with every
update, so that it's not possible to keep authenticating through an
outdated (and most likely UI-invisible) method anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant