瀏覽代碼

add basic auth curl example

Daniel Gruno 5 年之前
父節點
當前提交
832ef27344
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      README.md

+ 4 - 0
README.md

@@ -55,5 +55,9 @@ Clients ACL is defined in `pypubsub_acl.yaml`. See the example ACL configuration
 Access is, again, defined with "highest common denominator" in mind, meaning access to topics is granted 
 to the specific topic group specified in the yaml and its sub-groups. Thus, if you grant access to `internal` and `foo` in one ACL segment, events pushed to `private/internal/foo` would be seen by that client, whereas pushes to `private/internal/bar` would not.
 
+To authenticate and receive private events, use Basic authentication, such as:
+
+`curl -u 'user:pass' http://localhost:2069/internal/topics/here`
+
 ## License
 PyPubSub is licensed under the Apache License v/2.