Home

Awesome

SCIM Bridge

This is a PoC (work in progress) for a SCIM Bridge taken from the skyscraper project.

The implementation is still in a rough state and is missing essential tests, but covers SCIM V2 for Okta.

Expect major changes as this project matures.

Project Goals

Development Environment

Please use the example application located in the example directory for development. It serves as a sample application using SCIM bridge library and OpenFGA.

Prerequisites

Local Environment:

Database Migrations

The database migration files are at cmd/app/migrate/migrations. They're embedded into the binary, and we read them in the migrate command.

Migrate Up:

go run ./cmd/main.go migrate up

Migrate Down:

go run ./cmd/main.go migrate down

Generate Database files

Notes:

Run the following command to generate the database files:

sqlc generate

Deploy Locally

The example application is located in the example directory.

  1. Copy config.yaml.example to config.yaml and fill in the values.
  2. Build the server:
    go build ./cmd/main.go
    
  3. Run database migrations:
    go run ./cmd/main.go migrate up
    
  4. Run the server:
    go run ./cmd/main.go server