@frigear-nu/oauth-server 0.0.10 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,94 @@
9
9
  "label": "OAuth-applikationer",
10
10
  "description": "Administrer de applikationer, brugere kan logge ind på."
11
11
  }
12
+ },
13
+ "admin": {
14
+ "title": "OAuth-applikationer",
15
+ "description": "De applikationer, brugere kan logge ind på med deres konto.",
16
+ "new": "Tilføj applikation",
17
+ "forbiddenTitle": "Du har ikke adgang til at administrere OAuth-applikationer",
18
+ "forbiddenDescription": "Bed en administrator om adgang.",
19
+ "application": "Applikation",
20
+ "access": "Adgang",
21
+ "signedIn": "Logget ind",
22
+ "disabled": "Deaktiveret",
23
+ "callback": "Callback",
24
+ "everyone": "Alle indloggede brugere",
25
+ "emptyTitle": "Ingen applikationer endnu",
26
+ "emptyDescription": "Tilføj en applikation, så brugere kan logge ind på den med deres konto.",
27
+ "edit": "Rediger applikation",
28
+ "copyClientId": "Kopiér klient-id",
29
+ "enable": "Aktivér applikation",
30
+ "disable": "Deaktivér applikation",
31
+ "newSecret": "Ny klienthemmelighed",
32
+ "signOutEveryone": "Log alle ud",
33
+ "delete": "Slet applikation",
34
+ "rotateTitle": "Skift klienthemmeligheden for {name}?",
35
+ "rotateDescription": "Den gamle hemmelighed holder op med at virke, og alle logges ud af applikationen.",
36
+ "signOutTitle": "Log alle ud af {name}?",
37
+ "signOutDescription": "Deres sessioner i applikationen afsluttes. De kan logge ind igen.",
38
+ "deleteTitle": "Slet {name}?",
39
+ "deleteDescription": "Brugere kan ikke længere logge ind på den, og alle aktive logins afsluttes. Dette kan ikke fortrydes.",
40
+ "created": "Applikationen er oprettet",
41
+ "updated": "Applikationen er opdateret",
42
+ "deleted": "Applikationen er slettet",
43
+ "enabled": "Applikationen er aktiveret",
44
+ "disabledToast": "Applikationen er deaktiveret",
45
+ "secretReplaced": "Klienthemmeligheden er skiftet",
46
+ "signedOut": "Alle er logget ud"
47
+ },
48
+ "form": {
49
+ "createTitle": "Tilføj applikation",
50
+ "editTitle": "Rediger applikation",
51
+ "createDescription": "Registrér en applikation, som brugere kan logge ind på.",
52
+ "editDescription": "Ændr hvordan applikationen er registreret.",
53
+ "create": "Tilføj applikation",
54
+ "save": "Gem applikation",
55
+ "name": "Navn",
56
+ "nameRequired": "Angiv et navn.",
57
+ "websiteUrl": "Website-URL",
58
+ "websiteUrlHint": "Applikationens oprindelse uden sti. Callback er website-URL'en plus den konfigurerede callback-sti.",
59
+ "websiteUrlInvalid": "Angiv en hel URL, for eksempel https://app.example.com.",
60
+ "loginUrl": "Login-URL",
61
+ "loginUrlHint": "Hvor knappen Åbn fører hen. Som standard website-URL'en.",
62
+ "previewUrlPattern": "Mønster for preview-URL",
63
+ "previewUrlPatternHint": "Valgfrit, fx https://*.vercel.app, til preview-udgivelser.",
64
+ "allowedRoles": "Tilladte roller",
65
+ "allowedRolesHint": "Lad feltet stå tomt for at give alle indloggede brugere adgang.",
66
+ "tags": "Tags",
67
+ "description": "Beskrivelse",
68
+ "icon": "Ikon",
69
+ "priority": "Prioritet"
70
+ },
71
+ "credentials": {
72
+ "title": "Legitimationsoplysninger for {name}",
73
+ "description": "Kopiér klienthemmeligheden nu. Den vises kun én gang.",
74
+ "clientId": "Klient-id",
75
+ "clientSecret": "Klienthemmelighed",
76
+ "copy": "Kopiér",
77
+ "copiedClientId": "Klient-id kopieret",
78
+ "copiedClientSecret": "Klienthemmelighed kopieret"
79
+ },
80
+ "applications": {
81
+ "open": "Åbn",
82
+ "openApplication": "Åbn {name}",
83
+ "emptyTitle": "Ingen applikationer endnu",
84
+ "emptyDescription": "Der er endnu ingen applikationer, du kan logge ind på."
85
+ },
86
+ "authorize": {
87
+ "title": "Log ind på {name}",
88
+ "signedInAs": "Logget ind som {name} ({email}).",
89
+ "wants": "{name} vil gerne:",
90
+ "deny": "Afvis",
91
+ "allow": "Tillad",
92
+ "invalidTitle": "Denne loginanmodning kan ikke gennemføres",
93
+ "invalidDescription": "Anmodningen er ugyldig.",
94
+ "failed": "Login kunne ikke gennemføres. Prøv igen.",
95
+ "scope": {
96
+ "openid": "Bekræfte din identitet",
97
+ "profile": "Dit navn og profilbillede",
98
+ "email": "Din e-mailadresse"
99
+ }
12
100
  }
