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;
/**
* Reject all assertions passed in.
*
* @author jricher
*
*/
public class NullAssertionValidator implements AssertionValidator {
/**
* Reject all assertions passed in, always returns false.
*/
@Override
public boolean isValid(JWT assertion) {
// TODO Auto-generated method stub
return false;
}

View File

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