From 68ae49ebe175713a2f18af80a5dc69f13250bb68 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Thu, 7 Jan 2010 17:22:45 +0000 Subject: [PATCH] SEC-1355: Update manual code snippet to cast to OpenIDAuthenticationToken. --- docs/manual/src/docbook/namespace-config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual/src/docbook/namespace-config.xml b/docs/manual/src/docbook/namespace-config.xml index 803b2375a9..daa4278802 100644 --- a/docs/manual/src/docbook/namespace-config.xml +++ b/docs/manual/src/docbook/namespace-config.xml @@ -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:OpenIDAuthenticationToken token = SecurityContextHolder.getContext().getAuthentication(); + code:OpenIDAuthenticationToken token = (OpenIDAuthenticationToken)SecurityContextHolder.getContext().getAuthentication(); List<OpenIDAttribute> attributes = token.getAttributes();The OpenIDAttribute contains the attribute type and the retrieved value (or values in the case of multi-valued attributes). We'll see more about how the