Skip to content

Commit

Permalink
fix: introspect in token api
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Sep 20, 2024
1 parent 5582efa commit d9d4a8d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws I
if (grantType.equals("refresh_token")) {
String refreshToken = InputParser.parseStringOrThrowError(bodyFromSDK, "refresh_token", false);

Map<String, String> formFieldsForTokenIntrospect = new HashMap<>();
formFieldsForTokenIntrospect.put("token", refreshToken);

HttpRequestForOry.Response response = OAuthProxyHelper.proxyFormPOST(
main, req, resp,
appIdentifier,
Expand All @@ -92,7 +95,7 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws I
"/admin/oauth2/introspect", // pathProxy
true, // proxyToAdmin
false, // camelToSnakeCaseConversion
formFields,
formFieldsForTokenIntrospect,
new HashMap<>() // headers
);

Expand Down

0 comments on commit d9d4a8d

Please sign in to comment.