Skip to content

Commit 8e016a8

Browse files
committed
make the null assertion processor the default
1 parent a5a12b2 commit 8e016a8

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

openid-connect-common/src/main/java/org/mitre/jwt/assertion/impl/NullAssertionValidator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@
2222
import com.nimbusds.jwt.JWT;
2323

2424
/**
25+
* Reject all assertions passed in.
26+
*
2527
* @author jricher
2628
*
2729
*/
2830
public class NullAssertionValidator implements AssertionValidator {
2931

32+
/**
33+
* Reject all assertions passed in, always returns false.
34+
*/
3035
@Override
3136
public boolean isValid(JWT assertion) {
32-
// TODO Auto-generated method stub
3337
return false;
3438

3539
}

openid-connect-server-webapp/src/main/webapp/WEB-INF/assertion-config.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@
3131

3232

3333
<!-- validate client software statements for dynamic registration -->
34-
<bean id="clientAssertionValidator" class="org.mitre.jwt.assertion.impl.WhitelistedIssuerAssertionValidator">
35-
<property name="whitelist">
36-
<map>
37-
<entry key="http://artemesia.local" value="http://localhost:8080/openid-connect-server-webapp/jwk" />
38-
</map>
39-
</property>
40-
</bean>
34+
<bean id="clientAssertionValidator" class="org.mitre.jwt.assertion.impl.NullAssertionValidator" />
35+
36+
<!-- this class will pass assertions signed by the issuers and keys in the whitelist -->
37+
<!-- <bean id="clientAssertionValidator" class="org.mitre.jwt.assertion.impl.WhitelistedIssuerAssertionValidator"> -->
38+
<!-- <property name="whitelist"> -->
39+
<!-- <map> -->
40+
<!-- <entry key="http://artemesia.local" value="http://localhost:8080/openid-connect-server-webapp/jwk" /> -->
41+
<!-- </map> -->
42+
<!-- </property> -->
43+
<!-- </bean> -->
4144

4245

4346
</beans>

0 commit comments

Comments
 (0)