https://github.com/janssenproject/terraform-provider-jans
Terraform provider for Jans Authorization Server
https://github.com/janssenproject/terraform-provider-jans
Last synced: 3 months ago
JSON representation
Terraform provider for Jans Authorization Server
- Host: GitHub
- URL: https://github.com/janssenproject/terraform-provider-jans
- Owner: JanssenProject
- License: apache-2.0
- Created: 2023-01-19T13:00:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-27T12:07:36.000Z (4 months ago)
- Last Synced: 2026-01-27T23:37:40.863Z (4 months ago)
- Language: Go
- Homepage:
- Size: 631 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Provider for the Janssen Project
This repo contains the terraform provider for the [Janssen Project](https://github.com/JanssenProject/jans).
## Issues
For issues please open at the [Janssen Project](https://github.com/JanssenProject/jans) and label with `comp-terraform-provider-jans`.
## PRs
Please contribute by raising a PR against the `terraform-provider-jans` folder inside the [Janssen Project](https://github.com/JanssenProject/jans).
## Documentation
For a complete documentation on how to use this provider, please refer to the [docs](/docs/).
## Installation
This provider can be installed automatically using Terraform >=0.13 by using the `terraform` configuration block:
```hcl
terraform {
required_providers {
janssen = {
source = "janssenproject/janssen"
version = ">= 1.0.0"
}
}
}
```
## Configuration
The provider must be configured using the following variables:
* `url` - The URL of the Janssen server to connect to
* `client_id` - The ID of the OIDC client which will be used to authenticate to the Janssen server
* `client_secret` - The secret of the OIDC client which will be used to authenticate to the Janssen server
If any of those 3 parameters is not provided, the provider will not be able to connect to the Janssen server.
Optionally, users can also set the following variables:
* `insecure_client` - If set to `true`, the provider will not verify the TLS certificate of the Janssen server. This is useful for testing purposes and should not be used in production, unless absolutely unavoidable.
## Tests
Before you run the tests, the custom_attribute test requires that a custom column is present in the user table, to be added as the custom attribute. Add `tbutlonger` VARCHAR field by following the [guide](https://docs.jans.io/stable/admin/reference/database/mysql-ops/#add-custom-attribute) provided in the Janssen documentation.
You can run the tests by running `make test`.
The tests require some environment variables to run, which are automatically set when running them through the Makefile.
When debugging the tests, without using the Makefile, make sure to have the environment variables present. They can be found in the Makefile.