Skip to content

Commit cdecca3

Browse files
authored
Merge pull request #30 from sonatype-nexus-community/feat/re-enabled-saml-put-request
feat: attempt re-enabling PUT /api/v2/config/saml
2 parents d49c31f + 11bc303 commit cdecca3

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

spec/openapi.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6797,6 +6797,32 @@ paths:
67976797
description: SAML is not configured.
67986798
tags:
67996799
- Config SAML
6800+
put:
6801+
description: 'Use this method to enable SSO using SAML. This request uses the
6802+
content type multipart/form-data to transmit the configuration to IQ Server.
6803+
6804+
6805+
Permissions required: Edit System Configuration and Users'
6806+
operationId: insertOrUpdateSamlConfiguration
6807+
requestBody:
6808+
content:
6809+
multipart/form-data:
6810+
schema:
6811+
properties:
6812+
identityProviderXml:
6813+
description: Enter the SAML metadata XML of your IdP. Refer to the
6814+
IdP documentation to obtain this metadata.
6815+
type: string
6816+
samlConfiguration:
6817+
$ref: '#/components/schemas/ApiSamlConfigurationDTO'
6818+
type: object
6819+
responses:
6820+
'204':
6821+
description: Configuration successful.
6822+
'400':
6823+
description: Invalid configuration.
6824+
tags:
6825+
- Config SAML
68006826
/api/v2/config/saml/metadata:
68016827
get:
68026828
description: 'Use this method to retrieve IQ Server''s metadata service provider

update-spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
API_PATHS_TO_REMOVE = {
254254
'/api/v2/licenseLegalMetadata/customMultiApplication/report': [],
255255
# '/api/v2/product/license': [],
256-
'/api/v2/config/saml': ['put']
256+
# '/api/v2/config/saml': ['put']
257257
}
258258
if 'paths' in json_spec:
259259
print('Removing paths...')

0 commit comments

Comments
 (0)