1.7 KiB
1.7 KiB
FAQ
Basic (username password) authentication
Add these env. properties:
AUTH_TYPE: "LOGIN_FORM"
SPRING_SECURITY_USER_NAME: admin
SPRING_SECURITY_USER_PASSWORD: pass
Role based access control
rbac-role-based-access-control.md
OAuth 2
LDAP
See this example.
Active Directory (LDAP)
See this example.
SAML
Planned, see #478
Smart filters syntax
Variables bound to groovy context: partition, timestampMs, keyAsText, valueAsText, header, key (json if possible), value (json if possible).
JSON parsing logic:
Key and Value (if they can be parsed to JSON) they are bound as JSON objects, otherwise bound as nulls.
Sample filters:
keyAsText != null && keyAsText ~"([Gg])roovy"
- regex for key as a stringvalue.name == "iS.ListItemax" && value.age > 30
- in case value is jsonvalue == null && valueAsText != null
- search for values that are not nulls and are not jsonheaders.sentBy == "some system" && headers["sentAt"] == "2020-01-01"
- multiline filters are also allowed:
def name = value.name
def age = value.age
name == "iliax" && age == 30
Can I use the app as API?
Yes, you can. Swagger declaration is located here.