sureness.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ## -- sureness.yml document dataSource-- ##
  2. # load api resource which need be protected, config role who can access these resource.
  3. # resources that are not configured are also authenticated and protected by default, but not authorized
  4. # eg: /api/v2/host===post===[role2,role3,role4] means /api/v2/host===post can be access by role2,role3,role4
  5. # eg: /api/v1/getSource3===get===[] means /api/v1/getSource3===get can not be access by any role
  6. resourceRole:
  7. - /account/auth/refresh===post===[role1,role2,role3,role4]
  8. # load api resource which do not need be protected, means them need be excluded.
  9. # these api resource can be access by everyone
  10. excludedResource:
  11. - /account/auth/form===post
  12. - /**/*.html===get
  13. - /**/*.js===get
  14. - /**/*.css===get
  15. - /**/*.ico===get
  16. - /**/*.ttf===get
  17. - /**/*.png===get
  18. - /**/*.gif===get
  19. - /swagger-resources/**===get
  20. - /v2/api-docs===get
  21. - /v3/api-docs===get
  22. - /**/*.png===*
  23. # account info
  24. # there are three account: admin, root, tom
  25. # eg: admin has [role1,role2] ROLE, unencrypted password is admin, encrypted password is 0192023A7BBD73250516F069DF18B500
  26. # eg: root has role1, unencrypted password is 23456
  27. # eg: tom has role3, unencrypted password is 32113
  28. account:
  29. - appId: admin
  30. credential: admin
  31. role: [role1,role2]
  32. - appId: tom
  33. credential: tom@123
  34. role: [role1,role2,role3]
  35. - appId: lili
  36. # 注意 Digest认证不支持加盐加密的密码账户
  37. # 加盐加密的密码,通过 MD5(password+salt)计算
  38. # 此账户的原始密码为 lili
  39. credential: 1A676730B0C7F54654B0E09184448289
  40. salt: 123
  41. role: [role1,role2]