bugfix: fixes HTTP POST on credentials, including person+subject (#184)
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/184 Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
This commit is contained in:
@@ -2,7 +2,7 @@ get:
|
||||
summary: Returns a list of all accessible contexts.
|
||||
description: Returns the list of all contexts which are visible to the current subject or any of it's assumed roles.
|
||||
tags:
|
||||
- -contexts
|
||||
- contexts
|
||||
operationId: getListOfContexts
|
||||
parameters:
|
||||
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
||||
|
||||
@@ -9,6 +9,11 @@ components:
|
||||
uuid:
|
||||
type: string
|
||||
format: uuid
|
||||
person:
|
||||
$ref: '../hs-office/hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
|
||||
nickname:
|
||||
type: string
|
||||
pattern: '^[a-z][a-z0-9]{1,8}-[a-z0-9]{1,10}$' # TODO.spec: pattern for login nickname
|
||||
totpSecret:
|
||||
type: string
|
||||
telephonePassword:
|
||||
@@ -64,9 +69,12 @@ components:
|
||||
CredentialsInsert:
|
||||
type: object
|
||||
properties:
|
||||
uuid:
|
||||
person.uuid:
|
||||
type: string
|
||||
format: uuid
|
||||
nickname:
|
||||
type: string
|
||||
pattern: '^[a-z][a-z0-9]{1,8}-[a-z0-9]{1,10}$' # TODO.spec: pattern for login nickname
|
||||
totpSecret:
|
||||
type: string
|
||||
telephonePassword:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
post:
|
||||
tags:
|
||||
- -credentials
|
||||
- credentials
|
||||
description: 'Is called when credentials got used for a login.'
|
||||
operationId: credentialsUsed
|
||||
parameters:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
get:
|
||||
tags:
|
||||
- -credentials
|
||||
- credentials
|
||||
description: 'Fetch a single credentials its uuid, if visible for the current subject.'
|
||||
operationId: getSingleCredentialsByUuid
|
||||
parameters:
|
||||
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
||||
- name: CredentialsUuid
|
||||
- name: credentialsUuid
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
@@ -27,12 +27,12 @@ get:
|
||||
|
||||
patch:
|
||||
tags:
|
||||
- -credentials
|
||||
- credentials
|
||||
description: 'Updates a single credentials identified by its uuid, if permitted for the current subject.'
|
||||
operationId: patchCredentials
|
||||
parameters:
|
||||
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
||||
- name: CredentialsUuid
|
||||
- name: credentialsUuid
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
@@ -57,7 +57,7 @@ patch:
|
||||
|
||||
delete:
|
||||
tags:
|
||||
- -credentials
|
||||
- credentials
|
||||
description: 'Delete a single credentials identified by its uuid, if permitted for the current subject.'
|
||||
operationId: deleteCredentialsByUuid
|
||||
parameters:
|
||||
|
||||
@@ -2,7 +2,7 @@ get:
|
||||
summary: Returns a list of all credentials.
|
||||
description: Returns the list of all credentials which are visible to the current subject or any of it's assumed roles.
|
||||
tags:
|
||||
- -credentials
|
||||
- credentials
|
||||
operationId: getListOfCredentialsByPersonUuid
|
||||
parameters:
|
||||
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
||||
@@ -30,7 +30,7 @@ get:
|
||||
post:
|
||||
summary: Adds a new credentials.
|
||||
tags:
|
||||
- -credentials
|
||||
- credentials
|
||||
operationId: postNewCredentials
|
||||
parameters:
|
||||
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
||||
|
||||
Reference in New Issue
Block a user