Skip to content

Commit aad53da

Browse files
committed
chore: remove voting (Vedtatt) from Terraform
1 parent abbf4ef commit aad53da

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

infra/auth0/main.tf

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -170,59 +170,6 @@ resource "auth0_client" "vengeful_vineyard_frontend" {
170170
}
171171
}
172172

173-
resource "auth0_client" "voting" {
174-
cross_origin_auth = true
175-
cross_origin_loc = "https://vedtatt.online.ntnu.no/"
176-
app_type = "spa"
177-
allowed_origins = {
178-
"dev" = [
179-
"http://localhost:3000",
180-
"http://localhost:8000"
181-
]
182-
"prd" = [
183-
"https://vedtatt.online.ntnu.no",
184-
]
185-
}[terraform.workspace]
186-
web_origins = {
187-
"dev" = [
188-
"http://localhost:3000",
189-
"http://localhost:8000"
190-
]
191-
"prd" = [
192-
"https://vedtatt.online.ntnu.no",
193-
]
194-
}[terraform.workspace]
195-
callbacks = {
196-
"dev" = [
197-
"http://localhost:3000",
198-
"http://localhost:8000",
199-
"http://localhost:3000/docs/oauth2-redirect",
200-
"http://localhost:8000/docs/oauth2-redirect",
201-
]
202-
"prd" = [
203-
"https://vedtatt.online.ntnu.no",
204-
"http://localhost:3000",
205-
"http://localhost:8000",
206-
"http://localhost:3000/docs/oauth2-redirect",
207-
"http://localhost:8000/docs/oauth2-redirect",
208-
]
209-
}[terraform.workspace]
210-
grant_types = ["authorization_code", "refresh_token"]
211-
name = "Vedtatt Klone${local.name_suffix[terraform.workspace]}"
212-
organization_require_behavior = "no_prompt"
213-
is_first_party = true
214-
oidc_conformant = true
215-
216-
refresh_token {
217-
rotation_type = "rotating"
218-
expiration_type = "expiring"
219-
}
220-
221-
jwt_configuration {
222-
alg = "RS256"
223-
}
224-
}
225-
226173
data "auth0_client" "vengeful_vineyard_frontend" {
227174
client_id = auth0_client.vengeful_vineyard_frontend.client_id
228175
}
@@ -309,7 +256,6 @@ resource "auth0_connection_clients" "username_password_authentication" {
309256
auth0_client.appkom_events_app.client_id,
310257
auth0_client.appkom_autobank.client_id,
311258
auth0_client.appkom_veldedighet.client_id,
312-
auth0_client.voting.client_id,
313259
auth0_client.feide_account_linker.id
314260
]
315261
}
@@ -325,7 +271,6 @@ resource "auth0_connection_clients" "feide" {
325271
auth0_client.appkom_events_app.client_id,
326272
auth0_client.appkom_autobank.client_id,
327273
auth0_client.appkom_veldedighet.client_id,
328-
auth0_client.voting.client_id
329274
]
330275
}
331276

0 commit comments

Comments
 (0)