forked from dotkernel/dot-authentication-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthentication-web.global.php.dist
83 lines (66 loc) · 2.91 KB
/
authentication-web.global.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
return [
'dependencies' => [
//whatever dependencies you need additionally
],
'dot_authentication' => [
//this package's specific configuration template
'web' => [
'login_route' => [
'route_name' => 'login',
'route_params' => [],
'query_params' => [],
'fragment_id' => null,
'options' => []
],
'logout_route' => [
'route_name' => 'logout',
'route_params' => [],
//...
],
//template name to use for the login form
'login_template' => 'app::login',
//where to redirect after login success
'after_login_route' => [
'route_name' => 'home',
'route_params' => []
],
//where to redirect after logging out
'after_logout_route' => [
'route_name' => 'login',
'route_params' => []
],
//enable the wanted url feature, to login to the previously requested uri after login
'enable_wanted_url' => true,
'wanted_url_name' => 'redirect',
'event_listeners' => [
[
'type' => 'Some\Class\Or\Service',
'priority' => 1
],
],
//for overwriting default module messages
'messages_options' => [
'messages' => [
//MessagesOptions::AUTHENTICATION_FAILURE =>
// 'Authentication failed. Check your credentials and try again',
//MessagesOptions::AUTHENTICATION_INVALID_CREDENTIALS =>
// 'Authentication failed. Check your credentials and try again',
//MessagesOptions::AUTHENTICATION_IDENTITY_AMBIGUOUS =>
// 'Authentication failed. Check your credentials and try again',
//MessagesOptions::AUTHENTICATION_IDENTITY_NOT_FOUND =>
// 'Authentication failed. Check your credentials and try again',
//MessagesOptions::AUTHENTICATION_UNCATEGORIZED =>
// 'Authentication failed. Check your credentials and try again',
//MessagesOptions::AUTHENTICATION_MISSING_CREDENTIALS =>
// 'Authentication failed. Missing or invalid credentials',
//MessagesOptions::AUTHENTICATION_SUCCESS =>
// 'Welcome! You have successfully signed in',
//MessagesOptions::AUTHENTICATION_FAIL_UNKNOWN =>
// 'Authentication failed. Check your credentials and try again',
//MessagesOptions::UNAUTHORIZED => 'You must sign in first to access the requested content',
],
],
]
]
];