Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1053

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::Auth::OAuthProcess Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="namespaceWt_1_1Auth.html">Auth</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html">OAuthProcess</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::Auth::OAuthProcess Class Reference<div class="ingroups"><a class="el" href="group__auth.html">Authentication module (Wt::Auth)</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::Auth::OAuthProcess" --><!-- doxytag: inherits="Wt::WObject" -->
<p>An OAuth authorization (and authentication) process.  
 <a href="classWt_1_1Auth_1_1OAuthProcess.html#details">More...</a></p>

<p><code>#include &lt;Auth/OAuthService&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::Auth::OAuthProcess:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1Auth_1_1OAuthProcess__inherit__graph.png" border="0" usemap="#Wt_1_1Auth_1_1OAuthProcess_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1Auth_1_1OAuthProcess_inherit__map" id="Wt_1_1Auth_1_1OAuthProcess_inherit__map">
<area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="40,5,136,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1Auth_1_1OAuthProcess-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess_1_1TokenError.html">TokenError</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Exception thrown while parsing a token response.  <a href="classWt_1_1Auth_1_1OAuthProcess_1_1TokenError.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a16b5b8b50f80aee9dcbc03044c82375c">scope</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the scope for which this process was created.  <a href="#a16b5b8b50f80aee9dcbc03044c82375c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1Auth_1_1OAuthService.html">OAuthService</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa6520912520dc1b4516ea2d72837a094">service</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the OAuth service which spawned this process.  <a href="#aa6520912520dc1b4516ea2d72837a094"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3be5a91214f39bf357996e9b3d4741c8">startAuthorize</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts an authorization process.  <a href="#a3be5a91214f39bf357996e9b3d4741c8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3f6e1c6cf8015d5515d61875cc81fd6c">startAuthenticate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts an authorization and authentication process.  <a href="#a3f6e1c6cf8015d5515d61875cc81fd6c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa8102afbc7fa52027e15f4a952288923">getIdentity</a> (const <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a> &amp;token)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains an authenticated identity.  <a href="#aa8102afbc7fa52027e15f4a952288923"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a70490507d321323cc6b8662d8e32a3a7">error</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Error information, in case authentication or identification failed.  <a href="#a70490507d321323cc6b8662d8e32a3a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#afac487675741149ccc7b6172d8856297">token</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the access token.  <a href="#afac487675741149ccc7b6172d8856297"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#ad1f0c2b2915d4d2e75143b1d73170b86">authorized</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Authorization signal.  <a href="#ad1f0c2b2915d4d2e75143b1d73170b86"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; <a class="el" href="classWt_1_1Auth_1_1Identity.html">Identity</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a22d65da9fa8a510363beff4b6e057d8b">authenticated</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Authentication signal.  <a href="#a22d65da9fa8a510363beff4b6e057d8b"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa31f2e070502f9614a90ec3dfc5037fc">OAuthProcess</a> (const <a class="el" href="classWt_1_1Auth_1_1OAuthService.html">OAuthService</a> &amp;service, const std::string &amp;scope)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#aa31f2e070502f9614a90ec3dfc5037fc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#ad951ad389cff9c3de719f416f40c9a75">parseTokenResponse</a> (const <a class="el" href="classWt_1_1Http_1_1Message.html">Http::Message</a> &amp;response)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses the response for a token request.  <a href="#ad951ad389cff9c3de719f416f40c9a75"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#ae1a2ab7a8f9e120c2b5bf8e8a3aa1a21">setError</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;e)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the error.  <a href="#ae1a2ab7a8f9e120c2b5bf8e8a3aa1a21"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An OAuth authorization (and authentication) process. </p>
<p>The process implements the state machine that is needed to complete an OAuth authorization cycle.</p>
<p>Optionally, it also provides authentication, by using the service-specific logic which uses the access token to return identity information.</p>
<p>A process is created for a particular scope, which represents what kind of information one wants to access, and which is used to inform the user of the kind of operations he needs to authorize for your application to make with his protected data.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Auth_1_1OAuthService.html#a24c71776988c7562c507714acb295e06" title="Creates a new authorizaiton process.">OAuthService::createProcess()</a> </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa31f2e070502f9614a90ec3dfc5037fc"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::OAuthProcess" ref="aa31f2e070502f9614a90ec3dfc5037fc" args="(const OAuthService &amp;service, const std::string &amp;scope)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::Auth::OAuthProcess::OAuthProcess </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Auth_1_1OAuthService.html">OAuthService</a> &amp;&#160;</td>
          <td class="paramname"><em>service</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>scope</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Auth_1_1OAuthService.html#a24c71776988c7562c507714acb295e06" title="Creates a new authorizaiton process.">OAuthService::createProcess()</a> </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a22d65da9fa8a510363beff4b6e057d8b"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::authenticated" ref="a22d65da9fa8a510363beff4b6e057d8b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt;<a class="el" href="classWt_1_1Auth_1_1Identity.html">Identity</a>&gt;&amp; Wt::Auth::OAuthProcess::authenticated </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Authentication signal. </p>
