actframework / act-aaa-plugin

Use OSGL aaa library to mange Authentication/Authorization/Accounting for ActFramework Application
Apache License 2.0
6 stars 2 forks source link

New AAAObject name matching logic #5

Closed greenlaw110 closed 7 years ago

greenlaw110 commented 7 years ago

For a given acl.yaml file:

edit-profile:
  type: permission
  dynamic: true

And app developer defines the permission enum as:

public enum AppPerm {EDIT_PROFILE}

It shall be able to find the edit-profile permission by using enum name EDIT_PROFILE. Note this is not only a case incensitive matching, but also convert the - to _