Skip to content

Commit

Permalink
Version bump: 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Apr 4, 2015
1 parent 2509a31 commit 5226e68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
Changelog
=========
0.4
* Batch auth support
* Configurable url prefix and authentication path

0.3
* Webhooks support
* JSONP authentication support with Flask-Jsonpify
Expand Down
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -79,7 +79,7 @@ just decorate a function with `@pusher.auth`.

This function must return `True` for authorized and `False` for unauthorized
users. It happens in the request context, so you have all `Flask` features,
including for exemple the `Flask-Login` current user.
including for example the `Flask-Login` current user.

Set the `PUSHER_AUTH` configuration to change the auth endpoint. The default value is `/auth`.

Expand All @@ -95,8 +95,11 @@ def pusher_auth(channel_name, socket_id):
return current_user.is_authenticated()
```

It also transparently supports batch auth, based on `pusher-js-auth`: https://github.com/dirkbonhomme/pusher-js-auth`. The authentication function is called for each channel in the batch.

Read more about user authentication here: http://pusher.com/docs/authenticating_users


Pusher channel data
-------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

setup(
name='Flask-Pusher',
version='0.3',
version='0.4',
url='https://www.github.com/iurisilvio/Flask-Pusher',
license='MIT',
author='Iuri de Silvio',
Expand Down

0 comments on commit 5226e68

Please sign in to comment.