13
101
  }
14
102
  }
@@ -9,6 +9,94 @@
9
9
  "label": "OAuth applications",
10
10
  "description": "Manage the applications users can sign in to."
11
11
  }
12
+ },
13
+ "admin": {
14
+ "title": "OAuth applications",
15
+ "description": "The applications users can sign in to with their account.",
16
+ "new": "Add application",
17
+ "forbiddenTitle": "You are not allowed to manage OAuth applications",
18
+ "forbiddenDescription": "Ask an administrator for access.",
19
+ "application": "Application",
20
+ "access": "Access",
21
+ "signedIn": "Signed in",
22
+ "disabled": "Disabled",
23
+ "callback": "Callback",
24
+ "everyone": "Every signed-in user",
25
+ "emptyTitle": "No applications yet",
26
+ "emptyDescription": "Add an application to let users sign in to it with their account.",
27
+ "edit": "Edit application",
28
+ "copyClientId": "Copy client ID",
29
+ "enable": "Enable application",
30
+ "disable": "Disable application",
31
+ "newSecret": "New client secret",
32
+ "signOutEveryone": "Sign everyone out",
33
+ "delete": "Delete application",
34
+ "rotateTitle": "Replace the client secret of {name}?",
35
+ "rotateDescription": "The old secret stops working and everyone is signed out of the application.",
36
+ "signOutTitle": "Sign everyone out of {name}?",
37
+ "signOutDescription": "Their sessions in the application end. They can sign in again.",
38
+ "deleteTitle": "Delete {name}?",
39
+ "deleteDescription": "Users can no longer sign in to it and every active sign-in ends. This cannot be undone.",
40
+ "created": "Application created",
41
+ "updated": "Application updated",
42
+ "deleted": "Application deleted",
43
+ "enabled": "Application enabled",
44
+ "disabledToast": "Application disabled",
45
+ "secretReplaced": "Client secret replaced",
46
+ "signedOut": "Everyone signed out"
47
+ },
48
+ "form": {
49
+ "createTitle": "Add application",
50
+ "editTitle": "Edit application",
51
+ "createDescription": "Register an application that users can sign in to.",
52
+ "editDescription": "Change how the application is registered.",
53
+ "create": "Add application",
54
+ "save": "Save application",
55
+ "name": "Name",
56
+ "nameRequired": "Enter a name.",
57
+ "websiteUrl": "Website URL",
58
+ "websiteUrlHint": "The origin of the application, without a path. The callback is the website URL plus the configured callback path.",
59
+ "websiteUrlInvalid": "Enter a full URL, for example https://app.example.com.",
60
+ "loginUrl": "Login URL",
61
+ "loginUrlHint": "Where the Open button goes. Defaults to the website URL.",
62
+ "previewUrlPattern": "Preview URL pattern",
63
+ "previewUrlPatternHint": "Optional, e.g. https://*.vercel.app, for preview deployments.",
64
+ "allowedRoles": "Allowed roles",
65
+ "allowedRolesHint": "Leave empty to allow every signed-in user.",
66
+ "tags": "Tags",
67
+ "description": "Description",
68
+ "icon": "Icon",
69
+ "priority": "Priority"
70
+ },
71
+ "credentials": {
72
+ "title": "Credentials for {name}",
73
+ "description": "Copy the client secret now. It is only shown once.",
74
+ "clientId": "Client ID",
75
+ "clientSecret": "Client secret",
76
+ "copy": "Copy",
77
+ "copiedClientId": "Client ID copied",
78
+ "copiedClientSecret": "Client secret copied"
79
+ },
80
+ "applications": {
81
+ "open": "Open",
82
+ "openApplication": "Open {name}",
83
+ "emptyTitle": "No applications yet",
84
+ "emptyDescription": "There are no applications you can sign in to yet."
85
+ },
86
+ "authorize": {
87
+ "title": "Sign in to {name}",
88
+ "signedInAs": "Signed in as {name} ({email}).",
89
+ "wants": "{name} wants to:",
90
+ "deny": "Deny",
91
+ "allow": "Allow",
92
+ "invalidTitle": "This sign-in request cannot be completed",
93
+ "invalidDescription": "The request is invalid.",
94
+ "failed": "Could not complete the sign-in. Please try again.",
95
+ "scope": {
96
+ "openid": "Verify your identity",
97
+ "profile": "Your name and profile picture",
98
+ "email": "Your email address"
99
+ }
12
100
  }
13
101
  }
14
102
  }
