liblynx-api 1.1.3 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 987498e326520b72d372a8a1cf2812186f6885c4cc2afaf242041395d5b5738d
4
- data.tar.gz: 91a2742c2af8cf3c749d73dd0ae108d3be8af920d2b3f40fc495b7280ef0c60c
3
+ metadata.gz: 2fd7d3a83f2806f3ee1e22ee0a99ec1258a07e92ca6e0390bf40750b07677926
4
+ data.tar.gz: ea28b97d5920079254b9acb74773de593031b3c7e5ee28d0a76c500a57ae7765
5
5
  SHA512:
6
- metadata.gz: cb9588db4e26c973793c503b35b326ee3fe5ea72d22cdbf942f4100a660fa93d7fb0099c2eff68c93ee22c8cd7c6c3a09343fed1e8359e2e0c6ef21c98dda2d0
7
- data.tar.gz: 8e896baa9dd2053f59b1fc1443c79515b86811dbf4cf40504da6f7c62c23113abb18abe14b21ab08228dadfd588ebf7bd4a5098e3c4bd90cf14dff9505d062bc
6
+ metadata.gz: b08d0afe8d7ae0aaba3fc822e10533ebbada63f0720424e81786f97e64c36d682d3b37a0da2d1e41c8e92be11f0bc42cdfbf03a294e87e3f73e19711238ee43b
7
+ data.tar.gz: 1ac9575e769b768d0792815102416d13882cda15c2848e10e50114905b229bc3848bbaeda083870ef979c906a18513d83f69887468b5f3009674a7ba9f7d86ae
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  deploy:
2
2
  provider: rubygems
3
3
  api_key:
4
- secure: OxGYvmusVgh8GzIkRMTUXmTF/xNUs6W5pbVivRzCv1zlPmlFncbmd52WAytq7A5SioI07SYaaeF3Y9/AaEhh0vBteFcmWg32mMGt6FIAaOGyTi8s42mfp9RFZqcPZKb+DM/qr9pFPgUgFogJC7SIEEGhp07SOyrvK928A19H3XLOQbXTm11Pmf1+wBCuxOs84I74UflZw+qCRDfxGWheycna0fIEfev5tGeW/thotYKi2z5l4qNmqysnlW6zO380ORvschrWu+vSgTKELjo9d6AhK3dRBCC1c5VgVs0PaoLEpKRDtbBUuD8UmbKGTI/wgjEnwcj3S3FUoUGIBBis1WCX9TpQ7iSrWDAg1vQ3iKedWRJ65blt10kgwH5nRfk9JdmENviAGDNYwIGkKfMGRDZnq07gWUBSHx2kIKcvrFyovoHGJ8Zfk5b65YMB0JQw6sVx9kV4flstrJ4kgVMPOIy6U+RbSroSvJ2iOHsXxH1zTk4YtZrmow57jlQV4iUKOxkUIBdFKYCT9ucVOhfzfDoay4q4qY1Q/Ohf5GSJphNa7uwhjwnOkjiwvFTyfUiU6FD8NjIwlJ84dy3DrOmJBfj1Tj5/Z/hgH/lp/309T1rsY0fv5ebbktRg+L82mh0LK/bsFcVwskrOI7+WX6a4gmqBEZ4kdTNrYvU2R+VRuTY=
4
+ secure: "JNxZmL0OwCs/Z4TB+kdVcQSFf77WpLqqqRWUCYUSMwop952GO7MCzz4AxXF8W+OgClRTkWuxo08Fps2v25c5RqxARdvDHOcLT/Ysdq6Uf40qlZkyYHDPl1G1RtFGBOhW1HO3cjm6HCXJdRS1aeyo/SbEBKe6OkpOMnVuKIoDTcZwKYx3kaBnuY3orQaN7YSumnXL+vtGF+qDujNxAnbOy0V8O9BcCCoteAlMuvfv3oHgb+kIOP54MTcDs2ZHm0K/12D4TqGiMNlsXqy1TgOMvLbc5Vsx6kgaAfZDxwPHEZaU7DHZtNzf6jEK80IKKNaqeLBBrucMvhicRkEg8/arAooO/xzwzcz7WxZDIXqu591RW2mehAZ8k+Bw+oqnR/AWnpBjaMLY0yQZ0zVHXobxhzYYQBKvAWDeK9+FC9IqzwPlQ4YcshlLYMklwu9k3bOExhMTFh6iL70xSxNu4Ojzsdh/zp+kzcGLvK40L4rUFp0zdY5gBw0kA7da4g+hQ+F0fV7qRL17skDmP1Ya9i1lnghwRMm/Ny8u8lXRuMGtm5RpBq3fQlRCuaQZ2BoxYCvbf90i4G4YMLfxJDFgVL1sI69lwVSzrcQcpKuFMNhUDTjICVxHaJVaIcFN5J3CGE0K3+9BN/SKauHz+XJxnHPOumwD+hzxzjUwIo7vgw8uK1E="
5
5
  gem: liblynx-api
