@adonisjs/auth 10.0.0-next.3 → 10.0.0-next.4
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.
- package/build/{auth_manager-BMz_OJXq.js → auth_manager-CJvMGOzX.js} +1 -1
- package/build/{errors-BQxhZmkE.js → errors-Ns_FO2np.js} +5 -3
- package/build/index.js +3 -3
- package/build/modules/access_tokens_guard/main.js +2 -2
- package/build/modules/basic_auth_guard/main.js +2 -2
- package/build/modules/session_guard/main.js +2 -2
- package/build/providers/auth_provider.js +2 -2
- package/build/src/mixins/lucid.js +1 -1
- package/build/{symbols-Ct253Khf.js → symbols-BwcLqNln.js} +2 -2
- package/package.json +20 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as E_UNAUTHORIZED_ACCESS } from "./errors-
|
|
1
|
+
import { n as E_UNAUTHORIZED_ACCESS } from "./errors-Ns_FO2np.js";
|
|
2
2
|
import { t as debug_default } from "./debug-Ckko95-M.js";
|
|
3
3
|
import { RuntimeException } from "@adonisjs/core/exceptions";
|
|
4
4
|
import { HttpContextFactory } from "@adonisjs/core/factories/http";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
import { Exception } from "@adonisjs/core/exceptions";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var
|
|
4
|
+
var __exportAll = (all, symbols) => {
|
|
5
5
|
let target = {};
|
|
6
6
|
for (var name in all) __defProp(target, name, {
|
|
7
7
|
get: all[name],
|
|
@@ -10,7 +10,7 @@ var __export = (all, symbols) => {
|
|
|
10
10
|
if (symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
11
|
return target;
|
|
12
12
|
};
|
|
13
|
-
var errors_exports = /* @__PURE__ */
|
|
13
|
+
var errors_exports = /* @__PURE__ */ __exportAll({
|
|
14
14
|
E_INVALID_CREDENTIALS: () => E_INVALID_CREDENTIALS,
|
|
15
15
|
E_UNAUTHORIZED_ACCESS: () => E_UNAUTHORIZED_ACCESS
|
|
16
16
|
});
|
|
@@ -30,6 +30,7 @@ const E_UNAUTHORIZED_ACCESS = class extends Exception {
|
|
|
30
30
|
case "html":
|
|
31
31
|
case null:
|
|
32
32
|
ctx.session.flashExcept(["_csrf"]);
|
|
33
|
+
ctx.session.flash("error", message);
|
|
33
34
|
ctx.session.flashErrors({ [error.code]: message });
|
|
34
35
|
ctx.response.redirect(error.redirectTo || "/", true);
|
|
35
36
|
break;
|
|
@@ -109,6 +110,7 @@ const E_INVALID_CREDENTIALS = class extends Exception {
|
|
|
109
110
|
"password",
|
|
110
111
|
"password_confirmation"
|
|
111
112
|
]);
|
|
113
|
+
ctx.session.flash("error", message);
|
|
112
114
|
ctx.session.flashErrors({ [error.code]: message });
|
|
113
115
|
ctx.response.redirect("back", true);
|
|
114
116
|
} else ctx.response.status(error.status).send(message);
|
|
@@ -125,4 +127,4 @@ const E_INVALID_CREDENTIALS = class extends Exception {
|
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
};
|
|
128
|
-
export {
|
|
130
|
+
export { __exportAll as i, E_UNAUTHORIZED_ACCESS as n, errors_exports as r, E_INVALID_CREDENTIALS as t };
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as errors_exports } from "./errors-
|
|
2
|
-
import { t as symbols_exports } from "./symbols-
|
|
1
|
+
import { r as errors_exports } from "./errors-Ns_FO2np.js";
|
|
2
|
+
import { t as symbols_exports } from "./symbols-BwcLqNln.js";
|
|
3
3
|
import "./debug-Ckko95-M.js";
|
|
4
|
-
import { n as AuthenticatorClient, r as Authenticator, t as AuthManager } from "./auth_manager-
|
|
4
|
+
import { n as AuthenticatorClient, r as Authenticator, t as AuthManager } from "./auth_manager-CJvMGOzX.js";
|
|
5
5
|
import { presetAuth } from "@adonisjs/presets/auth";
|
|
6
6
|
import { configProvider } from "@adonisjs/core";
|
|
7
7
|
async function configure(command) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as E_UNAUTHORIZED_ACCESS } from "../../errors-
|
|
2
|
-
import "../../symbols-
|
|
1
|
+
import { n as E_UNAUTHORIZED_ACCESS } from "../../errors-Ns_FO2np.js";
|
|
2
|
+
import "../../symbols-BwcLqNln.js";
|
|
3
3
|
import { RuntimeException } from "@adonisjs/core/exceptions";
|
|
4
4
|
import { inspect } from "node:util";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as E_UNAUTHORIZED_ACCESS } from "../../errors-
|
|
2
|
-
import "../../symbols-
|
|
1
|
+
import { n as E_UNAUTHORIZED_ACCESS } from "../../errors-Ns_FO2np.js";
|
|
2
|
+
import "../../symbols-BwcLqNln.js";
|
|
3
3
|
import { RuntimeException } from "@adonisjs/core/exceptions";
|
|
4
4
|
import { base64 } from "@adonisjs/core/helpers";
|
|
5
5
|
import auth from "basic-auth";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as E_UNAUTHORIZED_ACCESS } from "../../errors-
|
|
2
|
-
import "../../symbols-
|
|
1
|
+
import { n as E_UNAUTHORIZED_ACCESS } from "../../errors-Ns_FO2np.js";
|
|
2
|
+
import "../../symbols-BwcLqNln.js";
|
|
3
3
|
import { RuntimeException } from "@adonisjs/core/exceptions";
|
|
4
4
|
import { inspect } from "node:util";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../errors-
|
|
1
|
+
import "../errors-Ns_FO2np.js";
|
|
2
2
|
import "../debug-Ckko95-M.js";
|
|
3
|
-
import { t as AuthManager } from "../auth_manager-
|
|
3
|
+
import { t as AuthManager } from "../auth_manager-CJvMGOzX.js";
|
|
4
4
|
import { RuntimeException } from "@adonisjs/core/exceptions";
|
|
5
5
|
import { configProvider } from "@adonisjs/core";
|
|
6
6
|
var AuthProvider = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as E_INVALID_CREDENTIALS } from "../../errors-
|
|
1
|
+
import { t as E_INVALID_CREDENTIALS } from "../../errors-Ns_FO2np.js";
|
|
2
2
|
import { RuntimeException } from "@adonisjs/core/exceptions";
|
|
3
3
|
import { beforeSave } from "@adonisjs/lucid/orm";
|
|
4
4
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
var symbols_exports = /* @__PURE__ */
|
|
1
|
+
import { i as __exportAll } from "./errors-Ns_FO2np.js";
|
|
2
|
+
var symbols_exports = /* @__PURE__ */ __exportAll({
|
|
3
3
|
GUARD_KNOWN_EVENTS: () => GUARD_KNOWN_EVENTS,
|
|
4
4
|
PROVIDER_REAL_USER: () => PROVIDER_REAL_USER
|
|
5
5
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/auth",
|
|
3
3
|
"description": "Official authentication provider for Adonis framework",
|
|
4
|
-
"version": "10.0.0-next.
|
|
4
|
+
"version": "10.0.0-next.4",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -51,29 +51,30 @@
|
|
|
51
51
|
"quick:test": "cross-env NODE_DEBUG=\"adonisjs:auth:*\" node --enable-source-maps --import=@poppinss/ts-exec ./bin/test.js"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@adonisjs/assembler": "^8.0.0-next.
|
|
55
|
-
"@adonisjs/core": "^7.0.0-next.
|
|
56
|
-
"@adonisjs/eslint-config": "^3.0.0-next.
|
|
54
|
+
"@adonisjs/assembler": "^8.0.0-next.30",
|
|
55
|
+
"@adonisjs/core": "^7.0.0-next.25",
|
|
56
|
+
"@adonisjs/eslint-config": "^3.0.0-next.9",
|
|
57
57
|
"@adonisjs/i18n": "^3.0.0-next.2",
|
|
58
|
-
"@adonisjs/lucid": "^22.0.0-next.
|
|
58
|
+
"@adonisjs/lucid": "^22.0.0-next.7",
|
|
59
59
|
"@adonisjs/prettier-config": "^1.4.5",
|
|
60
|
-
"@adonisjs/session": "^8.0.0-next.
|
|
60
|
+
"@adonisjs/session": "^8.0.0-next.2",
|
|
61
61
|
"@adonisjs/tsconfig": "^2.0.0-next.3",
|
|
62
|
-
"@japa/api-client": "^3.
|
|
62
|
+
"@japa/api-client": "^3.2.1",
|
|
63
63
|
"@japa/assert": "^4.2.0",
|
|
64
|
-
"@japa/browser-client": "^2.
|
|
64
|
+
"@japa/browser-client": "^2.3.0",
|
|
65
65
|
"@japa/expect-type": "^2.0.4",
|
|
66
66
|
"@japa/file-system": "^3.0.0",
|
|
67
67
|
"@japa/plugin-adonisjs": "^5.1.0-next.0",
|
|
68
|
-
"@japa/runner": "^5.
|
|
68
|
+
"@japa/runner": "^5.3.0",
|
|
69
69
|
"@japa/snapshot": "^2.0.10",
|
|
70
70
|
"@poppinss/ts-exec": "^1.4.1",
|
|
71
71
|
"@release-it/conventional-changelog": "^10.0.4",
|
|
72
72
|
"@types/basic-auth": "^1.1.8",
|
|
73
73
|
"@types/luxon": "^3.7.1",
|
|
74
|
-
"@types/node": "^25.0.
|
|
74
|
+
"@types/node": "^25.0.9",
|
|
75
75
|
"@types/set-cookie-parser": "^2.4.10",
|
|
76
76
|
"@types/sinon": "^21.0.0",
|
|
77
|
+
"better-sqlite3": "^12.6.2",
|
|
77
78
|
"c8": "^10.1.3",
|
|
78
79
|
"convert-hrtime": "^5.0.0",
|
|
79
80
|
"copyfiles": "^2.4.1",
|
|
@@ -82,22 +83,21 @@
|
|
|
82
83
|
"dotenv": "^17.2.3",
|
|
83
84
|
"eslint": "^9.39.2",
|
|
84
85
|
"luxon": "^3.7.2",
|
|
85
|
-
"mysql2": "^3.16.
|
|
86
|
+
"mysql2": "^3.16.1",
|
|
86
87
|
"nock": "^14.0.10",
|
|
87
|
-
"pg": "^8.
|
|
88
|
+
"pg": "^8.17.2",
|
|
88
89
|
"playwright": "^1.57.0",
|
|
89
|
-
"prettier": "^3.
|
|
90
|
-
"release-it": "^19.
|
|
91
|
-
"set-cookie-parser": "^
|
|
92
|
-
"sinon": "^21.0.
|
|
93
|
-
"
|
|
94
|
-
"tedious": "^19.1.3",
|
|
90
|
+
"prettier": "^3.8.0",
|
|
91
|
+
"release-it": "^19.2.4",
|
|
92
|
+
"set-cookie-parser": "^3.0.1",
|
|
93
|
+
"sinon": "^21.0.1",
|
|
94
|
+
"tedious": "^19.2.0",
|
|
95
95
|
"timekeeper": "^2.3.1",
|
|
96
|
-
"tsdown": "^0.
|
|
96
|
+
"tsdown": "^0.19.0",
|
|
97
97
|
"typescript": "^5.9.3"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@adonisjs/presets": "^3.0.0-next.
|
|
100
|
+
"@adonisjs/presets": "^3.0.0-next.1",
|
|
101
101
|
"basic-auth": "^2.0.1"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|