25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

103 lines
2.0 KiB

  1. {
  2. "name": "auth",
  3. "module": "auth",
  4. "action": "provider",
  5. "options": {
  6. "secret": "st8nJDgcHrnWbU5",
  7. "provider": "Database",
  8. "connection": "authdb",
  9. "passwordVerify": true,
  10. "users": {
  11. "table": "users",
  12. "identity": "id",
  13. "username": "email",
  14. "password": "pwd"
  15. },
  16. "permissions": {
  17. "Administrator": {
  18. "table": "xuserrole",
  19. "identity": "userid",
  20. "conditions": [
  21. {
  22. "column": "roleid",
  23. "operator": "=",
  24. "value": "1"
  25. }
  26. ]
  27. },
  28. "Plant": {
  29. "table": "xuserrole",
  30. "identity": "userid",
  31. "conditions": [
  32. {
  33. "column": "roleid",
  34. "operator": "=",
  35. "value": "2"
  36. }
  37. ]
  38. },
  39. "Engineering": {
  40. "table": "xuserrole",
  41. "identity": "userid",
  42. "conditions": [
  43. {
  44. "column": "roleid",
  45. "operator": "=",
  46. "value": "3"
  47. }
  48. ]
  49. },
  50. "Associate": {
  51. "table": "xuserrole",
  52. "identity": "userid",
  53. "conditions": [
  54. {
  55. "column": "roleid",
  56. "operator": "=",
  57. "value": "4"
  58. }
  59. ]
  60. },
  61. "Applications": {
  62. "table": "xuserrole",
  63. "identity": "userid",
  64. "conditions": [
  65. {
  66. "column": "roleid",
  67. "operator": "=",
  68. "value": "5"
  69. }
  70. ]
  71. },
  72. "Manager": {
  73. "table": "xuserrole",
  74. "identity": "userid",
  75. "conditions": [
  76. {
  77. "column": "roleid",
  78. "operator": "=",
  79. "value": "6"
  80. }
  81. ]
  82. },
  83. "Lead": {
  84. "table": "xuserrole",
  85. "identity": "userid",
  86. "conditions": [
  87. {
  88. "column": "roleid",
  89. "operator": "=",
  90. "value": "7"
  91. }
  92. ]
  93. }
  94. }
  95. },
  96. "meta": [
  97. {
  98. "name": "identity",
  99. "type": "text"
  100. }
  101. ],
  102. "output": true
  103. }