Commit fefeac1b authored by lohmart's avatar lohmart
Browse files

Aligned Maf Provisioning (M1) security scheme to OAuth2.

parent 4eb2a27e
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ servers:

security:
  - {}
  - OAuth2ClientCredentials: [] 
  - OAuth2: [] 

paths:
  /provisioning-sessions/{provisioningSessionId}/consumption-reporting-configuration:
@@ -39,7 +39,7 @@ paths:
      operationId: activateConsumptionReporting
      summary: 'Activate the consumption reporting procedure for the specified Provisioning Session by providing the Consumption Reporting Configuration'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - consumption-reporting-create
      requestBody:
        description: 'A JSON representation of a Consumption Reporting Configuration'
@@ -83,7 +83,7 @@ paths:
      operationId: retrieveConsumptionReportingConfiguration
      summary: 'Retrieve the Consumption Reporting Configuration of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - consumption-reporting-read
      responses:
        '200': # OK
@@ -114,7 +114,7 @@ paths:
      operationId: updateConsumptionReportingConfiguration
      summary: 'Update the Consumption Reporting Configuration for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - consumption-reporting-put
      requestBody:
        description: 'A JSON representation of a Consumption Reporting Configuration'
@@ -160,7 +160,7 @@ paths:
      operationId: patchConsumptionReportingConfiguration
      summary: 'Patch the Consumption Reporting Configuration for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - consumption-reporting-patch
      requestBody:
        description: 'A JSON representation of a Consumption Reporting Configuration'
@@ -209,7 +209,7 @@ paths:
      operationId: destroyConsumptionReportingConfiguration
      summary: 'Destroy the current Consumption Reporting Configuration of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - consumption-reporting-delete
      responses:
        '204': # No Content
@@ -235,7 +235,7 @@ paths:

components:
  securitySchemes:
    OAuth2ClientCredentials:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
+8 −8
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ servers:

security:
  - {}
  - OAuth2ClientCredentials: [] 
  - OAuth2: [] 

paths:
  /provisioning-sessions/{provisioningSessionId}/content-hosting-configuration:
@@ -39,7 +39,7 @@ paths:
      operationId: createContentHostingConfiguration
      summary: 'Create and upload the Content Hosting Configuration for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-hosting-configuration-create
      requestBody:
        description: 'A JSON representation of a Content Hosting Configuration'
@@ -85,7 +85,7 @@ paths:
      operationId: retrieveContentHostingConfiguration
      summary: 'Retrieve the Content Hosting Configuration of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-hosting-configuration-read
      responses:
        '200': # OK
@@ -116,7 +116,7 @@ paths:
      operationId: updateContentHostingConfiguration
      summary: 'Update (by replacement) the Content Hosting Configuration for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-hosting-configuration-put
      requestBody:
        description: 'A JSON representation of a Content Hosting Configuration'
@@ -162,7 +162,7 @@ paths:
      operationId: patchContentHostingConfiguration
      summary: 'Patch the Content Hosting Configuration for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-hosting-configuration-patch
      requestBody:
        description: 'A JSON representation of a Content Hosting Configuration'
@@ -211,7 +211,7 @@ paths:
      operationId: destroyContentHostingConfiguration
      summary: 'Destroy the current Content Hosting Configuration of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-hosting-configuration-delete
      responses:
        '204': # No Content
@@ -247,7 +247,7 @@ paths:
      operationId: purgeContentHostingCache
      summary: 'Purge the content of the cache for the Content Hosting Configuration of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-hosting-configuration-purge
      requestBody:
        description: 'The regular expression pattern for resources to purge from the cache'
@@ -293,7 +293,7 @@ paths:

components:
  securitySchemes:
    OAuth2ClientCredentials:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
+7 −7
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ servers:

security:
  - {}
  - OAuth2ClientCredentials: [] 
  - OAuth2: [] 

paths:
  /provisioning-sessions/{provisioningSessionId}/content-preparation-templates:
@@ -39,7 +39,7 @@ paths:
      operationId: createContentPreparationTemplate
      summary: 'Create (and optionally upload) a new Content Preparation Template for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-preparation-template-create
      requestBody:
        description: 'A Content Preparation Template of any supported type'
@@ -98,7 +98,7 @@ paths:
      operationId: retrieveContentPreparationTemplate
      summary: 'Retrieve the specified Content Preparation Template of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-preparation-template-read
      responses:
        '200': # OK
@@ -129,7 +129,7 @@ paths:
      operationId: updateContentPreparationTemplate
      summary: 'Update (by replacement) the specified Content Preparation Template for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-preparation-template-put
      requestBody:
        description: 'A Content Preparation Template of any type'
@@ -175,7 +175,7 @@ paths:
      operationId: patchContentPreparationTemplate
      summary: 'Patch the specified Content Preparation Template for the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-preparation-template-patch
      requestBody:
        description: 'A Content Preparation Template patch of any type'
@@ -218,7 +218,7 @@ paths:
      operationId: destroyContentPreparationTemplate
      summary: 'Destroy the specified Content Preparation Template of the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-preparation-template-delete
      responses:
        '204': # No Content
@@ -246,7 +246,7 @@ paths:

components:
  securitySchemes:
    OAuth2ClientCredentials:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
+3 −3
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ servers:

security:
  - {}
  - OAuth2ClientCredentials: [] 
  - OAuth2: [] 

paths:
  /provisioning-sessions/{provisioningSessionId}/content-protocols:
@@ -39,7 +39,7 @@ paths:
      operationId: retrieveContentProtocols
      summary: 'Retrieve the set of Content Protocols supported by the specified Provisioning Session'
      security:
        - OAuth2ClientCredentials:
        - OAuth2:
          - content-protocols-read
      responses:
        '200':
@@ -69,7 +69,7 @@ paths:

components:
  securitySchemes:
    OAuth2ClientCredentials:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
+2 −2
Original line number Diff line number Diff line
@@ -24,13 +24,13 @@ servers:

security:
  - {}
  - OAuth2ClientCredentials: [] 
  - OAuth2: [] 

paths:

components:
  securitySchemes:
    OAuth2ClientCredentials:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
Loading