github.com/avenga/couper@v1.12.2/server/testdata/integration/config/07_couper.hcl (about) 1 server "ac" { 2 access_control = ["BA", "JWT", "OAuth2", "OIDC", "SAML"] 3 } 4 5 definitions { 6 basic_auth "BA" { 7 error_handler { 8 response { 9 status = 500 10 } 11 } 12 } 13 14 beta_oauth2 "OAuth2" { 15 grant_type = "authorization_code" 16 authorization_endpoint = "https://authorization.server/oauth/authorize" 17 scope = "openid profile email" 18 token_endpoint = "https://authorization.server/oauth/token" 19 redirect_uri = "http://localhost:8085/oidc/callback" 20 client_id = "foo" 21 client_secret = "5eCr3t" 22 verifier_method = "ccm_s256" 23 verifier_value = "not_used_here" 24 25 error_handler { 26 response { 27 status = 500 28 } 29 } 30 } 31 32 oidc "OIDC" { 33 configuration_url = "{{.asOrigin}}/.well-known/openid-configuration" 34 configuration_ttl = "1h" 35 client_id = "foo" 36 client_secret = "etbinbp4in" 37 redirect_uri = "http://localhost:8080/cb" # value is not checked 38 scope = "profile email" 39 verifier_method = "nonce" 40 verifier_value = request.cookies.nnc 41 42 error_handler { 43 response { 44 status = 500 45 } 46 } 47 } 48 49 jwt "JWT" { 50 header = "Authorization" 51 signature_algorithm = "HS256" 52 key = "y0urS3cretT08eU5edF0rC0uPerInThe3xamp1e" 53 54 error_handler { 55 response { 56 status = 500 57 } 58 } 59 } 60 61 saml "SAML" { 62 idp_metadata_file = "../accesscontrol/testdata/idp-metadata.xml" 63 sp_acs_url = "http://www.examle.org/saml/acs" 64 sp_entity_id = "my-sp-entity-id" 65 66 error_handler { 67 response { 68 status = 500 69 } 70 } 71 } 72 }