From 4216577565a46c91141ed04a19fe75488fd5f0c5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 11 Apr 2021 18:24:27 +0200 Subject: [PATCH] web/elements: make provider clickable for user's oauth codes Signed-off-by: Jens Langhammer --- web/src/elements/oauth/UserCodeList.ts | 4 ++- web/src/elements/oauth/UserRefreshList.ts | 4 ++- web/src/locales/en.po | 34 +++++++++++------------ web/src/locales/pseudo-LOCALE.po | 34 +++++++++++------------ 4 files changed, 40 insertions(+), 36 deletions(-) diff --git a/web/src/elements/oauth/UserCodeList.ts b/web/src/elements/oauth/UserCodeList.ts index 3bbc89496..a7a5b1aa9 100644 --- a/web/src/elements/oauth/UserCodeList.ts +++ b/web/src/elements/oauth/UserCodeList.ts @@ -35,7 +35,9 @@ export class UserOAuthCodeList extends Table { row(item: ExpiringBaseGrantModel): TemplateResult[] { return [ - html`${item.provider.name}`, + html` + ${item.provider?.name} + `, html`${item.expires?.toLocaleString()}`, html`${item.scope.join(", ")}`, html` diff --git a/web/src/elements/oauth/UserRefreshList.ts b/web/src/elements/oauth/UserRefreshList.ts index 8a0154aa5..5cb6ef1f7 100644 --- a/web/src/elements/oauth/UserRefreshList.ts +++ b/web/src/elements/oauth/UserRefreshList.ts @@ -35,7 +35,9 @@ export class UserOAuthRefreshList extends Table { row(item: ExpiringBaseGrantModel): TemplateResult[] { return [ - html`${item.provider.name}`, + html` + ${item.provider?.name} + `, html`${item.expires?.toLocaleString()}`, html`${item.scope.join(", ")}`, html` diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 933cfe005..fc4186093 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -283,7 +283,7 @@ msgstr "Authenticator" msgid "Authorization" msgstr "Authorization" -#: src/elements/oauth/UserCodeList.ts:44 +#: src/elements/oauth/UserCodeList.ts:46 msgid "Authorization Code" msgstr "Authorization Code" @@ -461,7 +461,7 @@ msgstr "Change password" msgid "Change your password" msgstr "Change your password" -#: src/pages/applications/ApplicationViewPage.ts:118 +#: src/pages/applications/ApplicationViewPage.ts:119 #: src/pages/flows/FlowViewPage.ts:110 #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts:136 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:135 @@ -883,7 +883,7 @@ msgstr "Define how notifications are sent to users, like Email or Webhook." msgid "Delete" msgstr "Delete" -#: src/elements/oauth/UserCodeList.ts:51 +#: src/elements/oauth/UserCodeList.ts:53 msgid "Delete Authorization Code" msgstr "Delete Authorization Code" @@ -896,7 +896,7 @@ msgstr "Delete Binding" msgid "Delete Consent" msgstr "Delete Consent" -#: src/elements/oauth/UserRefreshList.ts:51 +#: src/elements/oauth/UserRefreshList.ts:53 msgid "Delete Refresh Code" msgstr "Delete Refresh Code" @@ -1008,8 +1008,8 @@ msgid "Each provider has a different issuer, based on the application slug." msgstr "Each provider has a different issuer, based on the application slug." #: src/pages/applications/ApplicationListPage.ts:94 -#: src/pages/applications/ApplicationViewPage.ts:94 -#: src/pages/applications/ApplicationViewPage.ts:108 +#: src/pages/applications/ApplicationViewPage.ts:95 +#: src/pages/applications/ApplicationViewPage.ts:109 #: src/pages/crypto/CertificateKeyPairListPage.ts:74 #: src/pages/events/RuleListPage.ts:70 #: src/pages/events/TransportListPage.ts:74 @@ -1669,7 +1669,7 @@ msgstr "Library" #: src/flows/stages/identification/IdentificationStage.ts:134 #: src/flows/stages/password/PasswordStage.ts:31 #: src/flows/stages/prompt/PromptStage.ts:126 -#: src/pages/applications/ApplicationViewPage.ts:59 +#: src/pages/applications/ApplicationViewPage.ts:60 #: src/pages/user-settings/UserDetailsPage.ts:38 #: src/utils.ts:40 msgid "Loading" @@ -1749,7 +1749,7 @@ msgid "Logins" msgstr "Logins" #: src/pages/admin-overview/AdminOverviewPage.ts:39 -#: src/pages/applications/ApplicationViewPage.ts:67 +#: src/pages/applications/ApplicationViewPage.ts:68 msgid "Logins over the last 24 hours" msgstr "Logins over the last 24 hours" @@ -2084,7 +2084,7 @@ msgid "Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3) msgstr "Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3)." #: src/elements/events/ObjectChangelog.ts:50 -#: src/pages/events/EventListPage.ts:57 +#: src/pages/events/EventListPage.ts:60 msgid "On behalf of {0}" msgstr "On behalf of {0}" @@ -2175,7 +2175,7 @@ msgid "Outposts are deployments of authentik components to support different env msgstr "Outposts are deployments of authentik components to support different environments and protocols, like reverse proxies." #: src/interfaces/AdminInterface.ts:17 -#: src/pages/applications/ApplicationViewPage.ts:64 +#: src/pages/applications/ApplicationViewPage.ts:65 #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts:65 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:56 #: src/pages/providers/saml/SAMLProviderViewPage.ts:58 @@ -2255,7 +2255,7 @@ msgstr "Policy" msgid "Policy / User / Group" msgstr "Policy / User / Group" -#: src/pages/applications/ApplicationViewPage.ts:129 +#: src/pages/applications/ApplicationViewPage.ts:130 #: src/pages/flows/FlowViewPage.ts:101 #: src/pages/sources/oauth/OAuthSourceViewPage.ts:143 #: src/pages/sources/saml/SAMLSourceViewPage.ts:150 @@ -2374,7 +2374,7 @@ msgstr "Provide support for protocols like SAML and OAuth to assigned applicatio #: src/elements/oauth/UserRefreshList.ts:29 #: src/pages/applications/ApplicationForm.ts:100 #: src/pages/applications/ApplicationListPage.ts:59 -#: src/pages/applications/ApplicationViewPage.ts:81 +#: src/pages/applications/ApplicationViewPage.ts:82 #: src/pages/providers/ProviderListPage.ts:34 msgid "Provider" msgstr "Provider" @@ -2476,7 +2476,7 @@ msgstr "Redirect binding" msgid "Refresh" msgstr "Refresh" -#: src/elements/oauth/UserRefreshList.ts:44 +#: src/elements/oauth/UserRefreshList.ts:46 msgid "Refresh Code" msgstr "Refresh Code" @@ -2488,7 +2488,7 @@ msgstr "Register device" msgid "Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression." msgstr "Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression." -#: src/pages/applications/ApplicationViewPage.ts:75 +#: src/pages/applications/ApplicationViewPage.ts:76 #: src/pages/flows/FlowViewPage.ts:64 msgid "Related" msgstr "Related" @@ -3287,7 +3287,7 @@ msgstr "" msgid "These policies control when this stage will be applied to the flow." msgstr "These policies control when this stage will be applied to the flow." -#: src/pages/applications/ApplicationViewPage.ts:131 +#: src/pages/applications/ApplicationViewPage.ts:132 msgid "These policies control which users can access this application." msgstr "These policies control which users can access this application." @@ -3440,7 +3440,7 @@ msgid "Up-to-date!" msgstr "Up-to-date!" #: src/pages/applications/ApplicationListPage.ts:86 -#: src/pages/applications/ApplicationViewPage.ts:100 +#: src/pages/applications/ApplicationViewPage.ts:101 #: src/pages/crypto/CertificateKeyPairListPage.ts:66 #: src/pages/events/RuleListPage.ts:62 #: src/pages/events/TransportListPage.ts:66 @@ -3478,7 +3478,7 @@ msgid "Update" msgstr "Update" #: src/pages/applications/ApplicationListPage.ts:89 -#: src/pages/applications/ApplicationViewPage.ts:103 +#: src/pages/applications/ApplicationViewPage.ts:104 msgid "Update Application" msgstr "Update Application" diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index 17d70a677..164dac6e9 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -279,7 +279,7 @@ msgstr "" msgid "Authorization" msgstr "" -#: src/elements/oauth/UserCodeList.ts:44 +#: src/elements/oauth/UserCodeList.ts:46 msgid "Authorization Code" msgstr "" @@ -457,7 +457,7 @@ msgstr "" msgid "Change your password" msgstr "" -#: src/pages/applications/ApplicationViewPage.ts:118 +#: src/pages/applications/ApplicationViewPage.ts:119 #: src/pages/flows/FlowViewPage.ts:110 #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts:136 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:135 @@ -877,7 +877,7 @@ msgstr "" msgid "Delete" msgstr "" -#: src/elements/oauth/UserCodeList.ts:51 +#: src/elements/oauth/UserCodeList.ts:53 msgid "Delete Authorization Code" msgstr "" @@ -890,7 +890,7 @@ msgstr "" msgid "Delete Consent" msgstr "" -#: src/elements/oauth/UserRefreshList.ts:51 +#: src/elements/oauth/UserRefreshList.ts:53 msgid "Delete Refresh Code" msgstr "" @@ -1000,8 +1000,8 @@ msgid "Each provider has a different issuer, based on the application slug." msgstr "" #: src/pages/applications/ApplicationListPage.ts:94 -#: src/pages/applications/ApplicationViewPage.ts:94 -#: src/pages/applications/ApplicationViewPage.ts:108 +#: src/pages/applications/ApplicationViewPage.ts:95 +#: src/pages/applications/ApplicationViewPage.ts:109 #: src/pages/crypto/CertificateKeyPairListPage.ts:74 #: src/pages/events/RuleListPage.ts:70 #: src/pages/events/TransportListPage.ts:74 @@ -1661,7 +1661,7 @@ msgstr "" #: src/flows/stages/identification/IdentificationStage.ts:134 #: src/flows/stages/password/PasswordStage.ts:31 #: src/flows/stages/prompt/PromptStage.ts:126 -#: src/pages/applications/ApplicationViewPage.ts:59 +#: src/pages/applications/ApplicationViewPage.ts:60 #: src/pages/user-settings/UserDetailsPage.ts:38 #: src/utils.ts:40 msgid "Loading" @@ -1741,7 +1741,7 @@ msgid "Logins" msgstr "" #: src/pages/admin-overview/AdminOverviewPage.ts:39 -#: src/pages/applications/ApplicationViewPage.ts:67 +#: src/pages/applications/ApplicationViewPage.ts:68 msgid "Logins over the last 24 hours" msgstr "" @@ -2076,7 +2076,7 @@ msgid "Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3) msgstr "" #: src/elements/events/ObjectChangelog.ts:50 -#: src/pages/events/EventListPage.ts:57 +#: src/pages/events/EventListPage.ts:60 msgid "On behalf of {0}" msgstr "" @@ -2167,7 +2167,7 @@ msgid "Outposts are deployments of authentik components to support different env msgstr "" #: src/interfaces/AdminInterface.ts:17 -#: src/pages/applications/ApplicationViewPage.ts:64 +#: src/pages/applications/ApplicationViewPage.ts:65 #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts:65 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:56 #: src/pages/providers/saml/SAMLProviderViewPage.ts:58 @@ -2247,7 +2247,7 @@ msgstr "" msgid "Policy / User / Group" msgstr "" -#: src/pages/applications/ApplicationViewPage.ts:129 +#: src/pages/applications/ApplicationViewPage.ts:130 #: src/pages/flows/FlowViewPage.ts:101 #: src/pages/sources/oauth/OAuthSourceViewPage.ts:143 #: src/pages/sources/saml/SAMLSourceViewPage.ts:150 @@ -2366,7 +2366,7 @@ msgstr "" #: src/elements/oauth/UserRefreshList.ts:29 #: src/pages/applications/ApplicationForm.ts:100 #: src/pages/applications/ApplicationListPage.ts:59 -#: src/pages/applications/ApplicationViewPage.ts:81 +#: src/pages/applications/ApplicationViewPage.ts:82 #: src/pages/providers/ProviderListPage.ts:34 msgid "Provider" msgstr "" @@ -2468,7 +2468,7 @@ msgstr "" msgid "Refresh" msgstr "" -#: src/elements/oauth/UserRefreshList.ts:44 +#: src/elements/oauth/UserRefreshList.ts:46 msgid "Refresh Code" msgstr "" @@ -2480,7 +2480,7 @@ msgstr "" msgid "Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression." msgstr "" -#: src/pages/applications/ApplicationViewPage.ts:75 +#: src/pages/applications/ApplicationViewPage.ts:76 #: src/pages/flows/FlowViewPage.ts:64 msgid "Related" msgstr "" @@ -3277,7 +3277,7 @@ msgstr "" msgid "These policies control when this stage will be applied to the flow." msgstr "" -#: src/pages/applications/ApplicationViewPage.ts:131 +#: src/pages/applications/ApplicationViewPage.ts:132 msgid "These policies control which users can access this application." msgstr "" @@ -3430,7 +3430,7 @@ msgid "Up-to-date!" msgstr "" #: src/pages/applications/ApplicationListPage.ts:86 -#: src/pages/applications/ApplicationViewPage.ts:100 +#: src/pages/applications/ApplicationViewPage.ts:101 #: src/pages/crypto/CertificateKeyPairListPage.ts:66 #: src/pages/events/RuleListPage.ts:62 #: src/pages/events/TransportListPage.ts:66 @@ -3468,7 +3468,7 @@ msgid "Update" msgstr "" #: src/pages/applications/ApplicationListPage.ts:89 -#: src/pages/applications/ApplicationViewPage.ts:103 +#: src/pages/applications/ApplicationViewPage.ts:104 msgid "Update Application" msgstr ""