web/admin: show oauth2 token revoked status

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-03 16:04:19 +02:00
parent 77a507d2f8
commit 91f7b289cc
4 changed files with 16 additions and 0 deletions

View File

@ -26683,6 +26683,8 @@ components:
id_token:
type: string
readOnly: true
revoked:
type: boolean
required:
- id_token
- is_expired

View File

@ -34,6 +34,7 @@ export class UserOAuthRefreshList extends Table<RefreshTokenModel> {
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<RefreshTokenModel> {
html`<a href="#/core/providers/${item.provider?.pk}">
${item.provider?.name}
</a>`,
html`${item.revoked ? t`Yes` : t`No`}`,
html`${item.expires?.toLocaleString()}`,
html`${item.scope.join(", ")}`,
html`

View File

@ -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

View File

@ -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 ""