Skip to content

Commit

Permalink
fix(jans-auth-server): error from introspection interception script i…
Browse files Browse the repository at this point in the history
…s not propagated during AT as JWT creation #3904 (#3905)
  • Loading branch information
yuriyz committed Feb 21, 2023
1 parent 27138d1 commit 8c551c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import io.jans.model.metric.MetricType;
import io.jans.service.CacheService;
import jakarta.inject.Inject;
import jakarta.ws.rs.WebApplicationException;
import org.apache.commons.lang.StringUtils;
import org.json.JSONObject;
import org.slf4j.Logger;
Expand Down Expand Up @@ -223,6 +224,8 @@ public AccessToken createAccessToken(ExecutionContext context) {
log.trace("Created plain access token: {}", accessToken.getCode());

return accessToken;
} catch (WebApplicationException e) {
throw e;
} catch (Exception e) {
log.error(e.getMessage(), e);
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public void setWebApplicationException(WebApplicationException webApplicationExc
this.webApplicationException = webApplicationException;
}

public WebApplicationException createWebApplicationException(Response response) {
return new WebApplicationException(response);
}

public WebApplicationException createWebApplicationException(int status, String entity) {
this.webApplicationException = new WebApplicationException(Response
.status(status)
Expand Down

0 comments on commit 8c551c0

Please sign in to comment.