Skip to content

Commit

Permalink
update auth0 to appkom (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrealf authored May 8, 2024
1 parent 78be80a commit ad46795
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions infra/auth0/appkom.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ resource "auth0_client" "appkom_opptak" {
allowed_logout_urls = {
"dev" = ["http://localhost:3000"]
"stg" = []
"prd" = ["https://online-opptak.vercel.app"]
"prd" = [
"https://online-opptak.vercel.app",
"http://localhost:3000",
]
}[terraform.workspace]
allowed_origins = []
app_type = "spa"
callbacks = {
"dev" = ["http://localhost:3000/api/auth/callback/auth0"]
"stg" = []
"prd" = ["https://online-opptak.vercel.app/api/auth/callback/auth0"]
"prd" = [
"https://online-opptak.vercel.app/api/auth/callback/auth0",
"http://localhost:3000/api/auth/callback,
]
}[terraform.workspace]
grant_types = ["authorization_code", "refresh_token"]
name = "Online Komitéopptak${local.name_suffix[terraform.workspace]}"
Expand Down

0 comments on commit ad46795

Please sign in to comment.