6
6
  on:
7
7
  tags: true
data/Gemfile.lock CHANGED
@@ -1,28 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- liblynx-api (1.1.3)
5
- heroics
6
- moneta
4
+ liblynx-api (1.2.1)
5
+ heroics (~> 0.1)
6
+ moneta (~> 1.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.3)
12
12
  erubis (2.7.0)
13
- excon (0.71.0)
14
- heroics (0.0.25)
13
+ excon (0.79.0)
14
+ heroics (0.1.2)
15
15
  erubis (~> 2.0)
16
16
  excon
17
17
  moneta
18
18
  multi_json (>= 1.9.2)
19
+ webrick
19
20
  json_schema (0.20.3)
20
- moneta (1.1.1)
21
- multi_json (1.14.1)
21
+ moneta (1.4.1)
22
+ multi_json (1.15.0)
22
23
  prmd (0.13.0)
23
24
  erubis (~> 2.7)
24
25
  json_schema (~> 0.3, >= 0.3.1)
25
- rake (10.5.0)
26
+ rake (13.0.1)
26
27
  rspec (3.8.0)
27
28
  rspec-core (~> 3.8.0)
28
29
  rspec-expectations (~> 3.8.0)
@@ -36,6 +37,7 @@ GEM
36
37
  diff-lcs (>= 1.2.0, < 2.0)
37
38
  rspec-support (~> 3.8.0)
38
39
  rspec-support (3.8.2)
40
+ webrick (1.7.0)
39
41
  yard (0.9.20)
40
42
 
41
43
  PLATFORMS
@@ -47,9 +49,10 @@ DEPENDENCIES
47
49
  json_schema (< 0.20.4)
48
50
  liblynx-api!
49
51
  prmd
50
- rake (< 11.0)
52
+ rake (< 14.0)
51
53
  rspec
54
+ webrick
52
55
  yard
53
56
 
54
57
  BUNDLED WITH
55
- 1.17.3
58
+ 2.2.3
data/api.md CHANGED
@@ -13,6 +13,7 @@ Stability: `production`
13
13
  | **created_at** | *date-time* | when account was created | `"2015-01-01T12:00:00Z"` |
14
14
  | **email_domains** | *string* | cr separated email domains | `"*.somedomain.com\nalt.somedomain2.com"` |
15
15
  | **enable_archimed** | *boolean* | enable archimed | `true` |
16
+ | **enable_federated_saml** | *boolean* | enable federated saml | `true` |
16
17
  | **enable_individual** | *boolean* | enable individual | `true` |
17
18
  | **enable_ip** | *boolean* | enable ip | `true` |
18
19
  | **enable_lib_portal_stats** | *boolean* | enable lib portal stats | `true` |
@@ -54,6 +55,7 @@ POST /api/accounts
54
55
  | **active** | *boolean* | active | `true` |
55
56
  | **email_domains** | *string* | cr separated email domains | `"*.somedomain.com\nalt.somedomain2.com"` |
56
57
  | **enable_archimed** | *boolean* | enable archimed | `true` |
58
+ | **enable_federated_saml** | *boolean* | enable federated saml | `true` |
57
59
  | **enable_individual** | *boolean* | enable individual | `true` |
58
60
  | **enable_ip** | *boolean* | enable ip | `true` |
59
61
  | **enable_lib_portal_stats** | *boolean* | enable lib portal stats | `true` |
@@ -80,6 +82,7 @@ $ curl -n -X POST https://connect.liblynx.com/api/accounts \
80
82
  "publisher_reference": "example",
81
83
  "email_domains": "*.somedomain.com\nalt.somedomain2.com",
82
84
  "enable_saml": true,
85
+ "enable_federated_saml": true,
83
86
  "enable_shibboleth": true,
84
87
  "shibboleth_entity_id": "example",
85
88
  "enable_ip": true,
@@ -113,6 +116,7 @@ HTTP/1.1 201 Created
113
116
  "name": "example",
114
117
  "publisher_reference": "example",
115
118
  "enable_saml": true,
119
+ "enable_federated_saml": true,
116
120
  "enable_shibboleth": true,
117
121
  "email_domains": "*.somedomain.com\nalt.somedomain2.com",
118
122
  "updated_at": "2015-01-01T12:00:00Z",
@@ -189,6 +193,7 @@ HTTP/1.1 200 OK
189
193
  "name": "example",
190
194
  "publisher_reference": "example",
191
195
  "enable_saml": true,
196
+ "enable_federated_saml": true,
192
197
  "enable_shibboleth": true,
193
198
  "email_domains": "*.somedomain.com\nalt.somedomain2.com",
194
199
  "updated_at": "2015-01-01T12:00:00Z",
