| 4687 |
mandeep.dh |
1 |
# =======================
|
|
|
2 |
# Shiro INI configuration
|
|
|
3 |
# =======================
|
|
|
4 |
|
|
|
5 |
[main]
|
|
|
6 |
# Objects and their properties are defined here,
|
|
|
7 |
# Such as the securityManager, Realms and anything
|
|
|
8 |
# else needed to build the SecurityManager
|
| 30516 |
amit.gupta |
9 |
builtInCacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
|
|
|
10 |
securityManager.cacheManager = $builtInCacheManager
|
|
|
11 |
|
|
|
12 |
|
| 4687 |
mandeep.dh |
13 |
inventoryAuthorizingRealm = in.shop2020.serving.auth.InventoryAuthorizingRealm
|
|
|
14 |
sha256Matcher = org.apache.shiro.authc.credential.HashedCredentialsMatcher
|
|
|
15 |
sha256Matcher.hashAlgorithmName=SHA-256
|
|
|
16 |
inventoryAuthorizingRealm.credentialsMatcher = $sha256Matcher
|
|
|
17 |
authc = in.shop2020.serving.auth.VerboseFilter
|
|
|
18 |
authc.loginUrl = /login.html
|
|
|
19 |
authc.successUrl = /
|
|
|
20 |
# 2 hours session timeout
|
|
|
21 |
securityManager.sessionManager.globalSessionTimeout = 7200000
|
|
|
22 |
|
|
|
23 |
[users]
|
|
|
24 |
# The 'users' section is for simple deployments
|
|
|
25 |
# when you only need a small number of statically-defined
|
|
|
26 |
# set of User accounts.
|
|
|
27 |
|
|
|
28 |
[roles]
|
|
|
29 |
# The 'roles' section is for simple deployments
|
|
|
30 |
# when you only need a small number of statically-defined
|
|
|
31 |
# roles.
|
|
|
32 |
|
|
|
33 |
[urls]
|
|
|
34 |
# The 'urls' section is used for url-based security
|
|
|
35 |
# in web applications. We'll discuss this section in the
|
|
|
36 |
# Web documentation
|
| 4754 |
mandeep.dh |
37 |
/purchase-order/new = authc, perms["po:create"]
|
|
|
38 |
/purchase-order/*/edit = authc, perms["po:amend"]
|
|
|
39 |
/purchase-order/* = authc, perms["po:receive"]
|
|
|
40 |
/purchase/** = authc, perms["po:receive"]
|
| 5185 |
mandeep.dh |
41 |
/doa-in/** = authc, perms["po:receive"]
|
|
|
42 |
/doa-out/** = authc, perms["po:receive"]
|
| 5110 |
mandeep.dh |
43 |
/current-inventory/** = authc, perms["inventory:read"]
|
|
|
44 |
/ignored-item-mapping/** = authc, perms["inventory:ignoreditemmapping:read"]
|
| 5372 |
mandeep.dh |
45 |
/accounting-reports = authc, perms["accounting-reports:read"]
|
|
|
46 |
/sale-report = authc, perms["sale-report:read"]
|
|
|
47 |
/sale-return-report = authc, perms["sale-return-report:read"]
|
|
|
48 |
/purchase-report = authc, perms["purchase-report:read"]
|
| 5885 |
mandeep.dh |
49 |
/supplier-inventory = anon
|
| 5449 |
mandeep.dh |
50 |
/invoice/new = authc, perms["invoice:receive"]
|
|
|
51 |
/invoice = authc, perms["invoice:read"]
|
| 5591 |
mandeep.dh |
52 |
/supplier/new = authc, perms["supplier:create"]
|
|
|
53 |
/supplier/*/edit = authc, perms["supplier:edit"]
|
|
|
54 |
/supplier/* = authc, perms["supplier:read"]
|
| 7881 |
amar.kumar |
55 |
/current-inventory = authc, perms["inventory:read"]
|
|
|
56 |
/inventory-age = authc, perms["inventory-age:read"]
|
|
|
57 |
/scan-record = anon
|
|
|
58 |
/inventory-reader/** = authc, perms["inventory-age:read"]
|
|
|
59 |
/purchase-return = authc, perms["purchase-return:read"]
|
|
|
60 |
/movement-report/** = authc, perms["movement-report:read"]
|
|
|
61 |
/hotspot-indent = authc, perms["hotspot-indent:create"]
|
|
|
62 |
/transfer-lot = authc, perms["transfer-lot:view"]
|
|
|
63 |
/transfer-lot/new = authc, perms["transfer-lot:create"]
|
|
|
64 |
/transfer-lot-receive = authc, perms["po:receive"]
|
| 4754 |
mandeep.dh |
65 |
/** = authc
|