From 91f7b289ccd767d457e121e6be6518b67dcb445a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 3 Jul 2021 16:04:19 +0200 Subject: [PATCH] web/admin: show oauth2 token revoked status Signed-off-by: Jens Langhammer --- schema.yml | 2 ++ web/src/elements/oauth/UserRefreshList.ts | 2 ++ web/src/locales/en.po | 6 ++++++ web/src/locales/pseudo-LOCALE.po | 6 ++++++ 4 files changed, 16 insertions(+) diff --git a/schema.yml b/schema.yml index f7f9273e3..ce774b45a 100644 --- a/schema.yml +++ b/schema.yml @@ -26683,6 +26683,8 @@ components: id_token: type: string readOnly: true + revoked: + type: boolean required: - id_token - is_expired diff --git a/web/src/elements/oauth/UserRefreshList.ts b/web/src/elements/oauth/UserRefreshList.ts index ef58053bf..7356eb6d3 100644 --- a/web/src/elements/oauth/UserRefreshList.ts +++ b/web/src/elements/oauth/UserRefreshList.ts @@ -34,6 +34,7 @@ export class UserOAuthRefreshList extends Table { columns(): TableColumn[] { return [ new TableColumn(t`Provider`, "provider"), + new TableColumn(t`Revoked?`, "revoked"), new TableColumn(t`Expires`, "expires"), new TableColumn(t`Scopes`, "scope"), new TableColumn(""), @@ -62,6 +63,7 @@ export class UserOAuthRefreshList extends Table { html` ${item.provider?.name} `, + html`${item.revoked ? t`Yes` : t`No`}`, html`${item.expires?.toLocaleString()}`, html`${item.scope.join(", ")}`, html` diff --git a/web/src/locales/en.po b/web/src/locales/en.po index a4ff46ed9..8804e8aff 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -2346,6 +2346,7 @@ msgstr "Negates the outcome of the binding. Messages are unaffected." msgid "New version available!" msgstr "New version available!" +#: src/elements/oauth/UserRefreshList.ts #: src/pages/applications/ApplicationCheckAccessForm.ts #: src/pages/crypto/CertificateKeyPairListPage.ts #: src/pages/groups/GroupListPage.ts @@ -3044,6 +3045,10 @@ msgstr "Return home" msgid "Return to device picker" msgstr "Return to device picker" +#: src/elements/oauth/UserRefreshList.ts +msgid "Revoked?" +msgstr "Revoked?" + #: src/pages/property-mappings/PropertyMappingSAMLForm.ts msgid "SAML Attribute Name" msgstr "SAML Attribute Name" @@ -4544,6 +4549,7 @@ msgstr "" msgid "X509 Subject" msgstr "X509 Subject" +#: src/elements/oauth/UserRefreshList.ts #: src/pages/applications/ApplicationCheckAccessForm.ts #: src/pages/crypto/CertificateKeyPairListPage.ts #: src/pages/groups/GroupListPage.ts diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index b5dab2646..ca57e8403 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -2350,6 +2350,7 @@ msgstr "" #: #: #: +#: msgid "No" msgstr "" @@ -3036,6 +3037,10 @@ msgstr "" msgid "Return to device picker" msgstr "" +#: +msgid "Revoked?" +msgstr "" + #: msgid "SAML Attribute Name" msgstr "" @@ -4539,6 +4544,7 @@ msgstr "" #: #: #: +#: msgid "Yes" msgstr ""