make the null assertion processor the default

pull/1108/head
Justin Richer 2016-07-22 13:50:37 -04:00
parent a5a12b2f1f
commit 8e016a8d30
2 changed files with 15 additions and 8 deletions

View File

@ -22,14 +22,18 @@ import org.mitre.jwt.assertion.AssertionValidator;
import com.nimbusds.jwt.JWT; import com.nimbusds.jwt.JWT;
/** /**
* Reject all assertions passed in.
*
* @author jricher * @author jricher
* *
*/ */
public class NullAssertionValidator implements AssertionValidator { public class NullAssertionValidator implements AssertionValidator {
/**
* Reject all assertions passed in, always returns false.
*/
@Override @Override
public boolean isValid(JWT assertion) { public boolean isValid(JWT assertion) {
// TODO Auto-generated method stub
return false; return false;
} }

View File

@ -31,13 +31,16 @@
<!-- validate client software statements for dynamic registration --> <!-- validate client software statements for dynamic registration -->
<bean id="clientAssertionValidator" class="org.mitre.jwt.assertion.impl.WhitelistedIssuerAssertionValidator"> <bean id="clientAssertionValidator" class="org.mitre.jwt.assertion.impl.NullAssertionValidator" />
<property name="whitelist">
<map> <!-- this class will pass assertions signed by the issuers and keys in the whitelist -->
<entry key="http://artemesia.local" value="http://localhost:8080/openid-connect-server-webapp/jwk" /> <!-- <bean id="clientAssertionValidator" class="org.mitre.jwt.assertion.impl.WhitelistedIssuerAssertionValidator"> -->
</map> <!-- <property name="whitelist"> -->
</property> <!-- <map> -->
</bean> <!-- <entry key="http://artemesia.local" value="http://localhost:8080/openid-connect-server-webapp/jwk" /> -->
<!-- </map> -->
<!-- </property> -->
<!-- </bean> -->
</beans> </beans>