Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-1437

[JDV6] SSO_BEARER_ONLY=false behaves the same as SSO_BEARER_ONLY=true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • JDV63 1.1.0.GA
    • 1.3.0.GA
    • JDV, RH-SSO
    • None
    • S2I image: jboss-eap70-openshift:1.4

    • CLOUD Maintenance Sprint 2

      Using the latest EAP 7 S2I builder image and associated eap70-sso-s2i template to build an SSO client application, I specified SSO_BEARER_ONLY=false in the template. When the app was built and deployed, the launch scripts registered the SSO client with bearerOnly=true.

      If I changed it to SSO_BEARER_ONLY=foobar I observed the same behavior. Only when I left it blank did it get set to false when registering the client.

      Upon investigation I see this bug in the /opt/eap/bin/launch/keycloak.sh script:

      if [ -n "$SSO_BEARER_ONLY" ] && [ "$SSO_BEARER_ONLY"="true" ]; then
      

      Notice there is no whitespace surrounding the bash = operator. This should be

      if [ -n "$SSO_BEARER_ONLY" ] && [ "$SSO_BEARER_ONLY" == "true" ]; then
      

              rhn-support-fspolti Filippe Spolti
              jfalkner1@redhat.com James Falkner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: