@@ -632,6 +632,39 @@ paths:
632
632
security:
633
633
- oauth2:
634
634
- 'https://jans.io/oauth/config/jans_asset-read'
635
+ /api/v1/jans-assets/asset-dir-mapping:
636
+ get:
637
+ tags:
638
+ - Jans Assets
639
+ summary: Get valid asset types
640
+ description: Get valid asset types
641
+ operationId: get-asset-dir-mapping
642
+ responses:
643
+ '200':
644
+ description: Ok
645
+ content:
646
+ application/json:
647
+ schema:
648
+ type: array
649
+ items:
650
+ $ref: '#/components/schemas/AssetDirMapping'
651
+ '401':
652
+ description: Unauthorized
653
+ '404':
654
+ description: Not Found
655
+ content:
656
+ application/json:
657
+ schema:
658
+ $ref: '#/components/schemas/ApiError'
659
+ '500':
660
+ description: InternalServerError
661
+ content:
662
+ application/json:
663
+ schema:
664
+ $ref: '#/components/schemas/ApiError'
665
+ security:
666
+ - oauth2:
667
+ - 'https://jans.io/oauth/config/jans_asset-read'
635
668
/api/v1/jans-assets:
636
669
get:
637
670
tags:
@@ -7454,17 +7487,17 @@ paths:
7454
7487
security:
7455
7488
- oauth2:
7456
7489
- 'https://jans.io/oauth/config/scopes.readonly'
7457
- '/api/v1/jans-auth-server/session/id/{jansId }':
7490
+ '/api/v1/jans-auth-server/session/sid/{sid }':
7458
7491
get:
7459
7492
tags:
7460
7493
- Auth - Session Management
7461
7494
summary: Get session by id.
7462
7495
description: Get session by id.
7463
7496
operationId: get-session-by-id
7464
7497
parameters:
7465
- - name: jansId
7498
+ - name: sid
7466
7499
in: path
7467
- description: Session Unique identifier.
7500
+ description: Session identifier.
7468
7501
required: true
7469
7502
schema:
7470
7503
type: string
@@ -7496,15 +7529,15 @@ paths:
7496
7529
description: Delete a session.
7497
7530
operationId: delete-session
7498
7531
parameters:
7499
- - name: jansId
7532
+ - name: sid
7500
7533
in: path
7501
- description: Session Unique identifier.
7534
+ description: Session identifier.
7502
7535
required: true
7503
7536
schema:
7504
7537
type: string
7505
7538
responses:
7506
- '200 ':
7507
- description: Ok
7539
+ '204 ':
7540
+ description: No Content
7508
7541
'401':
7509
7542
description: Unauthorized
7510
7543
'404':
@@ -7530,8 +7563,8 @@ paths:
7530
7563
schema:
7531
7564
type: string
7532
7565
responses:
7533
- '200 ':
7534
- description: Ok
7566
+ '204 ':
7567
+ description: No Content
7535
7568
'401':
7536
7569
description: Unauthorized
7537
7570
'404':
@@ -7555,9 +7588,7 @@ paths:
7555
7588
content:
7556
7589
application/json:
7557
7590
schema:
7558
- type: array
7559
- items:
7560
- $ref: '#/components/schemas/SessionId'
7591
+ $ref: '#/components/schemas/SessionPagedResult'
7561
7592
examples:
7562
7593
Response json example:
7563
7594
description: Response json example
@@ -8978,14 +9009,17 @@ paths:
8978
9009
content:
8979
9010
application/json:
8980
9011
schema:
8981
- type: array
8982
- items:
8983
- $ref: '#/components/schemas/Fido2RegistrationEntry'
9012
+ $ref: '#/components/schemas/Fido2RegistrationEntryPagedResult'
8984
9013
examples:
8985
9014
Response example:
8986
9015
description: Response example
8987
9016
value: |
8988
9017
{
9018
+ "start": 0,
9019
+ "totalEntriesCount": 3,
9020
+ "entriesCount": 3,
9021
+ "entries": [
9022
+ {
8989
9023
"dn": "jansId=1c88c1cb-8e32-4b79-b244-c9f677ca5654,ou=fido2_register,inum=1e73f801-22c2-4c19-a757-f96a87a5c713,ou=people,o=jans",
8990
9024
"id": "1c88c1cb-8e32-4b79-b244-c9f677ca5654",
8991
9025
"challange": "2vCSaPMIt4tZpkO8_rDG-v3QoXBYMB1aqCAXFgA4q0Y",
@@ -9099,6 +9133,8 @@ paths:
9099
9133
"registrationStatus": "registered",
9100
9134
"baseDn": "jansId=6e196a5d-122b-4f06-8ff8-6f41b32bc2a6,ou=fido2_register,inum=1e73f801-22c2-4c19-a757-f96a87a5c713,ou=people,o=jans"
9101
9135
}
9136
+ ]
9137
+ }
9102
9138
'401':
9103
9139
description: Unauthorized
9104
9140
'500':
@@ -13254,9 +13290,7 @@ components:
13254
13290
type: string
13255
13291
format: date-time
13256
13292
service:
13257
- type: array
13258
- items:
13259
- type: string
13293
+ type: string
13260
13294
level:
13261
13295
type: integer
13262
13296
format: int32
@@ -13285,6 +13319,28 @@ components:
13285
13319
type: array
13286
13320
items:
13287
13321
$ref: '#/components/schemas/Document'
13322
+ AssetDirMapping:
13323
+ type: object
13324
+ properties:
13325
+ directory:
13326
+ type: string
13327
+ description: Relative path to asset base directory.
13328
+ type:
13329
+ type: array
13330
+ description: List of file extention that are stored in directory.
13331
+ items:
13332
+ type: string
13333
+ description: List of file extention that are stored in directory.
13334
+ description:
13335
+ type: string
13336
+ description: Description of assets stored in directory.
13337
+ jansServiceModule:
13338
+ type: array
13339
+ description: List of supported service module where asset can be uploaded.
13340
+ items:
13341
+ type: string
13342
+ description: List of supported service module where asset can be uploaded.
13343
+ description: Asset type mapped to server directory.
13288
13344
AssetForm:
13289
13345
required:
13290
13346
- assetFile
@@ -13407,10 +13463,10 @@ components:
13407
13463
type: string
13408
13464
selected:
13409
13465
type: boolean
13410
- adminCanView:
13411
- type: boolean
13412
13466
userCanView:
13413
13467
type: boolean
13468
+ adminCanView:
13469
+ type: boolean
13414
13470
adminCanEdit:
13415
13471
type: boolean
13416
13472
userCanEdit:
@@ -15203,22 +15259,6 @@ components:
15203
15259
$ref: '#/components/schemas/PluginConf'
15204
15260
assetMgtConfiguration:
15205
15261
$ref: '#/components/schemas/AssetMgtConfiguration'
15206
- AssetDirMapping:
15207
- type: object
15208
- properties:
15209
- directory:
15210
- type: string
15211
- description: Relative path to asset base directory.
15212
- type:
15213
- type: array
15214
- description: List of file extention that are stored in directory.
15215
- items:
15216
- type: string
15217
- description: List of file extention that are stored in directory.
15218
- description:
15219
- type: string
15220
- description: Description of assets stored in directory.
15221
- description: Asset type mapped to server directory.
15222
15262
AssetMgtConfiguration:
15223
15263
type: object
15224
15264
properties:
@@ -15236,15 +15276,6 @@ components:
15236
15276
description: >-
15237
15277
Flag indicating if service module name extension validation is
15238
15278
enabled.
15239
- assetBaseDirectory:
15240
- type: string
15241
- description: Base directory on server to upload the asset.
15242
- jansServiceModule:
15243
- type: array
15244
- description: List of supported service module where asset can be uploaded.
15245
- items:
15246
- type: string
15247
- description: List of supported service module where asset can be uploaded.
15248
15279
assetDirMapping:
15249
15280
type: array
15250
15281
description: Asset type mapped to server directory.
@@ -15858,10 +15889,10 @@ components:
15858
15889
ttl:
15859
15890
type: integer
15860
15891
format: int32
15861
- opbrowserState:
15862
- type: string
15863
15892
persisted:
15864
15893
type: boolean
15894
+ opbrowserState:
15895
+ type: string
15865
15896
SessionIdAccessMap:
15866
15897
type: object
15867
15898
properties:
@@ -15871,6 +15902,22 @@ components:
15871
15902
type: boolean
15872
15903
xml:
15873
15904
name: map
15905
+ SessionPagedResult:
15906
+ type: object
15907
+ properties:
15908
+ start:
15909
+ type: integer
15910
+ format: int32
15911
+ totalEntriesCount:
15912
+ type: integer
15913
+ format: int32
15914
+ entriesCount:
15915
+ type: integer
15916
+ format: int32
15917
+ entries:
15918
+ type: array
15919
+ items:
15920
+ $ref: '#/components/schemas/SessionId'
15874
15921
User:
15875
15922
type: object
15876
15923
properties:
@@ -15929,22 +15976,6 @@ components:
15929
15976
type: array
15930
15977
items:
15931
15978
$ref: '#/components/schemas/UserAuthenticator'
15932
- SessionPagedResult:
15933
- type: object
15934
- properties:
15935
- start:
15936
- type: integer
15937
- format: int32
15938
- totalEntriesCount:
15939
- type: integer
15940
- format: int32
15941
- entriesCount:
15942
- type: integer
15943
- format: int32
15944
- entries:
15945
- type: array
15946
- items:
15947
- $ref: '#/components/schemas/SessionId'
15948
15979
TokenAttributes:
15949
15980
type: object
15950
15981
properties:
0 commit comments