IBM Support

PI52604: OPENID CONNECT SSO WITH ACTIVE DIRECTORY FAILS WITH 403 FORBIDDEN

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • We are using the WebSphere Application Server SSO solution with
    the OpenID connect protocol with Azure active directory
    
    We see an HTTP 403 Forbidden error
    
    From WebSphere Application Server trace, it shows AD is
    complaining about WebSphere Application Server sending
    an invalid request to AD because of missing the client_id
    attribute.
    
    The error is a 400 reply from AD:
    [{"error":"invalid_request","error_description":"AADSTS90014:
    The request body must contain the following parameter:
    'client_id'.\r\nTrace ID:
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server            *
    *                  administrators of OpenID Connect            *
    ****************************************************************
    * PROBLEM DESCRIPTION: The OpenID Connect relying party may    *
    *                      not interact properly with an Azure     *
    *                      active directory IdP.                   *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that includes this       *
    *                  APAR.                                       *
    ****************************************************************
    When the WebSphere OpenID Connect (OIDC) relying party (RP)
    Trust Association Interceptor (TAI) is used with Azure active
    directory as the identity provider (IdP), an HTTP 403
    Forbidden error may be returned from the TAI.
    An HTTP 400 error similar to the following is returned from the
    IdP when the initial login is attempted:
    [{"error":"invalid_request","error_description":"AADSTS90014:
    The request body must contain the following parameter:
    'client_id'.
    

Problem conclusion

  • Some identity providers (IdPs) require that the client_id and
    client_secret parameters be URL encoded.  The OpenID Connect
    (OIDC) relying party (RP) does not URL encode these parameters.
    
    The OIDC RP is updated to optionally URL encode the client_id
    and client_secret parameters.  To do this, add the following
    OIDC RP TAI custom property:
    
    encodeParameters=true
    
    Valid values for this custom property are true and false.  The
    default value is false.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.13 and 8.5.5.10.  Please refer to the
    Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    
    Keywords: IBMWL3WSS OIDC
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI52604

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-11-16

  • Closed date

    2016-01-18

  • Last modified date

    2016-02-12

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022