-
Notifications
You must be signed in to change notification settings - Fork 0
/
SocialSignOn.page
43 lines (38 loc) · 1.58 KB
/
SocialSignOn.page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<apex:page showHeader="false" sidebar="false" standardStylesheets="false">
<apex:stylesheet value="{!$Resource.ssostyle}"/>
<head>
<script type="text/javascript">
(function() {
if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'object') window.janrain.settings = {};
janrain.settings.tokenUrl = 'SSO_LINK_HERE' +
'?site=https%3A%2F%2FSITE_DOMAIN_HERE%2F' +
'&flowtype=sso';
function isReady() { janrain.ready = true; };
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", isReady, false);
} else {
window.attachEvent('onload', isReady);
}
var e = document.createElement('script');
e.type = 'text/javascript';
e.id = 'janrainAuthWidget';
if (document.location.protocol === 'https:') {
e.src = 'https://rpxnow.com/js/lib/metadaddy/engage.js';
} else {
e.src = 'http://widget-cdn.rpxnow.com/js/lib/metadaddy/engage.js';
}
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(e, s);
})();
</script>
</head>
<h2>Developer Edition Customer Portal</h2>
<p>
<a href="SSO_LINK_HERE?site=https%3A%2F%2FSITE_DOMAIN_HERE%2F">
<apex:image value="{!$Resource.FBLogin}"/>
</a>
</p>
<br/>
<div class="janrainWidget" id="janrainEngageEmbed"></div>
</apex:page>