scopessynchronizer

command
v0.0.0-...-6d13c91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

Scopes Synchronizer Job

Overview

The role of the Scopes Synchronizer Job is to synchronize the scopes of OAuth clients in Hydra, which are created for a given consumer type. The synchronization is required when there is a change in the consumer scopes, such as, granting additional scopes or removing given scopes.

Details

The basic workflow of Scopes Synchronizer is as follows:

  1. List all clients available in ORY Hydra
  2. List all system auths with OAuths (should be 1:1 mapping with above clients)
  3. Based on the system auth entry consumer type (application, runtime, integration system) update the client in Hydra with the required scopes taken from the Director scopes configuration.

Configuration

The Scopes Synchronizer binary allows you to override some configuration parameters. To get a list of the configurable parameters, see main.go.

Local Development

Prerequisites

The Scopes Synchronizer requires access to:

  1. Configured PostgreSQL database with the imported Director's database schema.
  2. Up and running ORY Hydra.
Run

This component requires ORY Hydra and for this reason its local run is cumbersome. It is recommended to start a local k3d installation and deploy Compass on it. The Scopes Synchronizer job is a post-install job that runs at the end of the Helm installation.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL