Newer
Older
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IT Lab Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<link rel="icon" href="https://weblogin.itlab.stanford.edu/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="https://weblogin.itlab.stanford.edu/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link href="/css/su-identity.css" rel="stylesheet">
<script src="/js/jquery-1.11.1.min.js"></script>
<!-- bootstrap -->
<script src="/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/js/html5.js"></script>
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="/css/ie8.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="/css/ie7.css" />
<![endif]-->
<!-- login CSS -->
<link rel="stylesheet" href="/css/login.css">
</head>
<body id="homepage">
<div id="su-wrap">
<!-- #su-wrap start -->
<div id="su-content">
<!-- #su-content start -->
<!-- Brandbar snippet start -->
<div id="brandbar">
<div class="container">
<a href="http://www.stanford.edu"> <img src="/images/brandbar-stanford-logo@2x.png" alt="Stanford University" width="153" height="22"> </a>
</div>
<!-- .container end -->
</div>
<!-- #brandbar end -->
<!-- Brandbar snippet end -->
<div id="header">
<div class="container">
<div style="margin: 1em 10px 0 0;">
<h2 class="pagetitle">IT Lab SAML 2.0 Identity Provider</h2>
</div>
</div>
<!-- /.container -->
</div>
<div id="content">
<div class="container">
<div class="row">
<div class="col-md-8 bg-warning">
<h3>Test It!</h3>
<p>
Test this IdP by logging into the <a href='https://webapp.itlab.stanford.edu/valid-user/'>Test
SP</a>
</p>
</div>
</div>
<div class="row"> </div>
<div class="row">
<div class="col-md-8">
<p>
There are three test users available on this IdP:
</p>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Username</th>
<th>displayName</th>
<th>eduPersonAffiliation</th>
<th>eduPersonPrincipalName</th>
</tr>
</thead>
<tbody>
<tr>
<td>jane</td>
<td>Jane Stanford</td>
<td>faculty</td>
<td>jane@itlab.stanford.edu</td>
</tr>
<tr>
<td>leland</td>
<td>Leland Stanford</td>
<td>staff</td>
<td>leland@itlab.stanford.edu</td>
</tr>
<tr>
<td>lelandjr</td>
<td>Leland Stanford, Jr</td>
<td>student</td>
<td>lelandjr@itlab.stanford.edu</td>
</tr>
</tbody>
</table>
<p>
Each account has the same password: <em>stanford</em>
</p>
<p>
Logging in as any of these users will return an assertion
to your SP similar to the ones that are released from the
production IdPs.
</p>
</div>
</div>
<div class="row">
<div class="col-md-8">
<h3>SP Configuration</h3>
<p>
You will need to download or link to the metadata for this IdP at
<a href='https://weblogin.itlab.stanford.edu/idp/shibboleth'>https://weblogin.itlab.stanford.edu/idp/shibboleth</a>
</p>
<p>
Unlike our production IdP, this service does not require metadata for your SP.
</p>
<p><strong>
Your SP metadata will be required to move to production
</strong></p>
<p>
Here is a sample <em>shibboleth2.xml</em> configuration file. Replace
<em>YOUR-ENTITY-ID</em> with the URL for your app's home page (e.g.
https://webapp.itlab.stanford.edu/) and <em>YOUR-EMAIL</em> with your,
or your team's, email address.
</p>
<pre>
<SPConfig xmlns="urn:mace:shibboleth:2.0:native:sp:config"
xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
clockSkew="180">
<ApplicationDefaults entityID="YOUR-ENTITY-ID" REMOTE_USER="eppn">
<Sessions lifetime="28800" timeout="3600" relayState="ss:mem"
checkAddress="false" handlerSSL="true"
cookieProps="; path=/; secure; HttpOnly">
<SSO entityID="https://weblogin.itlab.stanford.edu/idp/shibboleth">
SAML2
</SSO>
<Logout>Local</Logout>
<Handler type="MetadataGenerator" Location="/Metadata" signing="false"/>
</Sessions>
<Errors supportContact="YOUR-EMAIL-ADDRESS"
helpLocation="/about.html"
styleSheet="/shibboleth-sp/main.css"/>
<MetadataProvider type="XML" reloadInterval="7200"
uri="https://weblogin.itlab.stanford.edu/idp/shibboleth"
backingFilePath="/var/cache/shibboleth/weblogin-metata.xml"/>
<AttributeExtractor type="XML" validate="true"
reloadChanges="false" path="attribute-map.xml"/>
<AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/>
<CredentialResolver type="File" key="sp-key.pem" certificate="sp-cert.pem"/>
</ApplicationDefaults>
<SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/>
<ProtocolProvider type="XML" validate="true" reloadChanges="false" path="protocols.xml"/>
</SPConfig>
</pre>
<p>
Generate a self-signed certificate using the <tt>openssl</tt> command line. Replace <em>YOUR-HOST-NAME</em> with the fully qualified name of your host (or the loadbalancer in front of a cluster):
</p>
<pre>
% openssl req -x509 -newkey rsa:2048 -keyout sp-key.pem -out sp-cert.pem -nodes \
> -days 3650 -subj /CN=YOUR-HOST-NAME
Generating a 2048 bit RSA private key
...............+++
.............................................................................+++
writing new private key to 'sp-key.pem'
-----
</pre>
</div>
</div>
<div class="row">
<div class="col-md-12">
</div>
</div>
<div class="row">
<div class="col-md-12">
<p class="fineprint">
This is not the real Stanford WebLogin system. This is the
IT Lab Authentication System that we use for testing.
</p>
</div>
</div>
</div>
<!-- .container end -->
</div>
<!-- .content end -->
</div>
<!-- #su-content end -->
</div>
<!-- #su-wrap end -->
<!-- Global footer snippet start -->
<div id="global-footer">
<div class="container">
<div class="row">
<div class="col-xs-6 col-sm-2" id="bottom-logo"> <a href="http://itlab.stanford.edu"> <img width="105" height="49" alt="IT Lab" src="/images/bunsen-beaker-2.png"> </a> </div>
<!-- #bottom-logo end -->
<div class="col-xs-6 col-sm-10" id="bottom-text">
<ul>
<li class="home"><a href="http://www.stanford.edu">SU Home</a></li>
<li class="home"><a href="http://uit.stanford.edu">UIT Home</a></li>
<li class="search-stanford"><a href="http://stanford.edu/search/">Search Stanford</a></li>
</ul>
</div>
<!-- .bottom-text end -->
<div class="clear"></div>
<p class="copyright vcard col-sm-10">© <span class="fn org">Stanford University</span>. <span class="adr"> <span class="locality">Stanford</span>, <span class="region">California</span> <span class="postal-code">94305</span></span>. <span id="termsofuse"><a data-ua-label="global-footer" data-ua-action="copyright-complaints" class="su-link" href="http://www.stanford.edu/group/security/dmca.html">Copyright Complaints</a> <a data-ua-label="global-footer" data-ua-action="trademark-notice" class="su-link" href="https://adminguide.stanford.edu/chapter-1/subchapter-5/policy-1-5-4">Trademark Notice</a></span></p>
</div>
<!-- .row end -->
</div>
<!-- .container end -->
</div>
<!-- global-footer end -->
<!-- Global footer snippet end -->
</body>
</html>