SSO
This commit is contained in:
parent
50af6499b0
commit
ba3593f3a0
5
.env
5
.env
@ -1,5 +0,0 @@
|
|||||||
# This setting allows to fix the homeserver.
|
|
||||||
# If you set this setting, the user will not be able to select
|
|
||||||
# the server and have to use synapse-admin with this server.
|
|
||||||
|
|
||||||
#REACT_APP_SERVER=https://yourmatrixserver.example.com
|
|
@ -15,7 +15,10 @@ const authProvider = {
|
|||||||
device_id: localStorage.getItem("device_id"),
|
device_id: localStorage.getItem("device_id"),
|
||||||
initial_device_display_name: "Synapse Admin",
|
initial_device_display_name: "Synapse Admin",
|
||||||
},
|
},
|
||||||
loginToken
|
process.env.REACT_APP_SSO_TOKEN ? {
|
||||||
|
type: "org.matrix.login.jwt",
|
||||||
|
token: process.env.REACT_APP_SSO_TOKEN,
|
||||||
|
} :(loginToken
|
||||||
? {
|
? {
|
||||||
type: "m.login.token",
|
type: "m.login.token",
|
||||||
token: loginToken,
|
token: loginToken,
|
||||||
@ -24,7 +27,7 @@ const authProvider = {
|
|||||||
type: "m.login.password",
|
type: "m.login.password",
|
||||||
user: username,
|
user: username,
|
||||||
password: password,
|
password: password,
|
||||||
}
|
})
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user