Implement cli and web token revoking

This commit is contained in:
Johannes Zellner
2025-01-14 15:52:12 +01:00
parent 99b2140838
commit 467921dbf6
5 changed files with 119 additions and 24 deletions

View File

@@ -83,6 +83,14 @@ const APP_TYPES = {
const PROXY_APP_ID = 'io.cloudron.builtin.appproxy';
// sync up with tokens.js
const TOKEN_TYPES = {
ID_WEBADMIN: 'cid-webadmin', // dashboard
ID_DEVELOPMENT: 'cid-development', // dashboard development
ID_CLI: 'cid-cli', // cloudron cli
ID_SDK: 'cid-sdk', // created by user via dashboard
};
// named exports
export {
APP_TYPES,
@@ -93,6 +101,7 @@ export {
ROLES,
TASK_TYPES,
PROXY_APP_ID,
TOKEN_TYPES,
};
// default export
@@ -105,4 +114,5 @@ export default {
ROLES,
TASK_TYPES,
PROXY_APP_ID,
TOKEN_TYPES,
};