diff options
author | David Robertson <davidr@element.io> | 2022-05-22 16:51:17 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-05-22 16:51:17 +0100 |
commit | fd92608b32f6b3c7586f09cb067c8e5e50a857b7 (patch) | |
tree | c31d45b2cc4e63689decb1dd5cfe234e380df703 | |
parent | A batch of linting (diff) | |
download | synapse-fd92608b32f6b3c7586f09cb067c8e5e50a857b7.tar.xz |
More generic example config
-rw-r--r-- | tests/config/test_oidc2.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tests/config/test_oidc2.py b/tests/config/test_oidc2.py index e7927bbed9..04b98909ee 100644 --- a/tests/config/test_oidc2.py +++ b/tests/config/test_oidc2.py @@ -14,12 +14,12 @@ from synapse.config.oidc2 import ( SAMPLE_CONFIG = yaml.safe_load( """ -idp_id: apple -idp_name: Apple -idp_icon: "mxc://matrix.org/blahblahblah" -idp_brand: "apple" -issuer: "https://appleid.apple.com" -client_id: "org.matrix.synapse.sso.service" +idp_id: my_idp +idp_name: My OpenID provider +idp_icon: "mxc://example.com/blahblahblah" +idp_brand: "brandy" +issuer: "https://accountns.exeample.com" +client_id: "provided-by-your-issuer" client_secret_jwt_key: key: DUMMY_PRIVATE_KEY jwt_header: @@ -29,13 +29,17 @@ client_secret_jwt_key: iss: issuer456 client_auth_method: "client_secret_post" scopes: ["name", "email", "openid"] -authorization_endpoint: https://appleid.apple.com/auth/authorize?response_mode=form_post -token_endpoint: https://appleid.apple.com/dummy_url_here +authorization_endpoint: https://example.com/auth/authorize?response_mode=form_post +token_endpoint: https://id.example.com/dummy_url_here +jwks_uri: "https://accounts.example.com/.well-known/jwks.json" user_mapping_provider: config: email_template: "{{ user.email }}" localpart_template: "{{ user.email|localpart_from_email }}" confirm_localpart: true +attribute_requirements: + - attribute: userGroup + value: "synapseUsers" """ ) |