@@ -2,7 +2,7 @@ import { defineMenuItem, defineMenuSource, extendMenuItem } from "@frigear-nu/me
2
2
  export default defineMenuSource(() => {
3
3
  const config = useRuntimeConfig().public.oauthServer;
4
4
  if (config?.pages?.applications) {
5
- const item = defineMenuItem({
5
+ extendMenuItem("account", defineMenuItem({
6
6
  id: "oauth-applications",
7
7
  label: "Applications",
8
8
  labelKey: "oauthServer.menu.applications.label",
@@ -11,23 +11,10 @@ export default defineMenuSource(() => {
11
11
  icon: "i-lucide-layout-grid",
12
12
  to: config.pages.applications,
13
13
  order: 50
14
- });
15
- extendMenuItem("account", item);
16
- extendMenuItem("dashboard.account", item);
14
+ }));
17
15
  }
18
16
  if (config?.pages?.admin) {
19
- extendMenuItem("dashboard.account", defineMenuItem({
20
- id: "oauth-admin",
21
- label: "OAuth applications",
22
- labelKey: "oauthServer.menu.admin.label",
23
- description: "Manage the applications users can sign in to.",
24
- descriptionKey: "oauthServer.menu.admin.description",
25
- icon: "i-lucide-key-round",
26
- to: config.pages.admin,
27
- order: 90,
28
- tags: ["admin"]
29
- }));
30
- extendMenuItem("admin.nav", defineMenuItem({
17
+ extendMenuItem("admin.nav.settings", defineMenuItem({
31
18
  id: "oauth-admin",
32
19
  label: "OAuth applications",
33
20
  labelKey: "oauthServer.menu.admin.label",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frigear-nu/oauth-server",
3
- "version": "0.0.10",
3
+ "version": "0.1.1",
4
4
  "description": "OAuth 2.0 / OpenID Connect server for the frigear ecosystem: register applications that users with certain roles may sign in to.",
5
5
  "url": "https://docs.frigear.dev/modules/oauth-server",
6
6
  "author": {
@@ -37,14 +37,14 @@
37
37
  "playground"
38
38
  ],
39
39
  "dependencies": {
40
- "@frigear-nu/admin": "0.0.4",
41
- "@frigear-nu/module-kit": "1.0.1",
42
- "@frigear-nu/ui": "0.0.9",
43
- "@frigear-nu/auth": "0.0.5",
44
- "@frigear-nu/mcp": "0.0.5",
45
- "@frigear-nu/users": "1.0.11",
40
+ "@frigear-nu/admin": "0.1.1",
41
+ "@frigear-nu/module-kit": "1.1.1",
42
+ "@frigear-nu/ui": "0.1.1",
43
+ "@frigear-nu/auth": "0.1.2",
44
+ "@frigear-nu/mcp": "0.1.1",
45
+ "@frigear-nu/users": "1.1.2",
46
46
  "@libsql/client": "^0.18.0",
47
- "@nuxt/kit": "^4.6.0",
47
+ "@nuxt/kit": "^4.6.1",
48
48
  "drizzle-kit": "^0.31.11",
49
49
  "drizzle-orm": "^0.45.3",
50
50
  "h3": "^1.15.11",
@@ -52,8 +52,8 @@
52
52
  "zod": "^4.6.5"
53
53
  },
54
54
  "peerDependencies": {
55
- "@frigear-nu/menu": "0.0.11",
56
- "@nuxt/ui": "^4.10.0",
55
+ "@frigear-nu/menu": "0.1.1",
56
+ "@nuxt/ui": "^4.11.2",
57
57
  "@nuxthub/core": "^0.10.8"
58
58
  },
59
59
  "peerDependenciesMeta": {
@@ -65,20 +65,20 @@
65
65
  }
66
66
  },
67
67
  "devDependencies": {
68
- "@frigear-nu/menu": "0.0.11",
68
+ "@frigear-nu/menu": "0.1.1",
69
69
  "@nuxt/devtools": "^3.4.2",
70
70
  "@nuxt/eslint-config": "^1.17.0",
71
71
  "@nuxt/module-builder": "^1.0.3",
72
- "@nuxt/schema": "^4.6.0",
72
+ "@nuxt/schema": "^4.6.1",
73
73
  "@nuxt/test-utils": "^4.3.2",
74
- "@nuxt/ui": "^4.11.0",
74
+ "@nuxt/ui": "^4.11.2",
75
75
  "@nuxthub/core": "^0.10.8",
76
- "@types/node": "latest",
76
+ "@types/node": "^26.6.5",
77
77
  "changelogen": "^0.6.2",
78
- "eslint": "^10.10.0",
78
+ "eslint": "^10.12.0",
79
79
  "nuxt": "^4.6.1",
80
80
  "typescript": "^6.0.3",
81
- "vitest": "^5.0.1",
81
+ "vitest": "^5.0.2",
82
82
  "vue-tsc": "^3.3.11"
83
83
  },
84
84
  "scripts": {