Announcement Announcement Module
Collapse
No announcement yet.
Spring security SAML and SAML attributes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring security SAML and SAML attributes

    I need to integrate a spring application with an existing SAML IDP requesting some custom SAML attributes to be set in the SAML authentication request.

    I've tried with the spring security SAML extension but I couldn't find a way to set SAML attributes in the SAML authentication request.

    Can someone give me a hint?

    Thanks

  • #2
    SAML AuthenticationRequest doesn't support any standard way to send attributes towards IDP. The only place for inclusion of such data is the Extensions element. You can customize content sent in the created AuthnRequest by overriding method "protected AuthnRequest getAuthnRequest(...)" in the WebSSOProfileImpl.

    I think that you should ask your IDP for an example of an authentication request they expect and work from that.

    Vladi

    Comment


    • #3
      Hi Vladi

      would it make sense to have WebSSOProfileOptions receive an ExtensionsProvider (interface) and provide a method like:

      public Extensions getExtensions() {
      if (extensionsProvider != null) {
      return extensionsProvider.getExtensions();
      }
      return null;
      }

      WebSSOProfileImpl.getAuthnRequest could then call request.setExtensions(options.getExtensions());

      Can I submit a patch?

      Andrea

      Comment


      • #4
        Hi Andrea,

        This sounds good, feel free to send a pull request.

        Cheers, Vladi

        Comment

        Working...
        X