lemonldap-ng/doc/sources/admin/authtwitter.rst

63 lines
1.7 KiB
ReStructuredText
Raw Permalink Normal View History

2020-05-14 23:29:41 +02:00
Twitter
=======
============== ===== ========
Authentication Users Password
============== ===== ========
2020-05-18 09:56:39 +02:00
2020-05-14 23:29:41 +02:00
============== ===== ========
Presentation
------------
`Twitter <https://twitter.com>`__ is a famous microblogging server.
Twitter use `OAuth <http://en.wikipedia.org/wiki/OAuth>`__ protocol to
allow applications to reuse its own authentication process (it means, if
your are connected to Twitter, other applications can trust Twitter and
let you in).
You need `Net::Twitter <http://search.cpan.org/~mmims/Net-Twitter/>`__
package, with a very recent version (>3).
You need to register a new application on Twitter to get API key and API
secret. See `Twitter FAQ <http://dev.twitter.com/pages/api_faq>`__ on
how to do that:.
Configuration
-------------
In Manager, go in ``General Parameters`` > ``Authentication modules``
and choose Twitter for authentication module.
2020-05-18 09:56:39 +02:00
.. tip::
2020-05-14 23:29:41 +02:00
You can then choose any other module for users and
password.
2020-05-21 15:13:24 +02:00
.. attention::
2020-05-14 23:29:41 +02:00
Browser implementations of formAction directive are
inconsistent (e.g. Firefox doesn't block the redirects whereas Chrome
does). Administrators may have to modify formAction value with wildcard
likes \*.
2020-05-18 09:56:39 +02:00
2020-05-14 23:29:41 +02:00
In Manager, go in :
2020-05-18 09:56:39 +02:00
2020-05-14 23:29:41 +02:00
``General Parameters`` > ``Advanced Parameters`` > ``Security`` >
2020-05-18 09:56:39 +02:00
``Content Security Policy`` > ``Form destination``
2020-05-14 23:29:41 +02:00
Then, go in ``Twitter parameters``:
- **Authentication level**: authentication level for this module.
- **API key**: API key from Twitter
- **API secret**: API secret from Twitter
- **Application name** (optional): Application name (visible in
Twitter)
- **User field**: Twitter field that will be used as default user
identifier. Allowed values:
- ``screen_name``
- ``user_id``