@@ -274,6 +279,7 @@ PUT /api/accounts/{account_id}
274
279
  | **active** | *boolean* | active | `true` |
275
280
  | **email_domains** | *string* | cr separated email domains | `"*.somedomain.com\nalt.somedomain2.com"` |
276
281
  | **enable_archimed** | *boolean* | enable archimed | `true` |
282
+ | **enable_federated_saml** | *boolean* | enable federated saml | `true` |
277
283
  | **enable_individual** | *boolean* | enable individual | `true` |
278
284
  | **enable_ip** | *boolean* | enable ip | `true` |
279
285
  | **enable_lib_portal_stats** | *boolean* | enable lib portal stats | `true` |
@@ -300,6 +306,7 @@ $ curl -n -X PUT https://connect.liblynx.com/api/accounts/$ACCOUNT_ID \
300
306
  "publisher_reference": "example",
301
307
  "email_domains": "*.somedomain.com\nalt.somedomain2.com",
302
308
  "enable_saml": true,
309
+ "enable_federated_saml": true,
303
310
  "enable_shibboleth": true,
304
311
  "shibboleth_entity_id": "example",
305
312
  "enable_ip": true,
@@ -333,6 +340,7 @@ HTTP/1.1 200 OK
333
340
  "name": "example",
334
341
  "publisher_reference": "example",
335
342
  "enable_saml": true,
343
+ "enable_federated_saml": true,
336
344
  "enable_shibboleth": true,
337
345
  "email_domains": "*.somedomain.com\nalt.somedomain2.com",
338
346
  "updated_at": "2015-01-01T12:00:00Z",
