@@ -14,14 +14,8 @@ export const masHomeserver: Fixtures = {
14
14
mas : [
15
15
async ( { _homeserver : homeserver , logger, network, postgres, mailpit } , use ) => {
16
16
const config = {
17
- clients : [
18
- {
19
- client_id : "0000000000000000000SYNAPSE" ,
20
- client_auth_method : "client_secret_basic" ,
21
- client_secret : "SomeRandomSecret" ,
22
- } ,
23
- ] ,
24
17
matrix : {
18
+ kind : "synapse" ,
25
19
homeserver : "localhost" ,
26
20
secret : "AnotherRandomSecret" ,
27
21
endpoint : "http://homeserver:8008" ,
@@ -40,16 +34,10 @@ export const masHomeserver: Fixtures = {
40
34
enable_registration_without_verification : undefined ,
41
35
disable_msisdn_registration : undefined ,
42
36
password_config : undefined ,
43
- experimental_features : {
44
- msc3861 : {
45
- enabled : true ,
46
- issuer : `http://mas:8080/` ,
47
- introspection_endpoint : "http://mas:8080/oauth2/introspect" ,
48
- client_id : config . clients [ 0 ] . client_id ,
49
- client_auth_method : config . clients [ 0 ] . client_auth_method ,
50
- client_secret : config . clients [ 0 ] . client_secret ,
51
- admin_token : config . matrix . secret ,
52
- } ,
37
+ matrix_authentication_service : {
38
+ enabled : true ,
39
+ endpoint : "http://mas:8080/" ,
40
+ secret : config . matrix . secret ,
53
41
} ,
54
42
} ) ;
55
43
@@ -59,28 +47,6 @@ export const masHomeserver: Fixtures = {
59
47
{ scope : "worker" } ,
60
48
] ,
61
49
62
- config : async ( { homeserver, context, mas } , use ) => {
63
- const issuer = `${ mas . baseUrl } /` ;
64
- const wellKnown = {
65
- "m.homeserver" : {
66
- base_url : homeserver . baseUrl ,
67
- } ,
68
- "org.matrix.msc2965.authentication" : {
69
- issuer,
70
- account : `${ issuer } account` ,
71
- } ,
72
- } ;
73
-
74
- // Ensure org.matrix.msc2965.authentication is in well-known
75
- await context . route ( "https://localhost/.well-known/matrix/client" , async ( route ) => {
76
- await route . fulfill ( { json : wellKnown } ) ;
77
- } ) ;
78
-
79
- await use ( {
80
- default_server_config : wellKnown ,
81
- } ) ;
82
- } ,
83
-
84
50
context : async ( { homeserverType, context } , use , testInfo ) => {
85
51
testInfo . skip ( homeserverType !== "synapse" , "does not yet support MAS" ) ;
86
52
await use ( context ) ;
0 commit comments