Cookie authentication is working on the GP portal but GP gateway prompts for user credentials
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:
-
Navigate to Network > GlobalProtect > Portals.
-
Select your Portal configuration.
-
Open the Agent tab and click on your target Agent Configuration.
-
Select the App tab.
-
Set both settings to No:
-
Use Single Sign-on (Windows):
No -
Use Single Sign-on (macOS):
No
-
-
Click OK, then Commit (and Push to Devices if configured via Panorama).
In Prisma Access (Strata Cloud Manager):
-
Navigate to Service Setup > GlobalProtect Tab > GlobalProtect App > App Settings.
-
Select the desired app configuration.
-
Go to App Configuration > Show Advanced Options > Authentication.
-
Set both settings to No:
-
Use Single Sign-on (Windows):
No -
Use Single Sign-on (macOS):
No
-
-
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.