@@ -354,6 +362,153 @@ HTTP/1.1 200 OK
354
362
  ```
355
363
 
356
364
 
365
+ ## <a name="resource-federatedsamlidp">Federatedsamlidp</a>
366
+
367
+ Stability: `production`
368
+
369
+
370
+
371
+ ### Attributes
372
+
373
+ | Name | Type | Description | Example |
374
+ | ------- | ------- | ------- | ------- |
375
+ | **entity_id** | *string* | entity_id | `"example"` |
376
+ | **id** | *integer* | unique identifier of federatedsamlidp | `42` |
377
+ | **organization_id** | *string* | organization_id | `"example"` |
378
+
379
+ ### <a name="link-POST-federatedsamlidp-/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps">Federatedsamlidp Create</a>
380
+
381
+ Create a new federatedsamlidp.
382
+
383
+ ```
384
+ POST /api/accounts/{account_id}/federatedsamlidps
385
+ ```
386
+
387
+ #### Required Parameters
388
+
389
+ | Name | Type | Description | Example |
390
+ | ------- | ------- | ------- | ------- |
391
+ | **entity_id** | *string* | entity_id | `"example"` |
392
+
393
+
394
+
395
+ #### Curl Example
396
+
397
+ ```bash
398
+ $ curl -n -X POST https://connect.liblynx.com/api/accounts/$ACCOUNT_ID/federatedsamlidps \
399
+ -d '{
400
+ "entity_id": "example"
401
+ }' \
402
+ -H "Content-Type: application/json"
403
+ ```
404
+
405
+
406
+ #### Response Example
407
+
408
+ ```
409
+ HTTP/1.1 201 Created
410
+ ```
411
+
412
+ ```json
413
+ {
414
+ "id": 42,
415
+ "organization_id": "example",
416
+ "entity_id": "example"
417
+ }
418
+ ```
419
+
420
+ ### <a name="link-DELETE-federatedsamlidp-/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%23%2Fdefinitions%2Ffederatedsamlidp%2Fdefinitions%2Fidentity)}">Federatedsamlidp Delete</a>
421
+
422
+ Delete an existing federatedsamlidp.
423
+
424
+ ```
425
+ DELETE /api/accounts/{account_id}/federatedsamlidps/{federatedsamlidp_id}
426
+ ```
427
+
428
+
429
+ #### Curl Example
430
+
431
+ ```bash
432
+ $ curl -n -X DELETE https://connect.liblynx.com/api/accounts/$ACCOUNT_ID/federatedsamlidps/$FEDERATEDSAMLIDP_ID \
433
+ -H "Content-Type: application/json"
434
+ ```
435
+
436
+
437
+ #### Response Example
438
+
439
+ ```
440
+ HTTP/1.1 200 OK
441
+ ```
442
+
443
+ ```json
444
+ null
445
+ ```
446
+
447
+ ### <a name="link-GET-federatedsamlidp-/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%23%2Fdefinitions%2Ffederatedsamlidp%2Fdefinitions%2Fidentity)}">Federatedsamlidp Info</a>
448
+
449
+ Info for existing federatedsamlidp.
450
+
451
+ ```
452
+ GET /api/accounts/{account_id}/federatedsamlidps/{federatedsamlidp_id}
453
+ ```
454
+
455
+
456
+ #### Curl Example
457
+
458
+ ```bash
459
+ $ curl -n https://connect.liblynx.com/api/accounts/$ACCOUNT_ID/federatedsamlidps/$FEDERATEDSAMLIDP_ID
460
+ ```
461
+
462
+
463
+ #### Response Example
464
+
465
+ ```
466
+ HTTP/1.1 200 OK
467
+ ```
468
+
469
+ ```json
470
+ {
471
+ "id": 42,
472
+ "organization_id": "example",
473
+ "entity_id": "example"
474
+ }
475
+ ```
476
+
477
+ ### <a name="link-GET-federatedsamlidp-/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps">Federatedsamlidp List</a>
478
+
479
+ List existing federatedsamlidps.
480
+
481
+ ```
482
+ GET /api/accounts/{account_id}/federatedsamlidps
483
+ ```
484
+
485
+
486
+ #### Curl Example
487
+
488
+ ```bash
489
+ $ curl -n https://connect.liblynx.com/api/accounts/$ACCOUNT_ID/federatedsamlidps
490
+ ```
491
+
492
+
493
+ #### Response Example
494
+
495
+ ```
496
+ HTTP/1.1 200 OK
497
+ ```
498
+
499
+ ```json
500
+ {
501
+ "federatedsamlidps": [
502
+ {
503
+ "id": 42,
504
+ "organization_id": "example",
505
+ "entity_id": "example"
506
+ }
507
+ ]
508
+ }
509
+ ```
510
+
511
+
357
512
  ## <a name="resource-identification">Identification</a>
358
513
 
359
514
  Stability: `production`
@@ -83,7 +83,7 @@ module LibLynxAPI
83
83
 
84
84
  # Get the default options.
85
85
  def self.default_options
86
- default_headers = {"Accept"=>"application/json", "User-Agent"=>"liblynx-api/1.1.2"}
86
+ default_headers = {"Accept"=>"application/json", "User-Agent"=>"liblynx-api/1.2.1"}
87
87
  {
88
88
  default_headers: default_headers,
89
89
  url: "https://connect.liblynx.com"
@@ -105,6 +105,13 @@ module LibLynxAPI
105
105
  @account_resource ||= Account.new(@client)
106
106
  end
107
107
 
108
+ #
109
+ #
110
+ # @return [Federatedsamlidp]
111
+ def federatedsamlidp
112
+ @federatedsamlidp_resource ||= Federatedsamlidp.new(@client)
113
+ end
114
+
108
115
  #
109
116
  #
110
117
  # @return [Identification]
@@ -179,6 +186,44 @@ module LibLynxAPI
179
186
  end
180
187
  end
181
188
 
189
+ #
190
+ class Federatedsamlidp
191
+ def initialize(client)
192
+ @client = client
193
+ end
194
+
195
+ # Create a new federatedsamlidp.
196
+ #
197
+ # @param account_identity:
198
+ # @param body: the object to pass as the request payload
199
+ def create(account_identity, body = {})
200
+ @client.federatedsamlidp.create(account_identity, body)
201
+ end
202
+
203
+ # Delete an existing federatedsamlidp.
204
+ #
205
+ # @param account_identity:
206
+ # @param federatedsamlidp_identity:
207
+ def delete(account_identity, federatedsamlidp_identity)
208
+ @client.federatedsamlidp.delete(account_identity, federatedsamlidp_identity)
209
+ end
210
+
211
+ # Info for existing federatedsamlidp.
212
+ #
213
+ # @param account_identity:
214
+ # @param federatedsamlidp_identity:
215
+ def info(account_identity, federatedsamlidp_identity)
216
+ @client.federatedsamlidp.info(account_identity, federatedsamlidp_identity)
217
+ end
218
+
219
+ # List existing federatedsamlidps.
220
+ #
221
+ # @param account_identity:
222
+ def list(account_identity)
223
+ @client.federatedsamlidp.list(account_identity)
224
+ end
225
+ end
226
+
182
227
  #
183
228
  class Identification
184
229
  def initialize(client)
@@ -309,6 +354,12 @@ module LibLynxAPI
309
354
  "boolean"
310
355
  ]
311
356
  },
357
+ "enable_federated_saml": {
358
+ "description": "enable federated saml",
359
+ "type": [
360
+ "boolean"
361
+ ]
362
+ },
312
363
  "enable_shibboleth": {
313
364
  "description": "enable shibboleth",
314
365
  "type": [
@@ -446,6 +497,9 @@ module LibLynxAPI
446
497
  "enable_saml": {
447
498
  "$ref": "#/definitions/account/definitions/enable_saml"
448
499
  },
500
+ "enable_federated_saml": {
501
+ "$ref": "#/definitions/account/definitions/enable_federated_saml"
502
+ },
449
503
  "enable_shibboleth": {
450
504
  "$ref": "#/definitions/account/definitions/enable_shibboleth"
451
505
  },
@@ -599,6 +653,9 @@ module LibLynxAPI
599
653
  "enable_saml": {
600
654
  "$ref": "#/definitions/account/definitions/enable_saml"
601
655
  },
656
+ "enable_federated_saml": {
657
+ "$ref": "#/definitions/account/definitions/enable_federated_saml"
658
+ },
602
659
  "enable_shibboleth": {
603
660
  "$ref": "#/definitions/account/definitions/enable_shibboleth"
604
661
  },
@@ -668,6 +725,9 @@ module LibLynxAPI
668
725
  "enable_saml": {
669
726
  "$ref": "#/definitions/account/definitions/enable_saml"
670
727
  },
728
+ "enable_federated_saml": {
729
+ "$ref": "#/definitions/account/definitions/enable_federated_saml"
730
+ },
671
731
  "enable_shibboleth": {
672
732
  "$ref": "#/definitions/account/definitions/enable_shibboleth"
673
733
  },
@@ -721,6 +781,120 @@ module LibLynxAPI
721
781
  }
722
782
  }
723
783
  },
784
+ "federatedsamlidp": {
785
+ "$schema": "http://json-schema.org/draft-04/hyper-schema",
786
+ "title": "Federatedsamlidp",
787
+ "description": "",
788
+ "stability": "production",
789
+ "strictProperties": true,
790
+ "type": [
791
+ "object"
792
+ ],
793
+ "definitions": {
794
+ "id": {
795
+ "description": "unique identifier of federatedsamlidp",
796
+ "readOnly": true,
797
+ "type": [
798
+ "integer"
799
+ ]
800
+ },
801
+ "organization_id": {
802
+ "description": "organization_id",
803
+ "readOnly": true,
804
+ "type": [
805
+ "string"
806
+ ]
807
+ },
808
+ "entity_id": {
809
+ "description": "entity_id",
810
+ "readOnly": true,
811
+ "type": [
812
+ "string"
813
+ ]
814
+ },
815
+ "identity": {
816
+ "$ref": "#/definitions/federatedsamlidp/definitions/id"
817
+ }
818
+ },
819
+ "links": [
820
+ {
821
+ "description": "Create a new federatedsamlidp.",
822
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps",
823
+ "method": "POST",
824
+ "rel": "create",
825
+ "schema": {
826
+ "properties": {
827
+ "entity_id": {
828
+ "$ref": "#/definitions/federatedsamlidp/definitions/entity_id"
829
+ }
830
+ },
831
+ "required": [
832
+ "entity_id"
833
+ ],
834
+ "type": [
835
+ "object"
836
+ ]
837
+ },
838
+ "title": "Create"
839
+ },
840
+ {
841
+ "description": "Delete an existing federatedsamlidp.",
842
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%23%2Fdefinitions%2Ffederatedsamlidp%2Fdefinitions%2Fidentity)}",
843
+ "method": "DELETE",
844
+ "rel": "destroy",
845
+ "title": "Delete",
846
+ "targetSchema": {
847
+ }
848
+ },
849
+ {
850
+ "description": "Info for existing federatedsamlidp.",
851
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%23%2Fdefinitions%2Ffederatedsamlidp%2Fdefinitions%2Fidentity)}",
852
+ "method": "GET",
853
+ "rel": "self",
854
+ "title": "Info"
855
+ },
856
+ {
857
+ "description": "List existing federatedsamlidps.",
858
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps",
859
+ "method": "GET",
860
+ "rel": "instances",
861
+ "title": "List",
862
+ "targetSchema": {
863
+ "properties": {
864
+ "federatedsamlidps": {
865
+ "items": {
866
+ "properties": {
867
+ "id": {
868
+ "$ref": "#/definitions/federatedsamlidp/definitions/id"
869
+ },
870
+ "organization_id": {
871
+ "$ref": "#/definitions/federatedsamlidp/definitions/organization_id"
872
+ },
873
+ "entity_id": {
874
+ "$ref": "#/definitions/federatedsamlidp/definitions/entity_id"
875
+ }
876
+ }
877
+ },
878
+ "type": [
879
+ "array"
880
+ ]
881
+ }
882
+ }
883
+ }
884
+ }
885
+ ],
886
+ "properties": {
887
+ "id": {
888
+ "$ref": "#/definitions/federatedsamlidp/definitions/id"
889
+ },
890
+ "organization_id": {
891
+ "$ref": "#/definitions/federatedsamlidp/definitions/organization_id"
892
+ },
893
+ "entity_id": {
894
+ "$ref": "#/definitions/federatedsamlidp/definitions/entity_id"
895
+ }
896
+ }
897
+ },
724
898
  "identification": {
725
899
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
726
900
  "title": "Identification",
@@ -1299,6 +1473,9 @@ module LibLynxAPI
1299
1473
  "account": {
1300
1474
  "$ref": "#/definitions/account"
1301
1475
  },
1476
+ "federatedsamlidp": {
1477
+ "$ref": "#/definitions/federatedsamlidp"
1478
+ },
1302
1479
  "identification": {
1303
1480
  "$ref": "#/definitions/identification"
1304
1481
  },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibLynxAPI
4
- VERSION = '1.1.3'
4
+ VERSION = '1.2.1'
5
5
  end
data/liblynx-api.gemspec CHANGED
@@ -17,10 +17,11 @@ Gem::Specification.new do |gem|
17
17
  gem.add_development_dependency 'bundler'
18
18
  gem.add_development_dependency 'json_schema', '< 0.20.4'
19
19
  gem.add_development_dependency 'prmd'
20
- gem.add_development_dependency 'rake', '< 11.0'
20
+ gem.add_development_dependency 'rake', '< 14.0'
21
21
  gem.add_development_dependency 'rspec'
22
+ gem.add_development_dependency 'webrick'
22
23
  gem.add_development_dependency 'yard'
23
24
 
24
- gem.add_dependency 'heroics'
25
- gem.add_dependency 'moneta'
25
+ gem.add_dependency 'heroics', '~> 0.1'
26
+ gem.add_dependency 'moneta', '~> 1.4'
26
27
  end
data/schema.json CHANGED
@@ -40,6 +40,12 @@
40
40
  "boolean"
41
41
  ]
42
42
  },
43
+ "enable_federated_saml": {
44
+ "description": "enable federated saml",
45
+ "type": [
46
+ "boolean"
47
+ ]
48
+ },
43
49
  "enable_shibboleth": {
44
50
  "description": "enable shibboleth",
45
51
  "type": [
@@ -177,6 +183,9 @@
177
183
  "enable_saml": {
178
184
  "$ref": "#/definitions/account/definitions/enable_saml"
179
185
  },
186
+ "enable_federated_saml": {
187
+ "$ref": "#/definitions/account/definitions/enable_federated_saml"
188
+ },
180
189
  "enable_shibboleth": {
181
190
  "$ref": "#/definitions/account/definitions/enable_shibboleth"
182
191
  },
@@ -330,6 +339,9 @@
330
339
  "enable_saml": {
331
340
  "$ref": "#/definitions/account/definitions/enable_saml"
332
341
  },
342
+ "enable_federated_saml": {
343
+ "$ref": "#/definitions/account/definitions/enable_federated_saml"
344
+ },
333
345
  "enable_shibboleth": {
334
346
  "$ref": "#/definitions/account/definitions/enable_shibboleth"
335
347
  },
@@ -399,6 +411,9 @@
399
411
  "enable_saml": {
400
412
  "$ref": "#/definitions/account/definitions/enable_saml"
401
413
  },
414
+ "enable_federated_saml": {
415
+ "$ref": "#/definitions/account/definitions/enable_federated_saml"
416
+ },
402
417
  "enable_shibboleth": {
403
418
  "$ref": "#/definitions/account/definitions/enable_shibboleth"
404
419
  },
@@ -452,6 +467,120 @@
452
467
  }
453
468
  }
454
469
  },
470
+ "federatedsamlidp": {
471
+ "$schema": "http://json-schema.org/draft-04/hyper-schema",
472
+ "title": "Federatedsamlidp",
473
+ "description": "",
474
+ "stability": "production",
475
+ "strictProperties": true,
476
+ "type": [
477
+ "object"
478
+ ],
479
+ "definitions": {
480
+ "id": {
481
+ "description": "unique identifier of federatedsamlidp",
482
+ "readOnly": true,
483
+ "type": [
484
+ "integer"
485
+ ]
486
+ },
487
+ "organization_id": {
488
+ "description": "organization_id",
489
+ "readOnly": true,
490
+ "type": [
491
+ "string"
492
+ ]
493
+ },
494
+ "entity_id": {
495
+ "description": "entity_id",
496
+ "readOnly": true,
497
+ "type": [
498
+ "string"
499
+ ]
500
+ },
501
+ "identity": {
502
+ "$ref": "#/definitions/federatedsamlidp/definitions/id"
503
+ }
504
+ },
505
+ "links": [
506
+ {
507
+ "description": "Create a new federatedsamlidp.",
508
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps",
509
+ "method": "POST",
510
+ "rel": "create",
511
+ "schema": {
512
+ "properties": {
513
+ "entity_id": {
514
+ "$ref": "#/definitions/federatedsamlidp/definitions/entity_id"
515
+ }
516
+ },
517
+ "required": [
518
+ "entity_id"
519
+ ],
520
+ "type": [
521
+ "object"
522
+ ]
523
+ },
524
+ "title": "Create"
525
+ },
526
+ {
527
+ "description": "Delete an existing federatedsamlidp.",
528
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%23%2Fdefinitions%2Ffederatedsamlidp%2Fdefinitions%2Fidentity)}",
529
+ "method": "DELETE",
530
+ "rel": "destroy",
531
+ "title": "Delete",
532
+ "targetSchema": {
533
+ }
534
+ },
535
+ {
536
+ "description": "Info for existing federatedsamlidp.",
537
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%23%2Fdefinitions%2Ffederatedsamlidp%2Fdefinitions%2Fidentity)}",
538
+ "method": "GET",
539
+ "rel": "self",
540
+ "title": "Info"
541
+ },
542
+ {
543
+ "description": "List existing federatedsamlidps.",
544
+ "href": "/api/accounts/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/federatedsamlidps",
545
+ "method": "GET",
546
+ "rel": "instances",
547
+ "title": "List",
548
+ "targetSchema": {
549
+ "properties": {
550
+ "federatedsamlidps": {
551
+ "items": {
552
+ "properties": {
553
+ "id": {
554
+ "$ref": "#/definitions/federatedsamlidp/definitions/id"
555
+ },
556
+ "organization_id": {
557
+ "$ref": "#/definitions/federatedsamlidp/definitions/organization_id"
558
+ },
559
+ "entity_id": {
560
+ "$ref": "#/definitions/federatedsamlidp/definitions/entity_id"
561
+ }
562
+ }
563
+ },
564
+ "type": [
565
+ "array"
566
+ ]
567
+ }
568
+ }
569
+ }
570
+ }
571
+ ],
572
+ "properties": {
573
+ "id": {
574
+ "$ref": "#/definitions/federatedsamlidp/definitions/id"
575
+ },
576
+ "organization_id": {
577
+ "$ref": "#/definitions/federatedsamlidp/definitions/organization_id"
578
+ },
579
+ "entity_id": {
580
+ "$ref": "#/definitions/federatedsamlidp/definitions/entity_id"
581
+ }
582
+ }
583
+ },
455
584
  "identification": {
456
585
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
457
586
  "title": "Identification",
@@ -1030,6 +1159,9 @@
1030
1159
  "account": {
1031
1160
  "$ref": "#/definitions/account"
1032
1161
  },
1162
+ "federatedsamlidp": {
1163
+ "$ref": "#/definitions/federatedsamlidp"
1164
+ },
1033
1165
  "identification": {
1034
1166
  "$ref": "#/definitions/identification"
1035
1167
  },
@@ -34,6 +34,12 @@
34
34
  "boolean"
35
35
  ]
36
36
  },
37
+ "enable_federated_saml": {
38
+ "description": "enable federated saml",
39
+ "type": [
40
+ "boolean"
41
+ ]
42
+ },
37
43
  "enable_shibboleth": {
38
44
  "description": "enable shibboleth",
39
45
  "type": [
@@ -171,6 +177,9 @@
171
177
  "enable_saml": {
172
178
  "$ref": "/schemata/account#/definitions/enable_saml"
173
179
  },
180
+ "enable_federated_saml": {
181
+ "$ref": "/schemata/account#/definitions/enable_federated_saml"
182
+ },
174
183
  "enable_shibboleth": {
175
184
  "$ref": "/schemata/account#/definitions/enable_shibboleth"
176
185
  },
@@ -317,6 +326,9 @@
317
326
  "enable_saml": {
318
327
  "$ref": "/schemata/account#/definitions/enable_saml"
319
328
  },
329
+ "enable_federated_saml": {
330
+ "$ref": "/schemata/account#/definitions/enable_federated_saml"
331
+ },
320
332
  "enable_shibboleth": {
321
333
  "$ref": "/schemata/account#/definitions/enable_shibboleth"
322
334
  },
@@ -386,6 +398,9 @@
386
398
  "enable_saml": {
387
399
  "$ref": "/schemata/account#/definitions/enable_saml"
388
400
  },
401
+ "enable_federated_saml": {
402
+ "$ref": "/schemata/account#/definitions/enable_federated_saml"
403
+ },
389
404
  "enable_shibboleth": {
390
405
  "$ref": "/schemata/account#/definitions/enable_shibboleth"
391
406
  },
@@ -0,0 +1,114 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/hyper-schema",
3
+ "title": "Federatedsamlidp",
4
+ "description": "",
5
+ "stability": "production",
6
+ "strictProperties": true,
7
+ "type": [
8
+ "object"
9
+ ],
10
+ "definitions": {
11
+ "id": {
12
+ "description": "unique identifier of federatedsamlidp",
13
+ "readOnly": true,
14
+ "type": [
15
+ "integer"
16
+ ]
17
+ },
18
+ "organization_id": {
19
+ "description": "organization_id",
20
+ "readOnly": true,
21
+ "type": [
22
+ "string"
23
+ ]
24
+ },
25
+ "entity_id": {
26
+ "description": "entity_id",
27
+ "readOnly": true,
28
+ "type": [
29
+ "string"
30
+ ]
31
+ },
32
+ "identity": {
33
+ "$ref": "/schemata/federatedsamlidp#/definitions/id"
34
+ }
35
+ },
36
+ "links": [
37
+ {
38
+ "description": "Create a new federatedsamlidp.",
39
+ "href": "/api/accounts/{(%2Fschemata%2Faccount%23%2Fdefinitions%2Fidentity)}/federatedsamlidps",
40
+ "method": "POST",
41
+ "rel": "create",
42
+ "schema": {
43
+ "properties": {
44
+ "entity_id": {
45
+ "$ref": "/schemata/federatedsamlidp#/definitions/entity_id"
46
+ }
47
+ },
48
+ "required": [
49
+ "entity_id"
50
+ ],
51
+ "type": [
52
+ "object"
53
+ ]
54
+ },
55
+ "title": "Create"
56
+ },
57
+ {
58
+ "description": "Delete an existing federatedsamlidp.",
59
+ "href": "/api/accounts/{(%2Fschemata%2Faccount%23%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%2Fschemata%2Ffederatedsamlidp%23%2Fdefinitions%2Fidentity)}",
60
+ "method": "DELETE",
61
+ "rel": "destroy",
62
+ "title": "Delete",
63
+ "targetSchema": {}
64
+ },
65
+ {
66
+ "description": "Info for existing federatedsamlidp.",
67
+ "href": "/api/accounts/{(%2Fschemata%2Faccount%23%2Fdefinitions%2Fidentity)}/federatedsamlidps/{(%2Fschemata%2Ffederatedsamlidp%23%2Fdefinitions%2Fidentity)}",
68
+ "method": "GET",
69
+ "rel": "self",
70
+ "title": "Info"
71
+ },
72
+ {
73
+ "description": "List existing federatedsamlidps.",
74
+ "href": "/api/accounts/{(%2Fschemata%2Faccount%23%2Fdefinitions%2Fidentity)}/federatedsamlidps",
75
+ "method": "GET",
76
+ "rel": "instances",
77
+ "title": "List",
78
+ "targetSchema": {
79
+ "properties": {
80
+ "federatedsamlidps": {
81
+ "items": {
82
+ "properties": {
83
+ "id": {
84
+ "$ref": "/schemata/federatedsamlidp#/definitions/id"
85
+ },
86
+ "organization_id": {
87
+ "$ref": "/schemata/federatedsamlidp#/definitions/organization_id"
88
+ },
89
+ "entity_id": {
90
+ "$ref": "/schemata/federatedsamlidp#/definitions/entity_id"
91
+ }
92
+ }
93
+ },
94
+ "type": [
95
+ "array"
96
+ ]
97
+ }
98
+ }
99
+ }
100
+ }
101
+ ],
102
+ "properties": {
103
+ "id": {
104
+ "$ref": "/schemata/federatedsamlidp#/definitions/id"
105
+ },
106
+ "organization_id": {
107
+ "$ref": "/schemata/federatedsamlidp#/definitions/organization_id"
108
+ },
109
+ "entity_id": {
110
+ "$ref": "/schemata/federatedsamlidp#/definitions/entity_id"
111
+ }
112
+ },
113
+ "id": "schemata/federatedsamlidp"
114
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liblynx-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Sablic
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
- version: '11.0'
61
+ version: '14.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "<"
67
67
  - !ruby/object:Gem::Version
68
- version: '11.0'
68
+ version: '14.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: yard
84
+ name: webrick
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,34 +95,48 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: heroics
98
+ name: yard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
- type: :runtime
104
+ type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: heroics
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.1'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.1'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: moneta
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: '1.4'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
125
- description:
138
+ version: '1.4'
139
+ description:
126
140
  email:
127
141
  - denis.sablic@gmail.com
128
142
  executables: []
@@ -145,6 +159,7 @@ files:
145
159
  - meta.json
146
160
  - schema.json
147
161
  - schemata/account.json
162
+ - schemata/federatedsamlidps.json
148
163
  - schemata/identification.json
149
164
  - schemata/idps.json
150
165
  - schemata/samlidps.json
@@ -154,7 +169,7 @@ homepage: https://github.com/dsablic/liblynx-api
154
169
  licenses:
155
170
  - MIT
156
171
  metadata: {}
157
- post_install_message:
172
+ post_install_message:
158
173
  rdoc_options: []
159
174
  require_paths:
160
175
  - lib
@@ -169,9 +184,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
184
  - !ruby/object:Gem::Version
170
185
  version: '0'
171
186
  requirements: []
172
- rubyforge_project:
173
- rubygems_version: 2.7.7
174
- signing_key:
187
+ rubygems_version: 3.2.3
188
+ signing_key:
175
189
  specification_version: 4
176
190
  summary: Ruby client for the LibLynx API
177
- test_files: []
191
+ test_files:
192
+ - spec/client_spec.rb