mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-12-23 05:23:18 +00:00
Add SSO external_ids
to user (#168)
This commit is contained in:
parent
07b1df5855
commit
bf3d13916f
4 changed files with 23 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
This project is built using [react-admin](https://marmelab.com/react-admin/).
|
||||
|
||||
It needs at least Synapse v1.34.0 for all functions to work as expected!
|
||||
It needs at least Synapse v1.38.0 for all functions to work as expected!
|
||||
|
||||
You get your server version with the request `/_synapse/admin/v1/server_version`.
|
||||
See also [Synapse version API](https://matrix-org.github.io/synapse/develop/admin_api/version_api.html).
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import React, { cloneElement, Fragment } from "react";
|
||||
import Avatar from "@material-ui/core/Avatar";
|
||||
import PersonPinIcon from "@material-ui/icons/PersonPin";
|
||||
import AssignmentIndIcon from "@material-ui/icons/AssignmentInd";
|
||||
import ContactMailIcon from "@material-ui/icons/ContactMail";
|
||||
import DevicesIcon from "@material-ui/icons/Devices";
|
||||
import GetAppIcon from "@material-ui/icons/GetApp";
|
||||
|
@ -332,6 +333,23 @@ export const UserEdit = props => {
|
|||
</ArrayInput>
|
||||
</FormTab>
|
||||
|
||||
<FormTab
|
||||
label="synapseadmin.users.tabs.sso"
|
||||
icon={<AssignmentIndIcon />}
|
||||
path="sso"
|
||||
>
|
||||
<ArrayField source="external_ids" label={false}>
|
||||
<Datagrid style={{ width: "100%" }}>
|
||||
<TextField source="auth_provider" sortable={false} />
|
||||
<TextField
|
||||
source="external_id"
|
||||
label="resources.users.fields.id"
|
||||
sortable={false}
|
||||
/>
|
||||
</Datagrid>
|
||||
</ArrayField>
|
||||
</FormTab>
|
||||
|
||||
<FormTab
|
||||
label={translate("resources.devices.name", { smart_count: 2 })}
|
||||
icon={<DevicesIcon />}
|
||||
|
|
|
@ -14,6 +14,7 @@ const de = {
|
|||
users: {
|
||||
invalid_user_id:
|
||||
"Muss eine vollständige Matrix Benutzer-ID sein, z.B. @benutzer_id:homeserver",
|
||||
tabs: { sso: "SSO" },
|
||||
},
|
||||
rooms: {
|
||||
details: "Raumdetails",
|
||||
|
@ -120,6 +121,7 @@ const de = {
|
|||
address: "Adresse",
|
||||
creation_ts_ms: "Zeitpunkt der Erstellung",
|
||||
consent_version: "Zugestimmte Geschäftsbedingungen",
|
||||
auth_provider: "Provider",
|
||||
},
|
||||
helper: {
|
||||
deactivate:
|
||||
|
|
|
@ -14,6 +14,7 @@ const en = {
|
|||
users: {
|
||||
invalid_user_id:
|
||||
"Must be a fully qualified Matrix user-id, e.g. @user_id:homeserver",
|
||||
tabs: { sso: "SSO" },
|
||||
},
|
||||
rooms: {
|
||||
tabs: {
|
||||
|
@ -119,6 +120,7 @@ const en = {
|
|||
address: "Address",
|
||||
creation_ts_ms: "Creation timestamp",
|
||||
consent_version: "Consent version",
|
||||
auth_provider: "Provider",
|
||||
},
|
||||
helper: {
|
||||
deactivate: "You must provide a password to re-activate an account.",
|
||||
|
|
Loading…
Reference in a new issue