-
Notifications
You must be signed in to change notification settings - Fork 4
/
draft-hunt-idevent-scim-00.txt
784 lines (468 loc) · 23.6 KB
/
draft-hunt-idevent-scim-00.txt
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
Network Working Group P. Hunt, Ed.
Internet-Draft Oracle
Intended status: Standards Track W. Denniss
Expires: September 21, 2016 Google
M. Ansari
Cisco
March 20, 2016
SCIM Event Extension
draft-hunt-idevent-scim-00
Abstract
This specification profiles the Identity Event Token specification to
define a set of identity events to be used with SCIM.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on September 21, 2016.
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Hunt, et al. Expires September 21, 2016 [Page 1]
Internet-Draft draft-hunt-idevent-scim March 2016
Table of Contents
1. Introduction and Overview . . . . . . . . . . . . . . . . . . 2
1.1. Notational Conventions . . . . . . . . . . . . . . . . . 2
1.2. Definitions . . . . . . . . . . . . . . . . . . . . . . . 3
2. SCIM Events . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1. Common Event Attributes . . . . . . . . . . . . . . . . . 3
2.2. Disclosure Profiles . . . . . . . . . . . . . . . . . . . 4
2.3. SCIM Events . . . . . . . . . . . . . . . . . . . . . . . 4
2.3.1. urn:ietf:params:event:SCIM:add . . . . . . . . . . . 4
2.3.2. urn:ietf:params:event:SCIM:create . . . . . . . . . . 5
2.3.3. urn:ietf:params:event:SCIM:activate . . . . . . . . . 7
2.3.4. urn:ietf:params:event:SCIM:modify . . . . . . . . . . 8
2.3.5. urn:ietf:params:event:SCIM:deactivate . . . . . . . . 8
2.3.6. urn:ietf:params:event:SCIM:delete . . . . . . . . . . 8
2.3.7. urn:ietf:params:event:SCIM:remove . . . . . . . . . . 9
2.3.8. urn:ietf:params:event:SCIM:password . . . . . . . . . 9
3. Security Considerations . . . . . . . . . . . . . . . . . . . 11
4. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 11
5. References . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1. Normative References . . . . . . . . . . . . . . . . . . 12
5.2. Informative References . . . . . . . . . . . . . . . . . 13
Appendix A. Contributors . . . . . . . . . . . . . . . . . . . . 13
Appendix B. Acknowledgments . . . . . . . . . . . . . . . . . . 13
Appendix C. Change Log . . . . . . . . . . . . . . . . . . . . . 13
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 13
1. Introduction and Overview
This specification profiles the Identity Event Token [idevent-token]
to define events for SCIM Protocol [RFC7644].
1.1. Notational Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119]. These
keywords are capitalized when used to unambiguously specify
requirements of the protocol or application features and behavior
that affect the interoperability and security of implementations.
When these words are not capitalized, they are meant in their
natural-language sense.
For purposes of readability examples are not URL encoded.
Implementers MUST percent encode URLs as described in Section 2.1 of
[RFC3986].
Hunt, et al. Expires September 21, 2016 [Page 2]
Internet-Draft draft-hunt-idevent-scim March 2016
Throughout this documents all figures MAY contain spaces and extra
line-wrapping for readability and space limitations. Similarly, some
URI's contained within examples, have been shortened for space and
readability reasons.
1.2. Definitions
This specification uses definitions from the specification
[idevent-token].
2. SCIM Events
SCIM events JSON objects that are encoded in JWT form as per
[idevent-token]. An event includes a eventUri which indicates the
type of event and the event specific attributes. An event also
includes standard JWT attributes "iss", "aud", "jti", and "iat" which
indicates the event publisher (issuer), the the event feeds
(audience), a token identifier, and the date of issue (iat).
2.1. Common Event Attributes
The following attributes are defined for all events defined in
Section 2.3 or any schema defined within the uri namespace
"urn:ietf:params:events:SCIM".
id
An optional multi-valued SCIM "id" value of the affected
resource(s) as defined in Section 3.1 [RFC7643]. If provided the
identifiers MUST correspond to the values referenced in
"resourceUris".
attributes
A multi-valued list of affected SCIM attributes. Each attribute
listed may be a fully-qualified attribute name or an attribute
"path" as defined in Figure 7 of Section 3.3.2 of [RFC7644]
values
A JSON object structure containing the affected attributes and
their associated values. If the "values" attribute is supplied,
the event message MUST be encrypted. Service providers SHOULD
take care to ensure that eligible subscribers are able to see
attribute values. Alternatively, subscribers MAY use the
resourceURIs to retrieve the final attribute values. When doing
so, the SCIM service provider can then assess the subscribers
right to obtain the actual attribute values.
Hunt, et al. Expires September 21, 2016 [Page 3]
Internet-Draft draft-hunt-idevent-scim March 2016
For a password change event, in maximal disclosure mode ( see
Section 2.2), the clear text password attribute value MAY be
included in the values"values" attribute.
2.2. Disclosure Profiles
SCIM events are intended to disclose the minimum amount of
information required to provide co-ordination between asynchronous
systems. This has the effect of eliminating most error signaling
conditions and simplifies privacy and security considerations.
For each event type, the following levels of disclosure are defined,
for which different security considerations may apply:
Minimal
In general, the main information content is the event description
itself. The event contents typically includes only REQUIRED
attributes. Because no data content is exchanged, encryption of
the event message is not required.
Default
In general the default information is exchanged. This includes
the "sub" attribute and a list of affected SCIM attributes.
Typically attribute values are not provided. Encryption of the
event message is typically not required unless otherwise stated.
Maximal
In maximal mode, all data involved in the state change is
exchanged. To prevent leakage of information, implementers SHOULD
encrypt events that convey attributes about resources. This
profile should typically be used when co-ordinating information
between tightly-coupled systems that are part of a common
administrative domain.
In the case of "minimal" and "default" disclosures, a subscriber MAY
use a follow-up SCIM GET (see Section 3.4 [RFC7644] to obtain the
current state of the resource (sub) following the event. While this
may be seen as costly (as a second call), using SCIM GET enables
simpler error signalling, access control, distribution enforcement by
the event publisher.
2.3. SCIM Events
2.3.1. urn:ietf:params:event:SCIM:add
The specified resource URI was added to the feed. An add does not
indicate a resource is new or has been recently created. For
example, an existing user has had a new role (e.g. CRM_User) added
to their profile which has caused their resource to join a feed.
Hunt, et al. Expires September 21, 2016 [Page 4]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is an example of a minimal disclosure Add Event
message(it has been modified for readability):
{
"jti": "6164f3bbf6ff41a88dc94f18cb0620e8",
"eventUris":[
"urn:ietf:params:event:SCIM:add"
],
"iat": 1458505044,
"iss":"https://scim.example.com",
"aud":[
"https://scim.example.com/Feeds/98d52461fa5bbc879593b7754"
],
"sub": "https://scim.example.com/Users/2b2f880af6674ac284bae9381673d462",
}
Figure 1: Example SCIM Add Event
2.3.2. urn:ietf:params:event:SCIM:create
The new resource URI has been created at the service provider and has
been added to the feed. When a CREATE event is sent, a corresponding
ADD event is not issued. In "minimal" disclosure mode, event
specific data is returned. In "default" disclosure, the "attributes"
attribute is returned disclosing what attributes were created at the
publisher. In "maximal" disclosure mode, set of values reflecting
the final state of the resource at the service provider are provided
in the "values" attribute and MUST be encrypted as a JWE (see
[idevent-token]).
Hunt, et al. Expires September 21, 2016 [Page 5]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is an example SCIM Create event message(it has been
modified for readability) and uses maximal disclosure:
{
"jti": "4d3559ec67504aaba65d40b0363faad8",
"eventUris":[
"urn:ietf:params:event:SCIM:create"
],
"iat": 1458496404,
"iss":"https://scim.example.com",
"aud":[
"https://scim.example.com/Feeds/98d52461fa5bbc879593b7754",
"https://scim.example.com/Feeds/5d7604516b1d08641d7676ee7"
],
"sub": "https://scim.example.com/Users/44f6142df96bd6ab61e7521d9",
"urn:ietf:params:event:SCIM:create":{
"attributes":["id","name","userName","password","emails"],
"values":{
"emails":[
{"type":"work","value":"[email protected]"}
],
"password":"not4u2no",
"userName":"jdoe",
"id":"44f6142df96bd6ab61e7521d9",
"name":{
"givenName":"John",
"familyName":"Doe"
}
}
}
}
Figure 2: Example SCIM Create Event (Maximal Disclosure)
In the above example, the user "jdoe" is created with values an email
address, an initial password, and a name. Note that when raw data is
sent, it is advisable to protect the event using JWE (see Section 2.2
[idevent-token]).
Hunt, et al. Expires September 21, 2016 [Page 6]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is an example SCIM Create event message(it has been
modified for readability) and uses default disclosure:
{
"jti": "4d3559ec67504aaba65d40b0363faad8",
"eventUris":[
"urn:ietf:params:event:SCIM:create"
],
"iat": 1458496404,
"iss":"https://scim.example.com",
"aud":[
"https://scim.example.com/Feeds/98d52461fa5bbc879593b7754",
"https://scim.example.com/Feeds/5d7604516b1d08641d7676ee7"
],
"sub": "https://scim.example.com/Users/44f6142df96bd6ab61e7521d9",
"urn:ietf:params:event:SCIM:create":{
"attributes":["id","name","userName","password","emails"],
}
}
The event above notifies the subscriber which attributes are
available from the SCIM event publisher, but does not convey the
actual information. The subscriber MAY retrieve that information by
performing a SCIM GET to the "sub" value specified.
Figure 3: Example SCIM Create Event (Default Disclosure)
2.3.3. urn:ietf:params:event:SCIM:activate
The specified resource (e.g. User) has been activated. This
optional event is used to indicate a high-level change in state as
agreed between the publisher and subscriber. For example, an
activated resource is one that can now have an active session (may
log in) from a security perspective (may log in). Typically this
event discloses only minimal information.
Hunt, et al. Expires September 21, 2016 [Page 7]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is an example of a minimal disclosure Activate Event
message(it has been modified for readability):
{
"jti": "6164f3bbf6ff41a88dc94f18cb0620e8",
"eventUris":[
"urn:ietf:params:event:SCIM:activate"
],
"iat": 1458505044,
"iss":"https://scim.example.com",
"aud":[
"https://scim.example.com/Feeds/98d52461fa5bbc879593b7754"
],
"sub": "https://scim.example.com/Users/2b2f880af6674ac284bae9381673d462",
}
Figure 4: Example SCIM Activate Event
2.3.4. urn:ietf:params:event:SCIM:modify
The specified resource has been updated (e.g. one or more attributes
has changed). As with the create event, this event MAY be expressed
in minimal, default, and maximal modes.
2.3.5. urn:ietf:params:event:SCIM:deactivate
The specified resource (e.g. User) has been deactivated and
disabled. The exact meaning must be agreed to by a SCIM publisher
and its corresponding subscriber. Typically this means the sub may
no longer have an active security session. As with the activate
event, this event has minimal disclosure requirements.
2.3.6. urn:ietf:params:event:SCIM:delete
The specified resource has been deleted from the SCIM publisher. The
resource is also removed from the feed. When a DELETE is sent, a
corresponding REMOVE is not issued. A delete event has minimal
disclosure profile only.
Hunt, et al. Expires September 21, 2016 [Page 8]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is an example of a minimal disclosure Delete Event
message(it has been modified for readability):
{
"jti": "6164f3bbf6ff41a88dc94f18cb0620e8",
"eventUris":[
"urn:ietf:params:event:SCIM:delete"
],
"iat": 1458505044,
"iss":"https://scim.example.com",
"aud":[
"https://scim.example.com/Feeds/98d52461fa5bbc879593b7754"
],
"sub": "https://scim.example.com/Users/2b2f880af6674ac284bae9381673d462",
}
Figure 5: Example SCIM Delete Event
2.3.7. urn:ietf:params:event:SCIM:remove
The specified resource has been removed from the feed. Removal does
not indicate that the resource was deleted or otherwise deactivated.
This event has minimal disclosure.
The following is an example of a minimal disclosure Remove Event
message(it has been modified for readability):
{
"jti": "6164f3bbf6ff41a88dc94f18cb0620e8",
"eventUris":[
"urn:ietf:params:event:SCIM:remove"
],
"iat": 1458505044,
"iss":"https://scim.example.com",
"aud":[
"https://scim.example.com/Feeds/98d52461fa5bbc879593b7754"
],
"sub": "https://scim.example.com/Users/2b2f880af6674ac284bae9381673d462",
}
Figure 6: Example SCIM Remove Event
2.3.8. urn:ietf:params:event:SCIM:password
The specified resource (e.g. User) has changed its password or the
password has been reset. When the password has changed, the
"attributes" attribute is supplied with the value "password".
Hunt, et al. Expires September 21, 2016 [Page 9]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is a non-normative example showing a password change
event using minimal disclosure:
{
"jti": "3d0c3cf797584bd193bd0fb1bd4e7d30",
"eventUris":[
"urn:ietf:params:event:SCIM:password"
],
"iat": 1458496025,
"iss": "https://scim.example.com",
"aud":[
"https://jhub.example.com/Feeds/98d52461fa5bbc879593b7754",
"https://jhub.example.com/Feeds/5d7604516b1d08641d7676ee7"
],
"sub":
"https://scim.example.com/Users/44f6142df96bd6ab61e7521d9",
}
Figure 7: Example SCIM Password Change Event
The password event MAY be extended to conveys a password reset, the
event MAY include an additional eventUri value of
"urn:ietf:params:event:extension:example.com:password" which includes
the attribute "resetAttempts". "resetAttempts" indicates the current
number of reset attempts since the last successful login by the
subject.
Hunt, et al. Expires September 21, 2016 [Page 10]
Internet-Draft draft-hunt-idevent-scim March 2016
The following is a non-normative example showing a password reset
event:
{
"jti": "3d0c3cf797584bd193bd0fb1bd4e7d30",
"eventUris":[
"urn:ietf:params:event:SCIM:password",
"urn:ietf:params:event:extension:example.com:password"
],
"iat": 1458496025,
"iss": "https://scim.example.com",
"aud":[
"https://jhub.example.com/Feeds/98d52461fa5bbc879593b7754",
"https://jhub.example.com/Feeds/5d7604516b1d08641d7676ee7"
],
"sub":
"https://scim.example.com/Users/44f6142df96bd6ab61e7521d9",
"urn:ietf:params:event:SCIM:password":{
"id":"44f6142df96bd6ab61e7521d9",
},
"urn:ietf:params:event:extension:example.com:password":{
"resetAttempts":4
}
}
Figure 8: Example SCIM Password Reset Event
3. Security Considerations
[[TO BE COMPLETED]]
4. IANA Considerations
This section registers the schema extensions found in Section 2.3 in
the "Event" registry as per Section 4.2 [idevent-token].
Schema URI: See Section 2.3.
Schema Name: See corresponding names under Section 2.3.
Intented ResourceType: N/A. Events are not intended to be persisted
in SCIM.
Purpose: See each description in Section 2.3.
Single-valued Attributes: None.
Hunt, et al. Expires September 21, 2016 [Page 11]
Internet-Draft draft-hunt-idevent-scim March 2016
Multi-valued Attributes: All schemas in this specification share the
same attributes. See Section 2.1.
Summary of schema URI registrations:
+---------------------------------------+-------------+-------------+
| Schema URI | Name | Reference |
+---------------------------------------+-------------+-------------+
| urn:ietf:params:event:SCIM:add | Resource | Section 2.3 |
| | added to | |
| | Feed Event | |
| urn:ietf:params:event:SCIM:remove | Resource | Section 2.3 |
| | Removal | |
| | From Feed | |
| | Event | |
| urn:ietf:params:event:SCIM:create | New | Section 2.3 |
| | Resource | |
| | Event | |
| urn:ietf:params:event:SCIM:modify | Resource | Section 2.3 |
| | Modified | |
| | Event | |
| urn:ietf:params:event:SCIM:delete | Resource | Section 2.3 |
| | Deleted | |
| | Event | |
| urn:ietf:params:event:SCIM:activate | Resource | Section 2.3 |
| | Activated | |
| | Event | |
| urn:ietf:params:event:SCIM:deactivate | Resource | Section 2.3 |
| | Deactivated | |
| | Event | |
| urn:ietf:params:event:SCIM:password | Password | Section 2.3 |
| | Change | |
| | Event | |
+---------------------------------------+-------------+-------------+
5. References
5.1. Normative References
[idevent-subscription]
Oracle Corporation, "Identity Event Subscription Protocol
(work in progress)".
[idevent-token]
Oracle Corporation, "Identity Event Token (work in
progress)".
Hunt, et al. Expires September 21, 2016 [Page 12]
Internet-Draft draft-hunt-idevent-scim March 2016
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<http://www.rfc-editor.org/info/rfc2119>.
[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
RFC 3986, DOI 10.17487/RFC3986, January 2005,
<http://www.rfc-editor.org/info/rfc3986>.
[RFC7643] Hunt, P., Ed., Grizzle, K., Wahlstroem, E., and C.
Mortimore, "System for Cross-domain Identity Management:
Core Schema", RFC 7643, DOI 10.17487/RFC7643, September
2015, <http://www.rfc-editor.org/info/rfc7643>.
5.2. Informative References
[RFC7644] Hunt, P., Ed., Grizzle, K., Ansari, M., Wahlstroem, E.,
and C. Mortimore, "System for Cross-domain Identity
Management: Protocol", RFC 7644, DOI 10.17487/RFC7644,
September 2015, <http://www.rfc-editor.org/info/rfc7644>.
Appendix A. Contributors
Appendix B. Acknowledgments
The editor would like to thank the participants in the the SCIM
working group and the id-event list for their support of this
specification.
Appendix C. Change Log
Draft 00 - PH - First Draft
Authors' Addresses
Phil Hunt (editor)
Oracle Corporation
Email: [email protected]
William Denniss
Salesforce.com
Email: [email protected]
Hunt, et al. Expires September 21, 2016 [Page 13]
Internet-Draft draft-hunt-idevent-scim March 2016
Morteza Ansari
Cisco
Email: [email protected]
Hunt, et al. Expires September 21, 2016 [Page 14]