Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1122

mdui:Description from metadata not showing up on Shibboleth 3.3 login page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.1
    • Component/s: Metadata, User Interface
    • Labels:
    • Environment:

      Works in Shibboleth 3.2.1, did not work after upgrade to 3.3.

    • Operating System:
      Linux
    • Java Version:
      Oracle Java 8
    • Servlet Container:
      Apache Tomcat 8

      Description

      Descriptions and logos for service providers are missing on the Shibboleth 3.3 login page.

      rpUIContext.getLogo() and rpUIContext.getServiceDescription() are not populated in login.vm.

      I noticed that rpUIContext does work in intercept/attribute-release.vm, it calls getLogo and displays it on the consent page.

      I turned on DEBUG for spring and found the logs for Velocity. For intercept/attribute-release.vm I found this:
      'rpUIContext' -> net.shibboleth.idp.ui.context.RelyingPartyUIContext@2a33cb13
      For login.vm:
      'rpUIContext' -> [null]

      rpUIContext is listed three times in both calls with the same values.

      Before the call to 'Rendering MVC [org.springframework.web.servlet.view.velocity.VelocityView: name 'login'; URL [login.vm]] with model map […..’ there appears to be some setup steps that were pulling classes together to pass to Velocity:

      2017-02-08 09:28:05,076 - DEBUG [org.springframework.webflow.execution.ActionExecutor:49] - Executing [EvaluateAction@1a2773e9 expression = authenticationContext.getSubcontext(T(net.shibboleth.idp.ui.context.RelyingPartyUIContext)), resultExpression = viewScope.rpUIContext]
      2017-02-08 09:28:05,076 - DEBUG [org.springframework.webflow.execution.AnnotatedAction:142] - Putting action execution attributes map[[empty]]
      2017-02-08 09:28:05,077 - DEBUG [org.springframework.webflow.execution.AnnotatedAction:149] - Clearing action execution attributes map[[empty]]
      2017-02-08 09:28:05,077 - DEBUG [org.springframework.webflow.execution.ActionExecutor:53] - Finished executing [EvaluateAction@1a2773e9 expression = authenticationContext.getSubcontext(T(net.shibboleth.idp.ui.context.RelyingPartyUIContext)), resultExpression = viewScope.rpUIContext]; result = success

      The setup steps for 'Rendering MVC [org.springframework.web.servlet.view.velocity.VelocityView: name 'intercept/attribute-release'; URL [intercept/attribute-release.vm]] with model map’: were a bit different:

      2017-02-08 09:35:59,518 - DEBUG [org.springframework.webflow.execution.ActionExecutor:49] - Executing [EvaluateAction@5b6219bd expression = opensamlProfileRequestContext.getSubcontext(T(net.shibboleth.idp.authn.context.AuthenticationContext), true).getSubcontext(T(net.shibboleth.idp.ui.context.RelyingPartyUIContext)), resultExpression = viewScope.rpUIContext]
      2017-02-08 09:35:59,518 - DEBUG [org.springframework.webflow.execution.AnnotatedAction:142] - Putting action execution attributes map[[empty]]
      2017-02-08 09:35:59,520 - DEBUG [org.springframework.webflow.execution.AnnotatedAction:149] - Clearing action execution attributes map[[empty]]
      2017-02-08 09:35:59,520 - DEBUG [org.springframework.webflow.execution.ActionExecutor:53] - Finished executing [EvaluateAction@5b6219bd expression = opensamlProfileRequestContext.getSubcontext(T(net.shibboleth.idp.authn.context.AuthenticationContext), true).getSubcontext(T(net.shibboleth.idp.ui.context.RelyingPartyUIContext)), resultExpression = viewScope.rpUIContext]; result = success

      Both appear to be pulling from net.shibboleth.idp.ui.context.RelyingPartyUIContext. Not sure what opensamlProfileRequestContext.getSubcontext does that is different from authenticationContext.getSubcontext.

        Attachments

        1. Consent Page.png
          1.25 MB
          Matthew B
        2. dev-3.3.0-IDP.png
          244 kB
          Matthew B
        3. login.vm
          7 kB
          Matthew B
        4. Login-Page.png
          811 kB
          Matthew B
        5. prod-3.2.1-IDP.png
          361 kB
          Matthew B
        6. Shibboleth login screen 2017-02-22 at 9.25.19 AM.png
          330 kB
          Matthew B

          Issue Links

            Activity

              People

              Assignee:
              cantor.2@osu.edu Scott Cantor
              Reporter:
              mbrookov@mines.edu Matthew B
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 45 minutes
                  1h 45m