<p>This signal indicates the end of an authentication process started with <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3f6e1c6cf8015d5515d61875cc81fd6c" title="Starts an authorization and authentication process.">startAuthenticate()</a> or <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa8102afbc7fa52027e15f4a952288923" title="Obtains an authenticated identity.">getIdentity()</a>. If the authentication process was successful, then the parameter is a valid and authentic identity. If the authentication process failed then the identity parameter is invalid, and you can get more information using <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a70490507d321323cc6b8662d8e32a3a7" title="Error information, in case authentication or identification failed.">error()</a>.</p>
<p>Authentication can fail because authorization failed (in case of <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3f6e1c6cf8015d5515d61875cc81fd6c" title="Starts an authorization and authentication process.">startAuthenticate()</a>), or because of a protocol error, or configuration problem.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3f6e1c6cf8015d5515d61875cc81fd6c" title="Starts an authorization and authentication process.">startAuthenticate()</a>, <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa8102afbc7fa52027e15f4a952288923" title="Obtains an authenticated identity.">getIdentity()</a>, <a class="el" href="classWt_1_1Auth_1_1Identity.html#ad9741bdd1c5175d496fe71e8f036f335" title="Returns whether the identity is valid.">Identity::isValid()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad1f0c2b2915d4d2e75143b1d73170b86"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::authorized" ref="ad1f0c2b2915d4d2e75143b1d73170b86" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt;<a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a>&gt;&amp; Wt::Auth::OAuthProcess::authorized </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Authorization signal. </p>
<p>This signal indicates the end of an authorization process started with <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3be5a91214f39bf357996e9b3d4741c8" title="Starts an authorization process.">startAuthorize()</a>. If the authorization process was successful, then the parameter carries a valid access token that was obtained. If the authorization process failed then the access token parameter is invalid, and you can get more information using <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a70490507d321323cc6b8662d8e32a3a7" title="Error information, in case authentication or identification failed.">error()</a>.</p>
<p>Authorization can fail because of a protocol error, aconfiguration problem, or because the user denied the authorization.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3be5a91214f39bf357996e9b3d4741c8" title="Starts an authorization process.">startAuthorize()</a>, <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html#a2b078fd272b05cb91cd9954b172a41c7" title="Returns whether the token is valid.">OAuthAccessToken::isValid()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a70490507d321323cc6b8662d8e32a3a7"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::error" ref="a70490507d321323cc6b8662d8e32a3a7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::Auth::OAuthProcess::error </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Error information, in case authentication or identification failed. </p>
<p>The error message contains details when the <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#ad1f0c2b2915d4d2e75143b1d73170b86" title="Authorization signal.">authorized()</a> or <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a22d65da9fa8a510363beff4b6e057d8b" title="Authentication signal.">authenticated()</a> signals indicate respectively an invalid token or invalid identity. </p>

</div>
</div>
<a class="anchor" id="aa8102afbc7fa52027e15f4a952288923"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::getIdentity" ref="aa8102afbc7fa52027e15f4a952288923" args="(const OAuthAccessToken &amp;token)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Auth::OAuthProcess::getIdentity </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a> &amp;&#160;</td>
          <td class="paramname"><em>token</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Obtains an authenticated identity. </p>
<p>The authentication process uses an access token to issue one or more protected requests for obtaining identity information. This is not part of the OAuth protocol, since OAuth does not standardize the use of the access token to obtain this information.</p>
<p>The authentication process ends with the <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a22d65da9fa8a510363beff4b6e057d8b" title="Authentication signal.">authenticated()</a> signal which signals the obtained identity. </p>

</div>
</div>
<a class="anchor" id="ad951ad389cff9c3de719f416f40c9a75"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::parseTokenResponse" ref="ad951ad389cff9c3de719f416f40c9a75" args="(const Http::Message &amp;response)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a> Wt::Auth::OAuthProcess::parseTokenResponse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Http_1_1Message.html">Http::Message</a> &amp;&#160;</td>
          <td class="paramname"><em>response</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the response for a token request. </p>
<p>Throws a <a class="el" href="classWt_1_1Auth_1_1OAuthProcess_1_1TokenError.html" title="Exception thrown while parsing a token response.">TokenError</a> when the response indicates an error, or when the response could not be properly parsed.</p>
<p>Some OAuth implementations may uses a non-standard encoding of the token. </p>

</div>
</div>
<a class="anchor" id="a16b5b8b50f80aee9dcbc03044c82375c"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::scope" ref="a16b5b8b50f80aee9dcbc03044c82375c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; Wt::Auth::OAuthProcess::scope </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the scope for which this process was created. </p>
<p>The scope represents how much protected information the web application wants to access, and in what way.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Auth_1_1OAuthService.html#a24c71776988c7562c507714acb295e06" title="Creates a new authorizaiton process.">OAuthService::createProcess()</a>, <a class="el" href="classWt_1_1Auth_1_1OAuthService.html#a040351f2a2b956c059ea9974e6829d13" title="Returns the scope needed for authentication.">OAuthService::authenticationScope()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa6520912520dc1b4516ea2d72837a094"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::service" ref="aa6520912520dc1b4516ea2d72837a094" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1Auth_1_1OAuthService.html">OAuthService</a>&amp; Wt::Auth::OAuthProcess::service </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the OAuth service which spawned this process. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Auth_1_1OAuthService.html#a24c71776988c7562c507714acb295e06" title="Creates a new authorizaiton process.">OAuthService::createProcess()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae1a2ab7a8f9e120c2b5bf8e8a3aa1a21"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::setError" ref="ae1a2ab7a8f9e120c2b5bf8e8a3aa1a21" args="(const WString &amp;e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Auth::OAuthProcess::setError </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the error. </p>
<p>This should be used in <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa8102afbc7fa52027e15f4a952288923" title="Obtains an authenticated identity.">getIdentity()</a> implementations to set the error, before emitting <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a22d65da9fa8a510363beff4b6e057d8b" title="Authentication signal.">authenticated()</a> with an invalid <a class="el" href="classWt_1_1Auth_1_1Identity.html" title="A class that represents a user identity.">Identity</a>. </p>

</div>
</div>
<a class="anchor" id="a3f6e1c6cf8015d5515d61875cc81fd6c"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::startAuthenticate" ref="a3f6e1c6cf8015d5515d61875cc81fd6c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Auth::OAuthProcess::startAuthenticate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Starts an authorization and authentication process. </p>
<p>This is <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a3be5a91214f39bf357996e9b3d4741c8" title="Starts an authorization process.">startAuthorize()</a> followed by <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#aa8102afbc7fa52027e15f4a952288923" title="Obtains an authenticated identity.">getIdentity()</a>.</p>
<p>This requires that the process is created with an authorization scope that includes sufficient rights for authentication (at least <a class="el" href="classWt_1_1Auth_1_1OAuthService.html#a040351f2a2b956c059ea9974e6829d13" title="Returns the scope needed for authentication.">OAuthService::authenticationScope()</a>)</p>
<p>The authentication process ends with the <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#a22d65da9fa8a510363beff4b6e057d8b" title="Authentication signal.">authenticated()</a> signal which signals the obtained identity.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>To be able to use a popup (instead of a page redirect), you should connect this method directly to an, since popup windows are blocked in most web browsers unless they are the direct consequence of an event. </dd></dl>

</div>
</div>
<a class="anchor" id="a3be5a91214f39bf357996e9b3d4741c8"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::startAuthorize" ref="a3be5a91214f39bf357996e9b3d4741c8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Auth::OAuthProcess::startAuthorize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Starts an authorization process. </p>
<p>This starts an authorization process to request an accesstoken to access protected information within the process scope.</p>
<p>The authorization process ends with the <a class="el" href="classWt_1_1Auth_1_1OAuthProcess.html#ad1f0c2b2915d4d2e75143b1d73170b86" title="Authorization signal.">authorized()</a> signal which signals the obtained token.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>To be able to use a popup (instead of a page redirect), you should connect this method directly to an, since popup windows are blocked in most web browsers unless they are the direct consequence of an event. </dd></dl>

</div>
</div>
<a class="anchor" id="afac487675741149ccc7b6172d8856297"></a><!-- doxytag: member="Wt::Auth::OAuthProcess::token" ref="afac487675741149ccc7b6172d8856297" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1Auth_1_1OAuthAccessToken.html">OAuthAccessToken</a>&amp; Wt::Auth::OAuthProcess::token </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the access token. </p>
<p>This returns the access token that was obtained in the last authorization cycle. </p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>