CAC/PIV Verification
This guide outlines how to configure CAC (Common Access Card) and PIV (Personal Identity Verification) authentication for S-Sign using Okta as the Identity Provider.
The Signer Experience
When a signer receives a document link with CAC/PIV enabled, the workflow will include the SSO:
Click Link: The signer clicks the link in their email.
Redirect: S-Sign automatically redirects the browser to the Okta login page.
Certificate Challenge: The signer inserts their CAC/PIV card and enters their PIN. Okta validates the certificate against the trusted CA.
Verification: Upon success, Okta redirects the signer back to the S-Sign document.
Access: The document is unlocked, and the signer can proceed to sign.
Security and Compliance Benefits
Multi-Factor Authentication (MFA): Satisfies federal requirements for hardware-based MFA.
Non-Repudiation: Digital certificates provide stronger proof of identity than standard email access.
Audit Trail: The S-Sign Audit Trail will record that the user was authenticated via an external Identity Provider (Okta), including the successful authentication timestamp.
Prerequisites
Compatible S-Doc/ S-Sign version
Your Salesforce org must already have S-Doc/ S-Sign version Fall '25 Release or later to support Okta-based CAC/PIV authentication
Add the
SSign.AuthenticationRedirectVisualforce Page to the org’s S-Sign configuration: S-Sign Quick Install & Config Guide – Salesforce Lightning Experience – S-Docs Knowledge BaseOkta Integration Configured: If you do not have an Okta account, navigate to the URL below and click ‘Sign Up’, then create an Integrator Free Plan: Okta Integrator Free Plan org configurations | Okta Developer
Follow the steps below, alternatively watch Storylane.

Step 1: Quick Configuration for Open ID Connect (Okta)
Log in to Okta: Access your Okta administrator dashboard
Navigate to Applications: Go to the Applications tab
Create a new app integration: Click Create App Integration
Select OIDC sign-in method: Choose OIDC - OpenID Connect and click Next
Choose application type: Select Web Application (or your specific application type) and click Next
Under Grant Types: Ensure ‘Authorization Code’ and ‘Refresh Token’ are selected
Click ‘Advance’ and select the following checkboxes:
Implicit (hybrid)
Allow ID Token with implicit grant type
Allow Access Token with implicit grant type
Configure general settings:
Give the app integration a name
Enter your Sign-in redirect URIs, which is the URL where Okta will redirect the user after authentication (You will have two URLs, your Salesforce domain and S-Sign Site).
First is your internal org, which will include the ssign namespace. Remove sandbox portions for production environment:
https://https://[domainname][--sandboxname]--ssign[.sandbox].vf.force.com/apex/SSIGN__AuthenticationRedirectThen your S-Sign Site; be sure to add the site’s custom path URL if using:
https://[YourSSignSiteBaseURL][/custompathURL]/apex/SSIGN__AuthenticationRedirect
Example:
https://sdqasandbox--mtest--ssign.sandbox.vf.force.com/apex/ssign__AuthenticationRedirecthttps://sdqasandbox--mtest.sandbox.my.salesforce-sites.com/ssign/apex/SSIGN__AuthenticationRedirect
Enter your Sign-out redirect URIs (optional)
Save the integration: Click Save
Configure Claim Attributes for the Integration:
In the Okta Admin Console interface, navigate to Security → API.
Either Add Authorization Server (be sure to include your intended signer Audience) or select a previously configured Server.
Click the Claims tab
Click Add Claim (You will create a new claim entry for each of 3 items below)
Include the following attributes using Okta Expression Language:
Name
Value
Scopes
Type
Included
sub
Note: this claim is the “subject identifier” and is added by Okta by default
(appuser != null) ? appuser.userName : app.clientId
Any
access
Always
serial_number
appuser.serialNumber
Any
id
Always
full_name
appuser.cacName
Any
id
Always

Fully configured Claim for S-Sign compatibility with Okta Open ID Connect
Under Access Polices click ‘Add New Access policy - Name: (User-defined) - Description: (User-defined) - Assign to: (leave default selected)
Then under the configured Access Polices, click Add Rule: Under Grant type select:
- Device Authorization - Implicit (hybrid) - Leave all other default settings selected and save
Additional Okta Resources:
Step 2: Create Alternative Authentication Configuration Record in Salesforce
In Salesforce Setup, go to:
Setup → Custom Metadata Types → Alternative Authentication Configuration → Manage RecordsClick New to create a new record.
Fill in the following:
Field
Value
Where to Find in Okta
Label
A descriptive name for this configuration
(User-defined)
API Name
Auto-generated or customized
(User-defined)
Base_URL__c
Base URL of the Okta authentication page (e.g., https://site.okta.com)
Okta Admin Console → Security → API→ Auth Server → [Server Name] → Issuer
Authorize_URL__c
Authorization endpoint path format (e.g., modify the URL with Auth. Server name oauth2/xxxxxxx0xxxxx987/v1/authorize)
Okta Admin Console → Security → API → Auth. Server → [Server Name]
Client_Id__c
Client ID of the authentication app
Okta Admin Console → Applications → [Your Auth App]
Scope__c
Scope used for authentication requests (e.g. profile email openid)
Okta Admin Console → Security → API → Auth Server → [Server Name] → Scopes
Custom_Parameters__c
JSON map of required key/value pairs
Keys listed below; values can be customized in Okta
Required Custom Parameters
In the Custom_Parameters__c field, enter a JSON object containing the following keys (values can be customized in Okta with the exception of CAC/PIV for type, but keys must match exactly for S-Docs compatibility):
Key (required as specified)
Value
type
CAC/PIV
idNumberLabel
(User-defined; e.g.: serial_number)
fullNameLabel
(User-defined; e.g.: full_name)
{"type": "CAC/PIV","idNumberLabel":"serial_number","fullNameLabel": "full_name"}
Optional Custom Parameters
Adding "debug": "true" to your JSON map will add a Visualforce page to the signing process that displays the User’s ID Token Payload. This can aid in investigation during implementation.
Save and Verify
Click Save in Salesforce.

Example of a complete Alternative Authentication Configuration Detail
Now you can configure your templates for CAC/PIV!
Open your S-Sign enabled S-Docs Template
Assign Signer Profiles and configure which profiles require CAC/PIV authentication.

For any profiles not needing authentication, simply bypass it at the profile level.
Pull in Okta Data to a Stamp Signature
Signer Profiles with the new Alternative Authentication method assigned gain the new Input Field Type option “Digital Stamp”

This field type will pull the signer’s full_name and serial_number from Okta into a digital stamp:

The "Stamp Style" option now includes both "Standard" and "Compact" styles to choose from.

Troubleshooting:
Error
Resolution
Bad Request 400: Error: Your request resulted in an error. The 'redirect_uri' parameter must be a Login redirect URI in the client app settings:
Ensure you’ve added redirect URI in your app and have ‘apex/ssign__AuthenticationRedirect’
appended to the end.
Debugging
Adding "debug": "true" to your JSON map will add a Visualforce page to the signing process that displays the User’s ID Token Payload. This can aid in investigation during implementation.

Last updated
Was this helpful?

