georchestra / georchestra-gateway

GNU General Public License v3.0
0 stars 6 forks source link

Prototype applying georchestra access rules #4

Closed pmauduit closed 2 years ago

pmauduit commented 2 years ago

Note the patterns changed from Pattern to String to use Ant patterns instead of Java regex.

Rule uri's should be updated accordingly.

pmauduit commented 2 years ago

a NPE is fired in the tests because we can't have anonymous: false with no roles defined: https://github.com/georchestra/georchestra-gateway/blob/main/src/main/resources/gateway.yml#L17-L18

Easily fixed by adding a allowed-roles: ... on the /testPage endpoint. Il will also require to switch from regex-based to ant-like patterns, we will have to remove '.' to simple wildcards ''.