Skip to content

Commit

Permalink
fix: change in swagger spec for jwks to return missing attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pujavs committed Mar 3, 2022
1 parent 16bae90 commit 477643b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
13 changes: 11 additions & 2 deletions jans-cli/cli/jca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1816,13 +1816,13 @@ paths:
description: The 1-based index of the first query result.
- schema:
type: string
default: 1
default: inum
in: query
name: sortBy
description: Attribute whose value will be used to order the returned response.
- schema:
type: string
default: 1
default: ascending
enum:
- ascending
- descending
Expand Down Expand Up @@ -3797,6 +3797,12 @@ components:
- alg
- exp
properties:
name:
type: string
description: Name of the key.
descr:
type: string
description: key description.
kid:
type: string
description: The unique identifier for the key.
Expand Down Expand Up @@ -6471,6 +6477,9 @@ components:
description:
type: string
description: role description
deletable:
type: boolean
description: can we delete the role?
AdminPermission:
type: object
description: Admin permission
Expand Down
6 changes: 6 additions & 0 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3797,6 +3797,12 @@ components:
- alg
- exp
properties:
name:
type: string
description: Name of the key.
descr:
type: string
description: key description.
kid:
type: string
description: The unique identifier for the key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class JwksResource extends BaseResource {
@ProtectedApi(scopes = { ApiAccessConstants.JWKS_READ_ACCESS })
public Response get() {
final String json = configurationService.findConf().getWebKeys().toString();
log.debug("JWKS json = " + json);
return Response.ok(json).build();
}

Expand Down

0 comments on commit 477643b

Please sign in to comment.