Cookie authentication is working on the GP portal but GP gateway prompts for user credentials

Cookie authentication is working on the GP portal but GP gateway prompts for user credentials

30422
Created On 08/02/24 13:22 PM - Last Modified 12/02/26 20:29 PM


Symptom


  • GlobalProtect Portal authenticates successfully via SAML and generates an authentication override cookie.
  • When connecting to the GlobalProtect Gateway, the client prompts for credentials instead of silently consuming the cookie generated by the portal.
  • In the client-side PanGPS.log, Portal authentication succeeds and saves the cookie using the SAML Username Attribute format:
  • :691 ----Portal Login starts----
    :691 m_szSavedUserName is <SAML_Username_Attribute_format>
    :691 Portal user auth cookie file name is C:\Users\<SSO_username>\AppData\Local\Palo Alto Networks\GlobalProtect\PanPUAC_XXXX.dat
  • However, during Gateway Pre-Login, OS Single Sign-On (SSO) credentials are evaluated instead, causing GlobalProtect to search for a non-existent cookie file hashed against the OS logon username:
  • :322 SSO is enabled. Using SSO credential to login to gateway. :322 Portal user auth cookie file name is C:\Users\<SSO_username>\AppData\Local\Palo Alto Networks\GlobalProtect\PanPUAC_YYYYYY.dat :323 Failed to open file C:\Users\<SSO_username>\AppData\Local\Palo Alto Networks\GlobalProtect\PanPUAC_YYYYYY.dat



 



Environment


  • Prisma Access
  • SSO
  • SAML authentication
  • Cookies Authentication Override


Cause


  • This issue is caused by a username format mismatch between the SAML Username Attribute and the Local OS Logon Username:
  • The GlobalProtect authentication override cookie file name on the client machine is derived from a cryptographic hash of the authenticated username.
  • When logging into the Portal via SAML, the cookie is saved under the identity returned in the SAML assertion’s Username Attribute (typically a UPN or email, such as user@domain.com).
  • When Use Single Sign-on (Windows / macOS) is enabled (Yes), GlobalProtect assumes Windows OS logon credentials (e.g., DOMAIN\user or sAMAccountName) should be used for pre-login to the Gateway.
  • Because the OS username does not match the SAML Username Attribute,  cookie authentication fails on the gateway and prompts the user for credentials.


Resolution


In PAN-OS / Panorama:

  1. Navigate to Network > GlobalProtect > Portals.

  2. Select your Portal configuration.

  3. Open the Agent tab and click on your target Agent Configuration.

  4. Select the App tab.

  5. Set both settings to No:

    • Use Single Sign-on (Windows): No

    • Use Single Sign-on (macOS): No

  6. Click OK, then Commit (and Push to Devices if configured via Panorama).

In Prisma Access (Strata Cloud Manager):

  1. Navigate to Service Setup > GlobalProtect Tab > GlobalProtect App > App Settings.

  2. Select the desired app configuration.

  3. Go to App Configuration > Show Advanced Options > Authentication.

  4. Set both settings to No:

    • Use Single Sign-on (Windows): No

    • Use Single Sign-on (macOS): No

  5. Save and Push Config.

 

Note: If SAML authentication is used, GP SSO option should be disabled, regardless if SAML is considered as single sign-on solution
GlobalProtect cannot populate user credentials in a web-form (both Default browser and Embedded browser) presented by IdP.  

 

17 Oct 24 (Vijay) - Article updated with Praveen and published external.



Additional Information


In PAN-OS terminology, "Use Single Sign-On (Windows / macOS)" specifically refers to native OS credential pass-through (Windows/Kerberos logon credentials), not SAML-federated single sign-on. Disabling this setting does not disable or impair SAML SSO.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HDnvCAG&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language