Skip to content

Commit

Permalink
fix: update authn schemes in yaml descriptor #2414 (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Sep 19, 2022
1 parent 1029619 commit 4b239af
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public Response createUser(
log.debug("Executing web service method. createUser");

executeValidation(user);
if (StringUtils.isEmpty(user.getUserName())) throw new SCIMException("Empty username not allowed");

checkUidExistence(user.getUserName());
assignMetaInformation(user);
ScimResourceUtil.adjustPrimarySubAttributes(user);
Expand Down
39 changes: 24 additions & 15 deletions jans-scim/server/src/main/resources/jans-scim-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,27 @@ components:
type: string
description: A detailed human-readable message of the error
description: See section 3.12 of RFC 7644
AuthenticationScheme:
required:
- type
- name
- description
type: object
properties:
type:
type: string
example: oauth2
name:
type: string
description:
type: string
specUri:
type: string
documentationUri:
type: string
primary:
type: boolean
description: See section 5 of RFC 7643
ServiceProviderConfigResponse:
type: object
properties:
Expand Down Expand Up @@ -1859,21 +1880,9 @@ components:
supported:
type: boolean
authenticationSchemes:
type: object
properties:
type:
type: string
example: oauth2
name:
type: string
description:
type: string
specUri:
type: string
documentationUri:
type: string
primary:
type: boolean
type: array
items:
$ref: '#/components/schemas/AuthenticationScheme'
description: See section 5 of RFC 7643
ResourceType:
type: object
Expand Down
38 changes: 24 additions & 14 deletions jans-scim/server/src/main/resources/jans-scim-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,27 @@ definitions:
detail:
type: string
description: A detailed human-readable message of the error
AuthenticationScheme:
description: See section 5 of RFC 7643
type: object
required:
- type
- name
- description
properties:
type:
type: string
example: oauth2
name:
type: string
description:
type: string
specUri:
type: string
documentationUri:
type: string
primary:
type: boolean
ServiceProviderConfigResponse:
description: See section 5 of RFC 7643
type: object
Expand Down Expand Up @@ -1510,20 +1531,9 @@ definitions:
supported:
type: boolean
authenticationSchemes:
properties:
type:
type: string
example: oauth2
name:
type: string
description:
type: string
specUri:
type: string
documentationUri:
type: string
primary:
type: boolean
type: array
items:
$ref: "#/definitions/AuthenticationScheme"
ResourceType:
description: See section 6 of RFC 7643
type: object
Expand Down

0 comments on commit 4b239af

Please sign in to comment.