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.
- To have a SCIM V2 bridge.
- To initially cover Okta's implementation of SCIM, but eventually fulfil the entire specification.
- To be flexible enough to allow for individual applications to implement their own business logic.
Please use the example application located in the example directory for development. It serves as a sample application using SCIM bridge library and OpenFGA.
Local Environment:
- PostgresSQL
- golang 1.19+
- sqlc
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
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
Notes:
- The queries are located in the
queries.sql
file. - The config file for
sqlc
is located atsqlc.yaml
. - The database files are generated at
internal/db
.
Run the following command to generate the database files:
sqlc generate
The example application is located in the example directory.
- Copy
config.yaml.example
toconfig.yaml
and fill in the values. - Build the server:
go build ./cmd/main.go
- Run database migrations:
go run ./cmd/main.go migrate up
- Run the server:
go run ./cmd/main.go server