You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/03/04 10:40:52 UTC

[GitHub] [pulsar] bleacha870721 commented on issue #6467: Attempting to use token authentication in pulsar standalone but 401 Unauthorized

bleacha870721 commented on issue #6467: Attempting to use token authentication in pulsar standalone but 401 Unauthorized
URL: https://github.com/apache/pulsar/issues/6467#issuecomment-594446995
 
 
   
   `# Enable authentication
   authenticationEnabled=true
   
   # Autentication provider name list, which is comma separated list of class names
   authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken
   
   # Enforce authorization
   authorizationEnabled=true
   
   # Authorization provider fully qualified class-name
   authorizationProvider=org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider
   # Role names that are treated as "super-user", meaning they will be able to do all admin
   # operations and publish/consume from all topics
   superUserRoles=admin
   
   # Authentication settings of the broker itself. Used when the broker connects to other brokers,
   # either in same or other clusters
   brokerClientAuthenticationPlugin=org.apache.pulsar.client.impl.auth.AuthenticationToken
   brokerClientAuthenticationParameters=token:eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiJ9.eNEbqeuUXxM7bsnP8gnxYq7hRkP50Rqc0nsWFRp8z6A
   # When this parameter is not empty, unauthenticated users perform as anonymousUserRole
   anonymousUserRole=anonymousUserRole
   
   # The token "claim" that will be interpreted as the authentication "role" or "principal" by AuthenticationProviderToken (defaults to "sub" if blank)
   tokenAuthClaim=
   
   tokenSecretKey=file:///Users/lixiajie/software/pulsr/my-secret.key
   tokenPublicKey=file:///Users/lixiajie/software/pulsr/my-public.key
   `

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services