liblynx-api 1.1.3 → 1.2.2

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: b28217136add32091f1f7206e4b9d8ce34a6caa3b612a1dd356e9bf967170584
4
+ data.tar.gz: c122112d68478c2e75759137632ab2c067cb5bde3670b84c05d4a7b3e5195aa2
5
5
  SHA512:
6
- metadata.gz: cb9588db4e26c973793c503b35b326ee3fe5ea72d22cdbf942f4100a660fa93d7fb0099c2eff68c93ee22c8cd7c6c3a09343fed1e8359e2e0c6ef21c98dda2d0
7
- data.tar.gz: 8e896baa9dd2053f59b1fc1443c79515b86811dbf4cf40504da6f7c62c23113abb18abe14b21ab08228dadfd588ebf7bd4a5098e3c4bd90cf14dff9505d062bc
6
+ metadata.gz: e22aeb23418bde30400a4ad799edb0bbc5c4425d044780178cee9138b3e0c20da5d28216fadb8b54e193c43b65a4eee578e47e609d5b804cfa900d5a61d6e063
7
+ data.tar.gz: bf7f7f333dfc9523007e64dfea9486b39a602b134fe90fec7c514ce6f7d2c67ddca84c58db2e210a703b43edd1ac0f65e944847be7f9055920302e0c58a68e34
@@ -0,0 +1,21 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ tags: ['v*']
6
+
7
+ jobs:
8
+ release:
9
+ if: startsWith(github.ref, 'refs/tags/v')
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: '3.4'
19
+ - uses: rubygems/configure-rubygems-credentials@v1.0.0
20
+ - run: gem build liblynx-api.gemspec
21
+ - run: gem push liblynx-api-*.gem
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,42 +1,46 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- liblynx-api (1.1.3)
5
- heroics
6
- moneta
4
+ liblynx-api (1.2.2)
5
+ heroics (~> 0.1)
6
+ moneta (~> 1.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- diff-lcs (1.3)
11
+ base64 (0.2.0)
12
+ diff-lcs (1.5.1)
12
13
  erubis (2.7.0)
13
- excon (0.71.0)
14
- heroics (0.0.25)
14
+ excon (0.111.0)
15
+ heroics (0.1.3)
16
+ base64
15
17
  erubis (~> 2.0)
16
18
  excon
17
19
  moneta
18
20
  multi_json (>= 1.9.2)
21
+ webrick
19
22
  json_schema (0.20.3)
20
- moneta (1.1.1)
21
- multi_json (1.14.1)
22
- prmd (0.13.0)
23
+ moneta (1.6.0)
24
+ multi_json (1.15.0)
25
+ prmd (0.14.0)
23
26
  erubis (~> 2.7)
24
27
  json_schema (~> 0.3, >= 0.3.1)
25
- rake (10.5.0)
26
- rspec (3.8.0)
27
- rspec-core (~> 3.8.0)
28
- rspec-expectations (~> 3.8.0)
29
- rspec-mocks (~> 3.8.0)
30
- rspec-core (3.8.2)
31
- rspec-support (~> 3.8.0)
32
- rspec-expectations (3.8.4)
28
+ rake (13.2.1)
29
+ rspec (3.13.0)
30
+ rspec-core (~> 3.13.0)
31
+ rspec-expectations (~> 3.13.0)
32
+ rspec-mocks (~> 3.13.0)
33
+ rspec-core (3.13.1)
34
+ rspec-support (~> 3.13.0)
35
+ rspec-expectations (3.13.3)
33
36
  diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.8.0)
35
- rspec-mocks (3.8.1)
37
+ rspec-support (~> 3.13.0)
38
+ rspec-mocks (3.13.1)
36
39
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-support (3.8.2)
39
- yard (0.9.20)
40
+ rspec-support (~> 3.13.0)
41
+ rspec-support (3.13.1)
42
+ webrick (1.8.2)
43
+ yard (0.9.37)
40
44
 
41
45
  PLATFORMS
42
46
  ruby
@@ -47,9 +51,10 @@ DEPENDENCIES
47
51
  json_schema (< 0.20.4)
48
52
  liblynx-api!
49
53
  prmd
50
- rake (< 11.0)
54
+ rake (< 14.0)
51
55
  rspec
56
+ webrick
52
57
  yard
