From 0bfa235723b18bbbafa7478ac52153ed2a95b28a Mon Sep 17 00:00:00 2001 From: GitHub Action Bot Date: Wed, 27 Sep 2023 14:30:14 +0000 Subject: [PATCH] Automated commit 'Changed oauth2 to UserContextAuth in several endpoints (#1426)' by github action: 6327414690 --- idn/beta/paths/auth-user.yaml | 6 ++---- idn/v3/paths/auth-org-network-config.yaml | 10 +++------- idn/v3/paths/auth-user.yaml | 4 ++-- idn/v3/paths/password-org-config.yaml | 2 +- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/idn/beta/paths/auth-user.yaml b/idn/beta/paths/auth-user.yaml index 1d7dd430..cfecd30e 100644 --- a/idn/beta/paths/auth-user.yaml +++ b/idn/beta/paths/auth-user.yaml @@ -5,7 +5,7 @@ put: summary: Auth User Update - Overwrite description: Update an existing user in the authentication system by over overwriting the information with new information. security: - - oauth2: [sp:auth-user-internal:update] + - UserContextAuth: [sp:auth-user-internal:update] parameters: - in: path name: id @@ -19,8 +19,6 @@ put: required: true description: | Auth User Save Request. This overwrites the existing user details in the authentication system. - - Requires security scope of 'sp:auth-user:update' content: application/json: schema: @@ -52,7 +50,7 @@ delete: summary: Delete an Auth User description: Delete an existing user in the authentication system. security: - - oauth2: [sp:auth-user:delete] + - UserContextAuth: [sp:auth-user:delete] parameters: - in: path name: id diff --git a/idn/v3/paths/auth-org-network-config.yaml b/idn/v3/paths/auth-org-network-config.yaml index ef0454e0..05cd8592 100644 --- a/idn/v3/paths/auth-org-network-config.yaml +++ b/idn/v3/paths/auth-org-network-config.yaml @@ -7,7 +7,7 @@ get: This API returns the details of an org's network auth configuration. Requires security scope of: 'sp:auth-org:read' security: - - oauth2: [ sp:auth-org:read ] + - UserContextAuth: [ sp:auth-org:read ] responses: "200": description: Network configuration for the tenant's auth org. @@ -27,8 +27,6 @@ get: $ref: "../../v3/responses/429.yaml" "500": $ref: "../../v3/responses/500.yaml" - # security: - # - oauth2: [sp:auth-org:read] post: operationId: createAuthOrgNetworkConfig tags: @@ -38,7 +36,7 @@ post: This API returns the details of an org's network auth configuration. Requires security scope of: 'sp:auth-org:create' security: - - oauth2: [ sp:auth-org:create ] + - UserContextAuth: [ sp:auth-org:create ] requestBody: required: true description: >- @@ -71,8 +69,6 @@ post: $ref: "../../v3/responses/429.yaml" "500": $ref: "../../v3/responses/500.yaml" - # security: - # - oauth2: [sp:auth-org:create] patch: operationId: patchAuthOrgNetworkConfig tags: @@ -82,7 +78,7 @@ patch: This API updates an existing network configuration for an org using PATCH Requires security scope of: 'sp:auth-org:update' security: - - oauth2: [ sp:auth-org:update ] + - UserContextAuth: [ sp:auth-org:update ] requestBody: required: true description: >- diff --git a/idn/v3/paths/auth-user.yaml b/idn/v3/paths/auth-user.yaml index c2b5c6a0..54f8bdc7 100644 --- a/idn/v3/paths/auth-user.yaml +++ b/idn/v3/paths/auth-user.yaml @@ -17,7 +17,7 @@ get: type: string example: ef38f94347e94562b5bb8424a56397d8 security: - - oauth2: [sp:auth-user:read] + - UserContextAuth: [sp:auth-user:read] responses: '200': description: The specified user's authentication system details. @@ -45,7 +45,7 @@ patch: summary: Auth User Update description: Update an existing user in the authentication system with a PATCH request. security: - - oauth2: [sp:auth-user:update] + - UserContextAuth: [sp:auth-user:update] parameters: - in: path name: id diff --git a/idn/v3/paths/password-org-config.yaml b/idn/v3/paths/password-org-config.yaml index 0008883d..dd52241d 100644 --- a/idn/v3/paths/password-org-config.yaml +++ b/idn/v3/paths/password-org-config.yaml @@ -44,7 +44,7 @@ put: Requires ORG_ADMIN, API role or authorization scope of 'idn:password-org-config:write' security: - - oauth2: ['idn:password-org-config:write'] + - UserContextAuth: ['idn:password-org-config:write'] requestBody: required: true content: