Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
89d8786e
Commit
89d8786e
authored
14 years ago
by
Lloyd Hilaiel
Browse files
Options
Downloads
Patches
Plain Diff
plug the RP into authority
parent
d33df7a3
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
authority/jsapi/include.js
+6
-0
6 additions, 0 deletions
authority/jsapi/include.js
rp/index.html
+3
-3
3 additions, 3 deletions
rp/index.html
rp/jquery-min.js
+16
-0
16 additions, 0 deletions
rp/jquery-min.js
with
25 additions
and
3 deletions
authority/jsapi/include.js
+
6
−
0
View file @
89d8786e
// this is the file that the RP includes to shim in the
// navigator.id.getVerifiedEmail() function
if
(
!
navigator
.
id
)
{
navigator
.
id
=
{}
}
if
(
!
navigator
.
id
.
getVerifiedEmail
)
{
navigator
.
id
.
getVerifiedEmail
=
function
()
{
alert
(
"
getVerifiedEmail invoked
"
);
};
}
This diff is collapsed.
Click to expand it.
rp/index.html
+
3
−
3
View file @
89d8786e
...
...
@@ -7,15 +7,15 @@ computer usage for little ones.
</p>
<p>
To get started,
<
span
id=
"login"
>
log in
</
span
>
.
To get started,
<
a
href=
"#"
id=
"login"
>
log in
</
a
>
.
</p>
</body>
<script
src=
"jquery-min.js"
></script>
<script
src=
"
http://identity.mozilla.org
/jsapi/include.js"
></script>
<script
src=
"
../authority
/jsapi/include.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
"
#
butto
n
"
).
click
(
function
()
{
$
(
"
#
logi
n
"
).
click
(
function
()
{
navigator
.
id
.
getVerifiedEmail
(
function
(
assertion
)
{
// assertion at this point is a blob that looks like this:
//
...
...
This diff is collapsed.
Click to expand it.
rp/jquery-min.js
0 → 100644
+
16
−
0
View file @
89d8786e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment