fix: Illegal op_policy_uri parameter: - exclude entries with blank values from discovery response (oxauth counterpart) #4888
Labels
comp-jans-auth-server
Component affected by issue or PR
kind-bug
Issue or PR is a bug in existing functionality
kind-enhancement
Issue or PR is an enhancement to an existing functionality
Milestone
Describe the issue
op_policy_uri being blank is causing a ParseException on large open source tools like spring oauth, and pac4j leveraging nimbusds. This value either needs to be removed all together or have a value in it.
oxauth counterpart GluuFederation/oxAuth#1823
Steps To Reproduce
Steps to reproduce the behavior:
Screenshots
Desktop (please complete the following information):
Additional context
Here is the code that is being used within nimbusds that is throwing the error
if (jsonObject.get("op_policy_uri") != null) { try { as.setPolicyURI(JSONObjectUtils.getURI(jsonObject, "op_policy_uri")); } catch (IllegalArgumentException e) { throw new ParseException("Illegal op_policy_uri parameter: " + e.getMessage()); } }
The text was updated successfully, but these errors were encountered: