-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathoidc-federation.tf
More file actions
33 lines (31 loc) · 1.4 KB
/
oidc-federation.tf
File metadata and controls
33 lines (31 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
resource "authentik_source_oauth" "int-github" {
name = "int-github"
slug = "int-github"
authentication_flow = data.authentik_flow.default-source-authentication.id
enrollment_flow = data.authentik_flow.default-source-enrollment.id
oidc_jwks_url = "https://token.actions.githubusercontent.com/.well-known/jwks"
provider_type = "openidconnect"
consumer_key = "foo"
consumer_secret = "bar"
lifecycle {
ignore_changes = [consumer_key, consumer_secret, access_token_url, authorization_url, profile_url]
}
}
resource "authentik_source_oauth" "int-gitlab" {
name = "int-gitlab"
slug = "int-gitlab"
authentication_flow = data.authentik_flow.default-source-authentication.id
enrollment_flow = data.authentik_flow.default-source-enrollment.id
consumer_key = "foo"
consumer_secret = "bar"
// TODO: This needs to be changed to use in-cluster URLs
access_token_url = "https://code.beryju.org/oauth/token"
authorization_url = "https://code.beryju.org/oauth/authorize"
oidc_jwks_url = "https://code.beryju.org/oauth/discovery/keys"
oidc_well_known_url = "https://code.beryju.org/.well-known/openid-configuration"
profile_url = "https://code.beryju.org/oauth/userinfo"
provider_type = "openidconnect"
lifecycle {
ignore_changes = [consumer_key, consumer_secret]
}
}