(val string)
| 152 | } |
| 153 | |
| 154 | func parseAccess(val string) (ajwt.AccessType, bool) { |
| 155 | res := ajwt.AccessType(val) |
| 156 | |
| 157 | switch res { |
| 158 | case ajwt.AccessTypeFull: |
| 159 | case ajwt.AccessTypeScoped: |
| 160 | case ajwt.AccessTypeGranular: |
| 161 | default: |
| 162 | return ajwt.AccessTypeNone, false |
| 163 | } |
| 164 | |
| 165 | return res, true |
| 166 | } |
| 167 | |
| 168 | func permissionScopesToStrings(scopes ajwt.PermissionScopes) []string { |
| 169 | result := make([]string, len(scopes)) |