summaryrefslogtreecommitdiffstats
path: root/samples/OAuthClient/SampleWcf2Javascript.html
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-06-20 21:26:56 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-06-20 21:26:56 -0700
commit507e88d5c3e8263da48a0b9e695a35bc051f6b56 (patch)
treed5753afe4d0f5be1c652032a5af2751b0de77064 /samples/OAuthClient/SampleWcf2Javascript.html
parent1f77a2b10ed11ac084d1def41b3c891178b0520b (diff)
downloadDotNetOpenAuth-507e88d5c3e8263da48a0b9e695a35bc051f6b56.zip
DotNetOpenAuth-507e88d5c3e8263da48a0b9e695a35bc051f6b56.tar.gz
DotNetOpenAuth-507e88d5c3e8263da48a0b9e695a35bc051f6b56.tar.bz2
We have an implicit grant javascript client that can obtain an access token.
It doesn't know how to use it yet though.
Diffstat (limited to 'samples/OAuthClient/SampleWcf2Javascript.html')
-rw-r--r--samples/OAuthClient/SampleWcf2Javascript.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/samples/OAuthClient/SampleWcf2Javascript.html b/samples/OAuthClient/SampleWcf2Javascript.html
new file mode 100644
index 0000000..9ce3814
--- /dev/null
+++ b/samples/OAuthClient/SampleWcf2Javascript.html
@@ -0,0 +1,52 @@
+<!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>
+ <title>OAuth 2.0 client (implicit grant)</title>
+
+ <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
+ <script src="SampleWcf2Javascript.js" type="text/javascript"></script>
+</head>
+<body>
+ <h1>
+ DotNetOpenAuth OAuth 2.0 Client ASP.NET WebForms sample</h1>
+ <div>
+ <fieldset title="Authorization">
+ <p>
+ Check off the operations you&#39;d like to authorization this client to make on
+ behalf of your account on the resource server.<br />
+ Note that an authorization request may not actually result in you being prompted
+ to grant authorization if you&#39;ve granted it previously.&nbsp; The authorization
+ server remembers what you&#39;ve already approved.&nbsp; But even if you&#39;ve
+ requested and received authorization for all three scopes above, you can request
+ access tokens for subsets of this set of scopes to limit what you can do below.
+ </p>
+ <table border="0">
+ <tr>
+ <td>
+ <input type="checkbox" name='scope' value='http://tempuri.org/IDataApi/GetName' id="getNameScopeCheckbox" /><label for="getNameScopeCheckbox">GetName</label>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="checkbox" name='scope' value='http://tempuri.org/IDataApi/GetAge' id="getAgeScopeCheckbox" /><label for="getAgeScopeCheckbox">GetAge</label>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="checkbox" name='scope' value='http://tempuri.org/IDataApi/GetFavoriteSites' id="getFavoriteSitesScopeCheckbox" /><label for="getFavoriteSitesScopeCheckbox">GetFavoriteSites</label>
+ </td>
+ </tr>
+ </table>
+ <input type="submit" id="requestAuthorizationButton" value="Request Authorization" />
+ </fieldset>
+ <br />
+ <input type="submit" value="Get Name" id="getNameButton" disabled="disabled" />
+ <span id="nameLabel"></span>
+ <br />
+ <input type="submit" value="Get Age" id="getAgeButton" disabled="disabled" />
+ <span id="ageLabel"></span>
+ <br />
+ <input type="submit" value="Get Favorite Sites" id="getFavoriteSitesButton" disabled="disabled" />
+ <span id="favoriteSitesLabel"></span>
+</body>
+</html>