| 1 |
Twitter |
| 2 |
======= |
| 3 |
|
| 4 |
============== ===== ======== |
| 5 |
Authentication Users Password |
| 6 |
============== ===== ======== |
| 7 |
✔ |
| 8 |
============== ===== ======== |
| 9 |
|
| 10 |
Presentation |
| 11 |
------------ |
| 12 |
|
| 13 |
`Twitter <https://twitter.com>`__ is a famous microblogging server. |
| 14 |
Twitter use `OAuth <http://en.wikipedia.org/wiki/OAuth>`__ protocol to |
| 15 |
allow applications to reuse its own authentication process (it means, if |
| 16 |
your are connected to Twitter, other applications can trust Twitter and |
| 17 |
let you in). |
| 18 |
|
| 19 |
You need to register a new application on Twitter to get API key and API |
| 20 |
secret. See `Twitter FAQ <http://dev.twitter.com/pages/api_faq>`__ on |
| 21 |
how to do that:. |
| 22 |
|
| 23 |
Configuration |
| 24 |
------------- |
| 25 |
|
| 26 |
In Manager, go in ``General Parameters`` > ``Authentication modules`` |
| 27 |
and choose Twitter for authentication module. |
| 28 |
|
| 29 |
|
| 30 |
.. tip:: |
| 31 |
|
| 32 |
You can then choose any other module for users and |
| 33 |
password. |
| 34 |
|
| 35 |
|
| 36 |
.. attention:: |
| 37 |
|
| 38 |
Browser implementations of formAction directive are |
| 39 |
inconsistent (e.g. Firefox doesn't block the redirects whereas Chrome |
| 40 |
does). Administrators may have to modify formAction value with wildcard |
| 41 |
likes \*. |
| 42 |
|
| 43 |
In Manager, go in : |
| 44 |
|
| 45 |
``General Parameters`` > ``Advanced Parameters`` > ``Security`` > |
| 46 |
``Content Security Policy`` > ``Form destination`` |
| 47 |
|
| 48 |
Then, go in ``Twitter parameters``: |
| 49 |
|
| 50 |
- **Authentication level**: authentication level for this module. |
| 51 |
- **API key**: API key from Twitter |
| 52 |
- **API secret**: API secret from Twitter |
| 53 |
- **Application name** (optional): Application name (visible in |
| 54 |
Twitter) |
| 55 |
- **User field**: Twitter field that will be used as default user |
| 56 |
identifier. Allowed values: |
| 57 |
|
| 58 |
- ``screen_name`` |
| 59 |
- ``user_id`` |