Spring Security
  1. Spring Security
  2. SEC-1329

Document OpenID attribute exchange configuration

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0.RC2
    • Fix Version/s: 3.0.0
    • Component/s: Docs and Website
    • Labels:
      None

      Description

      I found the following example of how to configure OpenID attribute in an issue comment. It should be added to the manual.

      <openid-login>
      <attribute-exchange>
      <openid-attribute name="email" type="http://schema.openid.net/contact/email" required="true" count="2"/>
      <openid-attribute name="name" type="http://schema.openid.net/namePerson/friendly" />
      </attribute-exchange>
      </openid-login>

        Activity

        Hide
        Stephen Crawley added a comment -

        Actually, I just tried this out and it does not work. Spring complains that <attribute-exchange> is an unexpected element. (And the Eclipse XML validator was saying the same thing.)

        Show
        Stephen Crawley added a comment - Actually, I just tried this out and it does not work. Spring complains that <attribute-exchange> is an unexpected element. (And the Eclipse XML validator was saying the same thing.)
        Hide
        Luke Taylor added a comment -

        It is used in the OpenID sample and works there without problems. Chances are you have the wrong schema or are using the wrong jars. I'd suggest you use the sample as a starting point.

        Show
        Luke Taylor added a comment - It is used in the OpenID sample and works there without problems. Chances are you have the wrong schema or are using the wrong jars. I'd suggest you use the sample as a starting point.
        Hide
        Stephen Crawley added a comment -

        Sorry Luke. I made a stupid mistake when adding the element.

        However, in looking at the sample XML, I noticed that it is still using the 2.0 xsd for the spring-beans schema. It's harmless, but you might want to do a trawl across all of the samples ...

        Show
        Stephen Crawley added a comment - Sorry Luke. I made a stupid mistake when adding the element. However, in looking at the sample XML, I noticed that it is still using the 2.0 xsd for the spring-beans schema. It's harmless, but you might want to do a trawl across all of the samples ...
        Hide
        Luke Taylor added a comment -

        Added extra section to namespace chapter on attribute exchange.

        Show
        Luke Taylor added a comment - Added extra section to namespace chapter on attribute exchange.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Stephen Crawley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: