github.com/avenga/couper@v1.12.2/server/testdata/integration/functions/03_couper.hcl (about) 1 server "oidc-functions" { 2 endpoint "/pkce" { 3 response { 4 headers = { 5 x-hv = internal_oauth_hashed_verifier() 6 x-au-pkce = oauth2_authorization_url("ac-pkce") 7 x-au-pkce-rel = oauth2_authorization_url("ac-pkce-relative") 8 } 9 } 10 } 11 12 endpoint "/csrf" { 13 response { 14 headers = { 15 x-hv = internal_oauth_hashed_verifier() 16 x-au-nonce = oauth2_authorization_url("ac-nonce") 17 } 18 } 19 } 20 21 endpoint "/default" { 22 response { 23 headers = { 24 x-hv = internal_oauth_hashed_verifier() 25 x-au-default = oauth2_authorization_url("ac-default") 26 } 27 } 28 } 29 } 30 31 definitions { 32 oidc "ac-pkce" { 33 configuration_url = "{{.asOrigin}}/.well-known/openid-configuration" 34 configuration_ttl = "1h" 35 scope = "profile email" 36 redirect_uri = "http://localhost:8085/oidc/callback" 37 client_id = "foo" 38 client_secret = "5eCr3t" 39 verifier_method = "ccm_s256" 40 verifier_value = "not_used_here" 41 } 42 43 oidc "ac-pkce-relative" { 44 configuration_url = "{{.asOrigin}}/.well-known/openid-configuration" 45 configuration_ttl = "1h" 46 scope = "profile email" 47 redirect_uri = "/oidc/callback" 48 client_id = "foo" 49 client_secret = "5eCr3t" 50 verifier_method = "ccm_s256" 51 verifier_value = "not_used_here" 52 } 53 54 oidc "ac-nonce" { 55 configuration_url = "{{.asOrigin}}/.well-known/openid-configuration" 56 configuration_ttl = "1h" 57 scope = "profile" 58 redirect_uri = "http://localhost:8085/oidc/callback" 59 client_id = "foo" 60 client_secret = "5eCr3t" 61 verifier_method = "nonce" 62 verifier_value = "not_used_here" 63 } 64 65 oidc "ac-default" { 66 configuration_url = "{{.asOrigin}}/.well-known/openid-configuration" 67 configuration_ttl = "1h" 68 scope = "profile email address" 69 redirect_uri = "http://localhost:8085/oidc/callback" 70 client_id = "foo" 71 client_secret = "5eCr3t" 72 verifier_value = "not_used_here" 73 } 74 }