feat(ops/keycloak): add GitLab SSO
Change-Id: I41ee3cb2988288e6b282d85b111c41064f09eaec
This commit is contained in:
parent
97f22e0ea6
commit
dd392ef054
4 changed files with 46 additions and 33 deletions
41
ops/keycloak/identity_providers.tf
Normal file
41
ops/keycloak/identity_providers.tf
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
variable "github_client_secret" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "gitlab_client_secret" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "keycloak_oidc_identity_provider" "github" {
|
||||
alias = "github"
|
||||
provider_id = "github"
|
||||
client_id = "Ov23liKpXqs0aPaVgDpg"
|
||||
client_secret = var.github_client_secret
|
||||
realm = keycloak_realm.snix.id
|
||||
backchannel_supported = false
|
||||
gui_order = "1"
|
||||
store_token = false
|
||||
sync_mode = "IMPORT"
|
||||
trust_email = true
|
||||
default_scopes = "openid user:email"
|
||||
|
||||
authorization_url = ""
|
||||
token_url = ""
|
||||
}
|
||||
|
||||
resource "keycloak_oidc_identity_provider" "gitlab" {
|
||||
alias = "gitlab"
|
||||
provider_id = "gitlab"
|
||||
client_id = "6ecb359ede53f7d80003d127dc4448bd1b1d73631a01273d9576e00ff9a94d2c"
|
||||
client_secret = var.gitlab_client_secret
|
||||
realm = keycloak_realm.snix.id
|
||||
backchannel_supported = false
|
||||
gui_order = "2"
|
||||
store_token = false
|
||||
sync_mode = "IMPORT"
|
||||
trust_email = true
|
||||
default_scopes = "openid read_user"
|
||||
|
||||
authorization_url = ""
|
||||
token_url = ""
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue