Skip to content

Commit

Permalink
Merge pull request #959 from JanssenProject/jans-config-api-issue
Browse files Browse the repository at this point in the history
fix: change in swagger spec for jwks to return missing attributes
  • Loading branch information
devrimyatar committed Mar 3, 2022
2 parents 16bae90 + 477643b commit f912045
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 f912045

Please sign in to comment.