-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Niblett
committed
Oct 16, 2012
1 parent
21deb2d
commit 562c29d
Showing
3 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,20 +98,18 @@ | |
<p>and now login with Google or Facebook accounts.</p> | ||
</div> | ||
<div class="span9"> | ||
<p>You can sign in from the link at the top right. There are two built-in accounts you | ||
can user, <code>[email protected]</code> and <code>[email protected]</code>. | ||
Both have password <code>pass</code>. The <code>zenith</code> account is an admin, and | ||
can do more than <code>nadir</code> which is a normal user account. The dummy accounts, | ||
of the form <code>[email protected]</code>all have the password <code>acme</code></p> | ||
<p>You can sign in from the link at the top right. There is a built-in account you | ||
can user, <code>[email protected]</code>. | ||
It has password <code>pass</code>. The <code>zenith</code> account is a normal user account.</p> | ||
<p>You can also register for an account. You need to provide an Email which you control for this | ||
as a registration code will be sent to this Email address. Once you're registered you can use this | ||
account, unless someone suspends it.</p> | ||
<p>If you forget your password you can reset it. An email is sent to you with a code and a link. Either | ||
enter the code or follow the link to do the reset.</p> | ||
<p>When logged in as <code>zenith</code> you can list users and choose whether to suspend them or not. | ||
A suspended user cannot login.</p> | ||
<p>For convenience we allow users to log in with Google or Facebook accounts. In each case we grab | ||
the Email address, but no registration is required.</p> | ||
the Email address, but no registration is required. Its straightforward to add other OAuth 2 providers, | ||
in addition to Facebook. Note that the token is invalidated as soon as we've read the Email address. | ||
This increases security, but its an odd use of OAuth.</p> | ||
<p>In practice all the URLs must run under <code>HTTPS</code>, since passwords are contained in the | ||
HTTP requests, and since we use Ajax calls where going from <code>HTTP</code> to <code>HTTPS</code>, | ||
which is cross-domain, is not allowed. This demo uses <code>HTTPS</code> throughout. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,20 +147,18 @@ <h2>You can</h2> | |
<p>and now login with Google or Facebook accounts.</p> | ||
</div> | ||
<div class="span9"> | ||
<p>You can sign in from the link at the top right. There are two built-in accounts you | ||
can user, <code>[email protected]</code> and <code>[email protected]</code>. | ||
Both have password <code>pass</code>. The <code>zenith</code> account is an admin, and | ||
can do more than <code>nadir</code> which is a normal user account. The dummy accounts, | ||
of the form <code>[email protected]</code>all have the password <code>acme</code></p> | ||
<p>You can sign in from the link at the top right. There is a built-in account you | ||
can user, <code>[email protected]</code>. | ||
It has password <code>pass</code>. The <code>zenith</code> account is a normal user account.</p> | ||
<p>You can also register for an account. You need to provide an Email which you control for this | ||
as a registration code will be sent to this Email address. Once you're registered you can use this | ||
account, unless someone suspends it.</p> | ||
<p>If you forget your password you can reset it. An email is sent to you with a code and a link. Either | ||
enter the code or follow the link to do the reset.</p> | ||
<p>When logged in as <code>zenith</code> you can list users and choose whether to suspend them or not. | ||
A suspended user cannot login.</p> | ||
<p>For convenience we allow users to log in with Google or Facebook accounts. In each case we grab | ||
the Email address, but no registration is required.</p> | ||
the Email address, but no registration is required. Its straightforward to add other OAuth 2 providers, | ||
in addition to Facebook. Note that the token is invalidated as soon as we've read the Email address. | ||
This increases security, but its an odd use of OAuth.</p> | ||
<p>In practice all the URLs must run under <code>HTTPS</code>, since passwords are contained in the | ||
HTTP requests, and since we use Ajax calls where going from <code>HTTP</code> to <code>HTTPS</code>, | ||
which is cross-domain, is not allowed. This demo uses <code>HTTPS</code> throughout. | ||
|