Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. Click Link: The signer clicks the link in their email.

  2. Redirect: S-Sign automatically redirects the browser to the Okta login page.

  3. Certificate Challenge: The signer inserts their CAC/PIV card and enters their PIN. Okta validates the certificate against the trusted CA.

  4. Verification: Upon success, Okta redirects the signer back to the S-Sign document.

  5. 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

Follow the steps below, alternatively watch Storylane.

Step 1: Quick Configuration for Open ID Connect (Okta)

  1. Log in to Okta: Access your Okta administrator dashboard

  2. Navigate to Applications: Go to the Applications tab

  3. Create a new app integration: Click Create App Integration

  4. Select OIDC sign-in method: Choose OIDC - OpenID Connect and click Next

  5. Choose application type: Select Web Application (or your specific application type) and click Next

  6. Under Grant Types: Ensure ‘Authorization Code’ and ‘Refresh Token’ are selected

  7. Click ‘Advance’ and select the following checkboxes:

    1. Implicit (hybrid)

      • Allow ID Token with implicit grant type

      • Allow Access Token with implicit grant type

  8. 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__AuthenticationRedirect

      • Then 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__AuthenticationRedirect

      • https://sdqasandbox--mtest.sandbox.my.salesforce-sites.com/ssign/apex/SSIGN__AuthenticationRedirect

    • Enter your Sign-out redirect URIs (optional)

  9. Save the integration: Click Save

Configure Claim Attributes for the Integration:

  1. In the Okta Admin Console interface, navigate to Security → API.

    1. Either Add Authorization Server (be sure to include your intended signer Audience) or select a previously configured Server.

  2. Click the Claims tab

  3. Click Add Claim (You will create a new claim entry for each of 3 items below)

  4. 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

  1. Under Access Polices click ‘Add New Access policy - Name: (User-defined) - Description: (User-defined) - Assign to: (leave default selected)

  2. 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

  1. In Salesforce Setup, go to: Setup → Custom Metadata Types → Alternative Authentication Configuration → Manage Records

  2. Click New to create a new record.

  3. 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:

Standard Stamp

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

Compact Stamp

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.

Error: The authorization server id is invalid.

In Salesforce, ensure Setup → Custom Metadata Types → Alternative Authentication Configuration → Manage > Authorize URL matches the API server URL (In okta > security > API> Server Used)

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?