From 524a221725660b448fd172951a34f7ed162535fe Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 12 Jun 2022 18:03:26 +0200 Subject: [PATCH] Client - revoke all token for a given client --- .../src/components/User/UserApps/UserApp.vue | 54 ++++++++++++++++--- fittrackee_client/src/locales/en/oauth2.json | 5 +- fittrackee_client/src/locales/fr/oauth2.json | 5 +- .../src/store/modules/oauth2/actions.ts | 17 ++++++ .../src/store/modules/oauth2/enums.ts | 3 ++ .../src/store/modules/oauth2/getters.ts | 2 + .../src/store/modules/oauth2/mutations.ts | 6 +++ .../src/store/modules/oauth2/state.ts | 1 + .../src/store/modules/oauth2/types.ts | 10 ++++ 9 files changed, 94 insertions(+), 9 deletions(-) diff --git a/fittrackee_client/src/components/User/UserApps/UserApp.vue b/fittrackee_client/src/components/User/UserApps/UserApp.vue index 57f980e5..5e60d4e9 100644 --- a/fittrackee_client/src/components/User/UserApps/UserApp.vue +++ b/fittrackee_client/src/components/User/UserApps/UserApp.vue @@ -3,13 +3,22 @@
-
- {{ $t('oauth2.APP_CREATED_SUCCESSFULLY') }} +
+ {{ + $t( + afterCreation + ? 'oauth2.APP_CREATED_SUCCESSFULLY' + : 'oauth2.TOKENS_REVOKED' + ) + }}
{{ $t('oauth2.APP.CLIENT_ID') }}:
@@ -55,7 +64,10 @@
- +