Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > a100f0997407ff82957e996a98fb9db2 > files > 199

lemonldap-ng-1.0-0.3.rc1mdv2011.0.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
  <meta name="generator" content=
  "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

  <title>Lemonldap::NG documentation:
  4.5-Twitter-authentication-backend.html</title>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
  <style type="text/css">
/*<![CDATA[*/
    body{
      background: #ddd;
      font-family: sans-serif;
      font-size: 11pt;
      padding: 0 50px;
    }
    div.main-content{
      padding: 10px;
      background: #fff;
      border: 2px #ccc solid;
    }
    a{
      text-decoration: none;
    }
    p.footer{
      text-align: center;
      margin: 5px 0 0 0;
    }
    .heading-1{
      text-align: center;
      color: orange;
      font-variant: small-caps;
      font-size: 20pt;
    }
    .heading-1-1{
      color: orange;
      font-size: 14pt;
      border-bottom: 2px #ccc solid;
    }
    pre{
      background: #eee;
      border: 2px #ccc solid;
      padding: 5px;
      border-left: 10px #ccc solid;
    }
    ul.star li{
      list-style-type: square;
    }
  /*]]>*/
  </style>
</head>

<body>
  <div class="main-content">
    <h2 class="heading-1"><span id="HTwitter">Twitter</span></h2>

    <p class="paragraph"></p>

    <ul>
      <li><a href="#HPresentation">Presentation</a></li>

      <li><a href="#HLemonLDAP3A3ANGconfiguration">LemonLDAP::NG
      configuration</a></li>
    </ul>

    <h3 class="heading-1-1"><span id="HPresentation">Presentation</span></h3>

    <p class="paragraph"></p>Twitter is a famous online short messaging
    server, see <span class="wikiexternallink"><a href=
    "http://twitter.com">http://twitter.com</a></span>. Twitter use OAuth
    protocol to allows applications to reuse its own authentication process
    (it means, if your are connected to twitter, other applications can trust
    twitter and let you in).

    <p class="paragraph"></p>You need perl Net::Twitter package, with a very
    recent version (&gt;3). You can find i on CPAN: <span class=
    "wikiexternallink"><a href=
    "http://search.cpan.org/~mmims/Net-Twitter/">http://search.cpan.org/~mmims/Net-Twitter/</a></span>.

    <p class="paragraph"></p>You need to regsiter a new application on Twitter
    to get API key and API secret. See Twitter FAQ on how to do that:
    <span class="wikiexternallink"><a href=
    "http://apiwiki.twitter.com/FAQ#HowdoIget%E2%80%9CfromMyApp%E2%80%9DappendedtoupdatessentfrommyAPIapplication">
    http://apiwiki.twitter.com/FAQ#HowdoIget%E2%80%9CfromMyApp%E2%80%9DappendedtoupdatessentfrommyAPIapplication</a></span>.

    <h3 class="heading-1-1"><span id=
    "HLemonLDAP3A3ANGconfiguration">LemonLDAP::NG configuration</span></h3>

    <p class="paragraph"></p>Just set API key and API secret in LemonLDAP::NG
    configuration. You can also set Application Name (by default:
    Lemonldap::NG).

    <p class="paragraph"></p>For example:

    <div class="code">
      <pre>
authentication =&gt; 'Twitter',
userDB =&gt; 'Null', # Do not use userDB
twitterKey =&gt; 'hdODNci354n',
twitterSecret =&gt; 'Jdldc1e1ce31661EEC16eCS22ee1tbt8',
twitterAppName =&gt; 'My marvelous application',
</pre>
    </div>
  </div>

  <p class="footer"><a href="index.html">Index</a></p>
</body>
</html>