Skip to content

Commit

Permalink
chore(jans-auth-server): renamed endpoint /token_status_list -> /stat…
Browse files Browse the repository at this point in the history
…us_list

#8562
Signed-off-by: YuriyZ <yzabrovarniy@gmail.com>
  • Loading branch information
yuriyz committed Jun 24, 2024
1 parent 11b0fbe commit 3445a31
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jans-auth-server/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2675,7 +2675,7 @@ paths:
500:
$ref: '#/components/responses/InternalServerError'

/token_status_list:
/status_list:
get:
tags:
- Status List
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class AppConfiguration implements Configuration {

public static final int DEFAULT_STATUS_LIST_RESPONSE_JWT_LIFETIME = 600; // 10min
public static final int DEFAULT_STATUS_LIST_BIT_SIZE = 2;
public static final int DEFAULT_TOKEN_STATUS_LIST_INDEX_ALLOCATION_BLOCK_SIZE = 100;
public static final int DEFAULT_STATUS_LIST_INDEX_ALLOCATION_BLOCK_SIZE = 100;

@DocProperty(description = "URL using the https scheme that OP asserts as Issuer identifier")
private String issuer;
Expand Down Expand Up @@ -213,8 +213,8 @@ public class AppConfiguration implements Configuration {
@DocProperty(description = "The status list response JWT lifetime (used to set exp claim in JWT).")
private int statusListResponseJwtLifetime = DEFAULT_STATUS_LIST_RESPONSE_JWT_LIFETIME;

@DocProperty(description = "Specifies how many token status list indexes AS can reserve at once within pool (when status_list feature flag is enabled). Defaults to 100.")
private int statusListIndexAllocationBlockSize = DEFAULT_TOKEN_STATUS_LIST_INDEX_ALLOCATION_BLOCK_SIZE;
@DocProperty(description = "Specifies how many status list indexes AS can reserve at once within pool (when status_list feature flag is enabled). Defaults to 100.")
private int statusListIndexAllocationBlockSize = DEFAULT_STATUS_LIST_INDEX_ALLOCATION_BLOCK_SIZE;

@DocProperty(description = "Specifies which LDAP attribute is used for the subject identifier claim")
private String openidSubAttribute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static String endpointUrl(String endSessionEndpoint, String path) {
}

public String getTokenStatusListEndpoint() {
return endpointUrl("/token_status_list");
return endpointUrl("/status_list");
}


Expand Down Expand Up @@ -289,7 +289,7 @@ private void addMtlsAliases(JSONObject jsonObj) {
if (StringUtils.isNotBlank(appConfiguration.getMtlsTokenEndpoint()))
aliases.put(TOKEN_ENDPOINT, appConfiguration.getMtlsTokenEndpoint());
if (appConfiguration.isFeatureEnabled(FeatureFlagType.STATUS_LIST) && StringUtils.isNotBlank(appConfiguration.getMtlsEndSessionEndpoint()))
aliases.put(STATUS_LIST_ENDPOINT, endpointUrl(appConfiguration.getMtlsEndSessionEndpoint(), "/token_status_list"));
aliases.put(STATUS_LIST_ENDPOINT, endpointUrl(appConfiguration.getMtlsEndSessionEndpoint(), "/status_list"));
if (StringUtils.isNotBlank(appConfiguration.getMtlsJwksUri()))
aliases.put(JWKS_URI, appConfiguration.getMtlsJwksUri());
if (StringUtils.isNotBlank(appConfiguration.getMtlsCheckSessionIFrame()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class StatusListRestWebService {
private StatusListService statusService;

@GET
@Path("/token_status_list")
@Path("/status_list")
@Consumes({CONTENT_TYPE_STATUSLIST_JSON, CONTENT_TYPE_STATUSLIST_JWT})
@Produces({CONTENT_TYPE_STATUSLIST_JSON, CONTENT_TYPE_STATUSLIST_JWT})
public Response requestStatusList(@HeaderParam("Accept") String acceptHeader) {
Expand Down
2 changes: 1 addition & 1 deletion jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9031,7 +9031,7 @@ components:
- REVOKE_TOKEN
- REVOKE_SESSION
- GLOBAL_TOKEN_REVOCATION
- TOKEN_STATUS_LIST
- STATUS_LIST
- ACTIVE_SESSION
- END_SESSION
- STATUS_SESSION
Expand Down

0 comments on commit 3445a31

Please sign in to comment.