@@ -117,17 +117,6 @@ resource "auth0_connection" "feide" {
117117 }
118118}
119119
120-
121- # resource "auth0_action" "klassetrinn_autoconf" {
122- # name = "Klassetrinn Autoconf"
123- # code = file("js/klassetrinn.js")
124-
125- # supported_triggers {
126- # id = "post_signup"
127- # version = "v3"
128- # }
129- # }
130-
131120resource "auth0_client" "vengeful_vineyard_frontend" {
132121 cross_origin_auth = true # this is set to avoid breaking client. It was set in auth0 dashboard. Unknown motivation.
133122 cross_origin_loc = " https://vinstraff.no/*"
@@ -255,8 +244,7 @@ resource "auth0_connection_clients" "username_password_authentication" {
255244 auth0_client . appkom_opptak . client_id ,
256245 auth0_client . appkom_events_app . client_id ,
257246 auth0_client . appkom_autobank . client_id ,
258- auth0_client . appkom_veldedighet . client_id ,
259- auth0_client . feide_account_linker . id
247+ auth0_client . appkom_veldedighet . client_id
260248 ]
261249}
262250
@@ -674,81 +662,6 @@ resource "auth0_client_grant" "auth0_account_management_api_management_client_ht
674662 ]
675663}
676664
677- resource "auth0_client" "feide_account_linker" {
678- name = " Feide Account Linker"
679- app_type = " non_interactive"
680- logo_uri = " https://nobirkenes.speedadmin.dk/Images/SSO/Feide-btn.png"
681-
682- grant_types = [
683- " client_credentials"
684- ]
685-
686- jwt_configuration {
687- alg = " RS256"
688- lifetime_in_seconds = 10
689- }
690-
691- oidc_conformant = true
692- is_first_party = true
693- }
694-
695- resource "auth0_client_credentials" "feide_account_linker" {
696- client_id = auth0_client. feide_account_linker . client_id
697- authentication_method = " client_secret_post"
698- }
699-
700- resource "auth0_client_grant" "m2m_grant" {
701- client_id = auth0_client. feide_account_linker . client_id
702- audience = " https://${ data . auth0_tenant . tenant . domain } /api/v2/"
703-
704- scopes = [
705- " read:users" ,
706- " update:users"
707- ]
708- }
709-
710- resource "auth0_action" "feide_account_linking" {
711- name = " Feide Account Linking"
712- runtime = " node18"
713- code = file (" js/actions/linkFeideAccounts.js" )
714- deploy = true
715-
716- supported_triggers {
717- id = " post-login"
718- version = " v3"
719- }
720-
721- dependencies {
722- name = " auth0"
723- version = " latest"
724- }
725-
726- secrets {
727- name = " FEIDE_CONNECTION_ID"
728- value = auth0_connection. feide . id
729- }
730-
731- secrets {
732- name = " DOMAIN"
733- value = data. auth0_tenant . tenant . domain
734- }
735-
736- secrets {
737- name = " CLIENT_ID"
738- value = auth0_client. feide_account_linker . client_id
739- }
740-
741- secrets {
742- name = " CLIENT_SECRET"
743- value = auth0_client_credentials. feide_account_linker . client_secret
744- }
745-
746- secrets {
747- name = " PRODUCTION"
748- value = terraform. workspace == " prd" ? " true" : " false"
749- }
750- }
751-
752665resource "auth0_action" "update_membership" {
753666 name = " Membership Update"
754667 runtime = " node18"
@@ -770,12 +683,3 @@ resource "auth0_action" "update_membership" {
770683 value = " rpc.staging.online.ntnu.no"
771684 }
772685}
773-
774- resource "auth0_trigger_actions" "login_flow" {
775- trigger = " post-login"
776-
777- actions {
778- id = auth0_action. feide_account_linking . id
779- display_name = auth0_action. feide_account_linking . name
780- }
781- }
0 commit comments