Github user anyway1021 commented on a diff in the pull request: https://github.com/apache/incubator-eagle/pull/468#discussion_r82541902 --- Diff: eagle-server/src/main/resources/application.conf --- @@ -115,4 +115,49 @@ coordinator { initDelayMillis = 1000 delayMillis = 30000 } +} + +# --------------------------------------------- +# Eagle Authentication Configuration +# --------------------------------------------- + +auth { + # indicating authentication mode, "simple" or "ldap" + mode = simple + + # indicating whether to use cache: cache is usually used for authentications that may + # not handle high throughput (an RDBMS or LDAP server, for example) + cache = false + + # indicating the cache policy, containing maximumSize and expireAfterWrite, e.g. maximumSize=10000, expireAfterWrite=10m + cachePolicy = "maximumSize=10000, expireAfterWrite=1m" + + # indicating whether authorization is needed + authorize = false + + # indicating whether @Auth annotation on parameters is needed + parameter.annotation = true + + # for basic authentication, effective only when auth.mode=simple + simple { + # username for basic authentication, effective only when auth.mode=simple + username = "admin" + + # password for basic authentication, effective only when auth.mode=simple + password = "secret" + } + + # for ldap authentication, effective only when auth.mode=ldap + ldap { + uri = "ldaps://ldap.ebay.corp.com:636" + userFilter = "ou=ziwu,dc=ebay,dc=com" --- End diff -- forget to erase these text before checkin, will modify it, thanks.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---