SEC-1355: Update manual code snippet to cast to OpenIDAuthenticationToken.

This commit is contained in:
Luke Taylor 2010-01-07 17:22:45 +00:00
parent 4e4242d010
commit 68ae49ebe1
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@
attributes supported will depend on your OpenID provider. The attribute values are
returned as part of the authentication process and can be accessed afterwards using the
following
code:<programlisting language="java">OpenIDAuthenticationToken token = SecurityContextHolder.getContext().getAuthentication();
code:<programlisting language="java">OpenIDAuthenticationToken token = (OpenIDAuthenticationToken)SecurityContextHolder.getContext().getAuthentication();
List&lt;OpenIDAttribute> attributes = token.getAttributes();</programlisting>The
<classname>OpenIDAttribute</classname> contains the attribute type and the retrieved
value (or values in the case of multi-valued attributes). We'll see more about how the