mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Merge pull request #228 from clems4ever/domain-provided
Make sure session.domain is provided in config.yml
This commit is contained in:
commit
f67bb69ee0
|
@ -63,7 +63,7 @@ interface SessionCookieConfiguration {
|
||||||
secret: string;
|
secret: string;
|
||||||
expiration?: number;
|
expiration?: number;
|
||||||
inactivity?: number;
|
inactivity?: number;
|
||||||
domain?: string;
|
domain: string;
|
||||||
redis?: SessionRedisOptions;
|
redis?: SessionRedisOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ describe("test validator", function () {
|
||||||
"data.regulation should have required property 'ban_time'",
|
"data.regulation should have required property 'ban_time'",
|
||||||
"data.regulation should have required property 'find_time'",
|
"data.regulation should have required property 'find_time'",
|
||||||
"data.regulation should have required property 'max_retries'",
|
"data.regulation should have required property 'max_retries'",
|
||||||
|
"data.session should have required property 'domain'",
|
||||||
"data.session should have required property 'secret'",
|
"data.session should have required property 'secret'",
|
||||||
"Storage must be either 'local' or 'mongo'",
|
"Storage must be either 'local' or 'mongo'",
|
||||||
"A notifier needs to be declared when server is used with two-factor"
|
"A notifier needs to be declared when server is used with two-factor"
|
||||||
|
@ -47,7 +48,8 @@ describe("test validator", function () {
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "unsecure_secret"
|
secret: "unsecure_secret",
|
||||||
|
domain: "mydomain"
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
abc: {}
|
abc: {}
|
||||||
|
@ -80,7 +82,8 @@ describe("test validator", function () {
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "unsecure_secret"
|
secret: "unsecure_secret",
|
||||||
|
domain: "mydomain"
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
local: {
|
local: {
|
||||||
|
@ -109,7 +112,8 @@ one second factor enabled sub-domain", function () {
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "unsecure_secret"
|
secret: "unsecure_secret",
|
||||||
|
domain: "mydomain"
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
local: {
|
local: {
|
||||||
|
@ -141,7 +145,8 @@ one second factor enabled sub-domain", function () {
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "unsecure_secret"
|
secret: "unsecure_secret",
|
||||||
|
domain: "mydomain"
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
local: {
|
local: {
|
||||||
|
@ -166,7 +171,8 @@ one second factor enabled sub-domain", function () {
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "unsecure_secret"
|
secret: "unsecure_secret",
|
||||||
|
domain: "mydomain"
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
local: {
|
local: {
|
||||||
|
|
|
@ -58,7 +58,8 @@ export class ServerVariablesMockBuilder {
|
||||||
max_retries: 3
|
max_retries: 3
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "my_secret"
|
secret: "my_secret",
|
||||||
|
domain: "mydomain"
|
||||||
},
|
},
|
||||||
storage: {}
|
storage: {}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user