/
index.html
executable file
·278 lines (271 loc) · 15.7 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
---
okta:
baseUrl: https://live-widget.oktapreview.com
clientId: 0oaexo9c530ZUVuOj0h7
redirectUri: http://localhost:4000
issuer: https://live-widget.oktapreview.com/oauth2/ausexqn31sz3HMxdf0h7
logo: //logo.clearbit.com/okta.com
domainName: okta.com
color1: "#007dc1"
color2: "#a7a7a7"
color3:
color4:
authServerId: default
defaultScopes: "'openid', 'email', 'profile'"
googleIdpId: None
facebookIdpId: None
linkedinIdpId: 0oafljpqp9YlZmE2N0h7
samlIdpId:
idpDiscoveryPage:
javascriptLibraries:
- src: //unpkg.com/csslint@1.0.5/dist/csslint.js
- src: //unpkg.com/vue
- src: //cdnjs.cloudflare.com/ajax/libs/jshint/2.9.5/jshint.min.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/codemirror.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/javascript/javascript.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/css/css.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/sass/sass.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/lint/lint.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/lint/javascript-lint.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/lint/css-lint.js
- src: //cdnjs.cloudflare.com/ajax/libs/jshint/2.9.5/jshint.min.js
- src: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/edit/matchbrackets.js
- src: //use.fontawesome.com/releases/v5.0.13/js/all.js
integrity: sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe
defer: true
- src: https://code.jquery.com/jquery-3.3.1.js
- src: https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js
integrity: sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49
- src: https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js
integrity: sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T
- src: https://cdnjs.cloudflare.com/ajax/libs/holder/2.9.4/holder.min.js
- src: https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js
- src: https://unpkg.com/liquidjs/dist/liquid.min.js
- src: https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/3.0.0-beta.1/js/bootstrap-colorpicker.min.js
- src: //cdn.jsdelivr.net/npm/node-vibrant@3.0.0/dist/vibrant.min.js
stylesheets:
- href: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/codemirror.css
- href: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/lint/lint.css
- href: //cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/theme/neat.css
integrity: sha256-WMLC5bxpwvLiouYZo3maC9cKh1TBNxBNqrSjnlP0JQM=
- href: https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/3.0.0-beta.1/css/bootstrap-colorpicker.css
author: "Joel Franusic <joel@franusic.com>"
title: Super Widget Demo
description: "Okta Sign-In Widget Customization demo"
---
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ page.description }}">
<meta name="author" content="{{ page.author }}">
<link rel="shortcut icon" href="static/img/favicon.ico" type="image/vnd.microsoft.icon"/>
<title>{{ site.title }}</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<script src="static/js/okta-sign-in.min.js" type="text/javascript"></script>
<link href="https://ok1static.oktacdn.com/assets/js/sdk/okta-signin-widget/2.7.0/css/okta-sign-in.min.css" type="text/css" rel="stylesheet"/>
<script src="https://ok1static.oktacdn.com/assets/js/sdk/okta-auth-js/1.11.0/okta-auth-js.min.js" type="text/javascript"></script>
{% for library in page.javascriptLibraries %}
<script {% if library.defer %}defer {% endif %}src="{{ library.src }}"{% if library.integrity %} integrity="{{ library.integrity}}" crossorigin="anonymous"{% endif %}></script>{% endfor %}
{% for stylesheet in page.stylesheets %}
<link rel="stylesheet" href="{{ stylesheet.href }}"{% if stylesheet.integrity %} integrity="{{ stylesheet.integrity}}" crossorigin="anonymous"{% endif %}>{% endfor %}
<!-- Custom styles for this template -->
<link rel="stylesheet" href="static/css/super-widget.css">
<script type="text/javascript">
{% include authJsRedirect.js %}
</script>
</head>
<body>
<!-- NOTE:
You are welcome to change whatever you want in this file to suit your needs.
However, we have plants to replace the .site-header and #nav-tabContent tags below with Vue.js components.
Feel free to make this change yourself! Otherwise, be cautious modifying these tags, as they are likely to change soon.-->
<nav class="site-header sticky-top py-1">
<div class="nav" id="nav-tab" role="tablist">
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false" style="display: none;">Logout</a>
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
<a class="nav-item nav-link" id="nav-custom-tab" data-toggle="tab" href="#nav-custom" role="tab" aria-controls="nav-custom" aria-selected="false">Custom CSS</a>
<a class="nav-item nav-link" id="nav-onclick-tab" data-toggle="tab" href="#" role="tab" aria-controls="nav-onclick" aria-selected="false">OnClick > Redirect</a>
<a class="nav-item nav-link" id="nav-nowidget-tab" data-toggle="tab" href="#nav-nowidget" role="tab" aria-controls="nav-onclick" aria-selected="false">No-widget</a>
<a class="nav-item nav-link" id="nav-social-tab" data-toggle="tab" href="#nav-social" role="tab" aria-controls="nav-social" aria-selected="false">Social</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<!-- FIXME: Change "name" to "id" so that it matches above -->
{% include tab-profile.html name="profile" %}
{% include tab-pane.html name="home" backgroundUrl="https://widget.oktaprise.com/static/img/okta-brand/background/SFbayBridge.jpg" active="True" %}
{% include tab-nowidget.html name="nowidget" backgroundUrl="https://widget.oktaprise.com/static/img/okta-brand/background/focus.jpg" %}
{% include tab-pane.html name="custom" backgroundUrl="https://widget.oktaprise.com/static/img/okta-brand/background/SFbayBridge.jpg" %}
{% include tab-pane.html name="social" backgroundUrl="https://widget.oktaprise.com/static/img/okta-brand/background/NewYork.jpg" %}
</div>
<div class="modal fade" id="configuration-modal" tabindex="-1" role="dialog" aria-labelledby="configuration-modal-label" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="configuration-modal">Configuration</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="p-2">
<form id="settings">
<div class="form-group row has-feedback">
<label for="okta.domainName" class="col-sm-3 col-form-label">Customer Domain</label>
<div class="col-sm-9">
<div class="input-group">
<input class="form-control border-right-0 border" id="okta.domainName" type="text" value="{{ page.okta.domainName }}">
<span class="input-group-append">
<div class="input-group-text bg-transparent input-group-addon"><img id="logo-preview" src="//logo.clearbit.com/okta.com" width="20px"/></div>
</span>
</div>
</div>
</div>
<div class="form-group row has-feedback">
<label for="okta.color1" class="col-sm-3 col-form-label">Color #1</label>
<div class="col-sm-9">
<div id="color1" class="input-group colorpicker-component">
<input class="form-control border-right-0 border" id="okta.color1" type="text" value="{{ page.okta.color1 }}">
<span class="input-group-append">
<div class="input-group-text bg-transparent input-group-addon"><i></i></div>
</span>
</div>
</div>
</div>
<div class="form-group row has-feedback">
<label for="okta.color2" class="col-sm-3 col-form-label">Color #2</label>
<div class="col-sm-9">
<div id="color2" class="input-group colorpicker-component">
<input class="form-control border-right-0 border" id="okta.color2" type="text" value="{{ page.okta.color2 }}">
<span class="input-group-append">
<div class="input-group-text bg-transparent input-group-addon"><i></i></div>
</span>
</div>
</div>
</div>
<!-- We only need 2 colors ... for now
<div class="form-group row">
<label for="okta.color3" class="col-sm-3 col-form-label">Color #3</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.color3" value="{{ page.okta.color3 }}">
</div>
</div>
<div class="form-group row">
<label for="okta.color4" class="col-sm-3 col-form-label">Color #4</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.color4" value="{{ page.okta.color4 }}">
</div>
</div>
-->
<hr>
<div class="form-group row">
<label for="okta.baseUrl" class="col-sm-3 col-form-label">Okta Org</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.baseUrl" value="{{ page.okta.baseUrl }}">
</div>
</div>
<div class="form-group row">
<label for="okta.clientId" class="col-sm-3 col-form-label">Client ID</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="okta.clientId" value="{{ page.okta.clientId }}">
</div>
</div>
<div class="form-group row">
<label for="okta.issuer" class="col-sm-3 col-form-label">Issuer</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="okta.issuer" value="{{ page.okta.issuer }}">
</div>
</div>
<div class="form-group row">
<label for="okta.redirectUri" class="col-sm-3 col-form-label">Redirect URI</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.redirectUri" value="{{ page.okta.redirectUri }}">
</div>
</div>
<!-- Not needed, since this is already defined in "Issuer"
<div class="form-group row">
<label for="okta.authServerId" class="col-sm-3 col-form-label">Auth Server ID</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.authServerId" value="{{ page.okta.authServerId }}">
</div>
</div>
-->
<div class="form-group row">
<label for="okta.defaultScopes" class="col-sm-3 col-form-label">Default Scopes</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.defaultScopes" value="{{ page.okta.defaultScopes }}">
</div>
</div>
<div class="form-group row">
<label for="okta.googleIdpId" class="col-sm-3 col-form-label">Google IdP ID</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.googleIdpId" value="{{ page.okta.googleIdpId }}">
</div>
</div>
<div class="form-group row">
<label for="okta.facebookIdpId" class="col-sm-3 col-form-label">Facebook IdP ID</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.facebookIdpId" value="{{ page.okta.facebookIdpId }}">
</div>
</div>
<div class="form-group row">
<label for="okta.linkedinIdpId" class="col-sm-3 col-form-label">LinkedIn IdP ID</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.linkedinIdpId" value="{{ page.okta.linkedinIdpId }}">
</div>
</div>
<!-- FIXME: Add support for SAML IdP and IdP Discovery functionality!
<div class="form-group row">
<label for="okta.samlIdpId" class="col-sm-3 col-form-label">SAML IdP ID</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.samlIdpId" value="{{ page.okta.samlIdpId }}">
</div>
</div>
<div class="form-group row">
<label for="okta.idpDiscoveryPage" class="col-sm-3 col-form-label">IdP Discovery Page</label>
<div class="col-sm-9">
<input type="url" class="form-control" id="okta.idpDiscoveryPage" value="{{ page.okta.idpDiscoveryPage }}">
</div>
</div>
-->
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="modal-save">Save changes</button>
</div>
</div>
</div>
</div><!-- #configuration-modal -->
<a href="#" class="floating-button" data-toggle="modal" data-target="#configuration-modal">
<i class="fas fa-wrench config-button"></i>
</a>
<footer class="container py-5">
<div class="row">
<div class="col-12 col-md">
<!-- <img src="static/img/example-logo.png" height="20px"/> -->
<small class="d-block mb-3 text-muted">© {{ site.time | date: '%Y' }} Okta, Inc.</small>
</div>
<div class="col-6 col-md">
<h5>Resources</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="https://developer.okta.com/code/javascript/okta_sign-in_widget">Okta Sign-In Widget Guide</a></li>
<li><a class="text-muted" href="https://github.com/okta/okta-signin-widget">Okta Sign-In Widget Source Code</a></li>
</ul>
</div>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="static/dist/sass.js"></script>
<script src="static/js/app-links.js"></script>
<script src="static/js/super-widget.js"></script>
</body>
</html>