53
58
 
54
59
  BUNDLED WITH
55
- 1.17.3
60
+ 2.5.18
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # LibLynx API &nbsp;[![Build Status](https://travis-ci.org/dsablic/liblynx-api.svg?branch=master)](https://travis-ci.org/dsablic/liblynx-api) [![Gem Version](https://badge.fury.io/rb/liblynx-api.svg)](https://badge.fury.io/rb/liblynx-api)
1
+ # LibLynx API &nbsp;[![CI](https://github.com/dsablic/liblynx-api/actions/workflows/ci.yml/badge.svg)](https://github.com/dsablic/liblynx-api/actions/workflows/ci.yml) [![Gem Version](https://badge.fury.io/rb/liblynx-api.svg)](https://badge.fury.io/rb/liblynx-api) [![Downloads](https://img.shields.io/gem/dt/liblynx-api.svg)](https://rubygems.org/gems/liblynx-api) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2
2
 
3
3
  Ruby HTTP client for the LibLynx API.
4
4
 
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.0"}
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.2'
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,13 @@
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Sablic
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -58,14 +57,14 @@ dependencies:
58
57
  requirements:
59
58
  - - "<"
60
59
  - !ruby/object:Gem::Version
61
- version: '11.0'
60
+ version: '14.0'
62
61
  type: :development
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - "<"
67
66
  - !ruby/object:Gem::Version
68
- version: '11.0'
67
+ version: '14.0'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: rspec
71
70
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +80,7 @@ dependencies:
81
80
  - !ruby/object:Gem::Version
82
81
  version: '0'
83
82
  - !ruby/object:Gem::Dependency
84
- name: yard
83
+ name: webrick
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - ">="
@@ -95,40 +94,54 @@ dependencies:
95
94
  - !ruby/object:Gem::Version
96
95
  version: '0'
97
96
  - !ruby/object:Gem::Dependency
98
- name: heroics
97
+ name: yard
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
100
  - - ">="
102
101
  - !ruby/object:Gem::Version
103
102
  version: '0'
104
- type: :runtime
103
+ type: :development
105
104
  prerelease: false
106
105
  version_requirements: !ruby/object:Gem::Requirement
107
106
  requirements:
108
107
  - - ">="
109
108
  - !ruby/object:Gem::Version
110
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: heroics
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '0.1'
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '0.1'
111
124
  - !ruby/object:Gem::Dependency
112
125
  name: moneta
113
126
  requirement: !ruby/object:Gem::Requirement
114
127
  requirements:
115
- - - ">="
128
+ - - "~>"
116
129
  - !ruby/object:Gem::Version
117
- version: '0'
130
+ version: '1.4'
118
131
  type: :runtime
119
132
  prerelease: false
120
133
  version_requirements: !ruby/object:Gem::Requirement
121
134
  requirements:
122
- - - ">="
135
+ - - "~>"
123
136
  - !ruby/object:Gem::Version
124
- version: '0'
125
- description:
137
+ version: '1.4'
126
138
  email:
127
139
  - denis.sablic@gmail.com
128
140
  executables: []
129
141
  extensions: []
130
142
  extra_rdoc_files: []
131
143
  files:
144
+ - ".github/workflows/ci.yml"
132
145
  - ".travis.yml"
133
146
  - Gemfile
134
147
  - Gemfile.lock
@@ -145,6 +158,7 @@ files:
145
158
  - meta.json
146
159
  - schema.json
147
160
  - schemata/account.json
161
+ - schemata/federatedsamlidps.json
148
162
  - schemata/identification.json
149
163
  - schemata/idps.json
150
164
  - schemata/samlidps.json
@@ -154,7 +168,6 @@ homepage: https://github.com/dsablic/liblynx-api
154
168
  licenses:
155
169
  - MIT
156
170
  metadata: {}
157
- post_install_message:
158
171
  rdoc_options: []
159
172
  require_paths:
160
173
  - lib
@@ -169,9 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
182
  - !ruby/object:Gem::Version
170
183
  version: '0'
171
184
  requirements: []
172
- rubyforge_project:
173
- rubygems_version: 2.7.7
174
- signing_key:
185
+ rubygems_version: 3.6.9
175
186
  specification_version: 4
176
187
  summary: Ruby client for the LibLynx API
177
188
  test_files: []