@@ -20,12 +20,10 @@ data "auth0_tenant" "tenant" {}
2020locals {
2121 custom_domain = {
2222 " dev" = " auth.dev.online.ntnu.no"
23- " stg" = " auth.stg.online.ntnu.no"
2423 " prd" = " auth.online.ntnu.no"
2524 }[terraform . workspace ]
2625 name_suffix = {
2726 " dev" = " Dev"
28- " stg" = " Staging"
2927 " prd" = " "
3028 }
3129}
@@ -76,20 +74,6 @@ resource "auth0_branding" "branding" {
7674 <h1 class="warning">DEVELOPMENT</h1>
7775 EOT
7876 }
79- " stg" = { " ENV_SPECIFIC" : << EOT
80- <style>
81- .warning {
82- font-family: comic sans ms;
83- color: orangered;
84- font-size: 13vw;
85- }
86- :root {
87- --page-background-color: firebrick;
88- }
89- </style>
90- <h1 class="warning">STAGING</h1>
91- EOT
92- }
9377 " prd" = { " ENV_SPECIFIC" : " " }
9478 }[terraform . workspace ]
9579 )
@@ -153,7 +137,6 @@ resource "auth0_client" "vengeful_vineyard_frontend" {
153137 app_type = " spa"
154138 allowed_logout_urls = {
155139 " dev" = [" http://localhost:3000" ]
156- " stg" = [" https://staging.vinstraff.no" ]
157140 " prd" = [" https://vinstraff.no" ]
158141 }[terraform . workspace ]
159142 callbacks = {
@@ -163,13 +146,6 @@ resource "auth0_client" "vengeful_vineyard_frontend" {
163146 " http://localhost:3000/docs/oauth2-redirect" ,
164147 " http://localhost:8000/docs/oauth2-redirect" ,
165148 ]
166- " stg" = [
167- " https://staging.vinstraff.no" ,
168- " https://staging.vinstraff.no/docs/oauth2-redirect" ,
169- " http://localhost:3000" ,
170- " http://localhost:8000" ,
171- " http://localhost:8000/docs/oauth2-redirect" ,
172- ]
173149 " prd" = [
174150 " https://vinstraff.no" ,
175151 " https://vinstraff.no/docs/oauth2-redirect" ,
@@ -203,7 +179,6 @@ resource "auth0_client" "voting" {
203179 " http://localhost:3000" ,
204180 " http://localhost:8000"
205181 ]
206- " stg" = []
207182 " prd" = [
208183 " https://vedtatt.online.ntnu.no" ,
209184 ]
@@ -213,7 +188,6 @@ resource "auth0_client" "voting" {
213188 " http://localhost:3000" ,
214189 " http://localhost:8000"
215190 ]
216- " stg" = []
217191 " prd" = [
218192 " https://vedtatt.online.ntnu.no" ,
219193 ]
@@ -225,7 +199,6 @@ resource "auth0_client" "voting" {
225199 " http://localhost:3000/docs/oauth2-redirect" ,
226200 " http://localhost:8000/docs/oauth2-redirect" ,
227201 ]
228- " stg" = []
229202 " prd" = [
230203 " https://vedtatt.online.ntnu.no" ,
231204 " http://localhost:3000" ,
@@ -322,12 +295,10 @@ resource "auth0_client" "onlineweb_frontend" {
322295 app_type = " spa"
323296 allowed_logout_urls = {
324297 " dev" = [" http://localhost:8080" ]
325- " stg" = [" https://*-dotkom.vercel.app" , " https://dev.online.ntnu.no" ]
326298 " prd" = [" https://old.online.ntnu.no/auth/login/" , " https://online.ntnu.no" ]
327299 }[terraform . workspace ]
328300 callbacks = {
329301 " dev" = [" http://localhost:8080/authentication/callback" ]
330- " stg" = [" https://*-dotkom.vercel.app/authentication/callback" ]
331302 " prd" = [" https://online.ntnu.no/authentication/callback" ]
332303 }[terraform . workspace ]
333304 grant_types = [" authorization_code" , " implicit" , " refresh_token" ]
@@ -499,14 +470,12 @@ resource "auth0_client" "onlineweb4" {
499470 allowed_clients = []
500471 allowed_logout_urls = {
501472 " dev" = [" http://localhost:8000" , " http://127.0.0.1:8000" ]
502- " stg" = [" https://dev.online.ntnu.no" ]
503473 " prd" = [" https://old.online.ntnu.no" ]
504474 }[terraform . workspace ]
505475 allowed_origins = []
506476 app_type = " regular_web"
507477 callbacks = {
508478 " dev" = [" http://localhost:8000/auth0/callback/" , " http://127.0.0.1:8000/auth0/callback/" ]
509- " stg" = [" https://dev.online.ntnu.no/auth0/callback/" ]
510479 " prd" = [" https://old.online.ntnu.no/auth0/callback/" ]
511480 }[terraform . workspace ]
512481 grant_types = [" authorization_code" , " client_credentials" , " refresh_token" ]
@@ -550,18 +519,15 @@ resource "auth0_client" "monoweb_web" {
550519 # you go here if you decline an (auth) grant, cannot be http
551520 initiate_login_uri = {
552521 " dev" = null
553- " stg" = " https://staging.online.ntnu.no/api/auth/callback/auth0"
554522 " prd" = " https://online.ntnu.no/api/auth/callback/auth0"
555523 }[terraform . workspace ]
556524 callbacks = {
557525 " dev" = [" http://localhost:3000/api/auth/callback/auth0" ]
558- " stg" = [" https://staging.online.ntnu.no/api/auth/callback/auth0" , " https://web-*-dotkom.vercel.app/api/auth/callback/auth0" ]
559526 " prd" = [" https://online.ntnu.no/api/auth/callback/auth0" ]
560527 }[terraform . workspace ]
561528 allowed_logout_urls = concat (
562529 {
563530 " dev" = [" http://localhost:3000" ]
564- " stg" = [" https://staging.online.ntnu.no" ]
565531 " prd" = [" https://online.ntnu.no" ]
566532 }[terraform . workspace ]
567533 )
@@ -602,7 +568,6 @@ resource "auth0_client" "monoweb_dashboard" {
602568 callbacks = concat (
603569 {
604570 " dev" = [" http://localhost:3002/api/auth/callback/auth0" ]
605- " stg" = [" https://dashboard.staging.online.ntnu.no/api/auth/callback/auth0" , " https://web-*-dotkom.vercel.app/api/auth/callback/auth0" ]
606571 " prd" = [
607572 " https://dashboard.online.ntnu.no/api/auth/callback/auth0" ,
608573 " https://online.ntnu.no/api/auth/callback/auth0"
@@ -611,7 +576,6 @@ resource "auth0_client" "monoweb_dashboard" {
611576 allowed_logout_urls = concat (
612577 {
613578 " dev" = [" http://localhost:3002" ]
614- " stg" = [" https://dashboard.staging.online.ntnu.no" ]
615579 " prd" = [" https://dashboard.online.ntnu.no" ]
616580 }[terraform . workspace ]
617581 )
0 commit comments