SEC-1355: Sample OpenID code in reference docs does not compile #1599

Closed
spring-issuemaster opened this Issue Jan 6, 2010 · 2 comments

1 participant

@spring-issuemaster

Andrew Swan (Migrated from SEC-1355) said:

Section 2.3.4 of the reference docs (http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html#ns-openid) contains this code:

OpenIDAuthenticationToken token = SecurityContextHolder.getContext().getAuthentication();

This code doesn't compile; it should contain a cast as follows:

OpenIDAuthenticationToken token = (OpenIDAuthenticationToken) ecurityContextHolder.getContext().getAuthentication();

@spring-issuemaster

Andrew Swan said:

Sorry, I dropped a character by accident; it should of course be:

OpenIDAuthenticationToken token = (OpenIDAuthenticationToken) SecurityContextHolder.getContext().getAuthentication();

@spring-issuemaster

Luke Taylor said:

Thanks. I've added the cast.

@spring-issuemaster spring-issuemaster added this to the 3.0.1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment