[ 
https://issues.apache.org/jira/browse/EAGLE-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15561195#comment-15561195
 ] 

ASF GitHub Bot commented on EAGLE-582:
--------------------------------------

Github user anyway1021 commented on a diff in the pull request:

    https://github.com/apache/incubator-eagle/pull/468#discussion_r82542185
  
    --- 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"
    --- End diff --
    
    forget to erase these text before checkin, will modify it, thanks.



> register simple Basic Authentication to server application
> ----------------------------------------------------------
>
>                 Key: EAGLE-582
>                 URL: https://issues.apache.org/jira/browse/EAGLE-582
>             Project: Eagle
>          Issue Type: Sub-task
>    Affects Versions: v0.5.0
>            Reporter: Michael Wu
>            Assignee: Michael Wu
>             Fix For: v0.5.0
>
>
> simple basic authentication with just some expected username-password pairs 
> configured for the application.
> This is one of the sub-tasks of ticket EAGLE-433, to successfully register a 
> simple Basic Authentication authenticator to the server application.
> With this check-in, when the server is up, any access to rest api method that 
> has a @Auth annotation on it's User field will require correct credentials.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to