CodeSign Secure Documentation
  • Overview
    • About CodeSign Secure
    • Getting Started
    • Documentation Guide
    • Portal Overview
    • Troubleshooting
      • FAQ
    • Glossary
  • Reference Guide
    • Header Bar
      • CodeSign Secure Documentation
      • Swagger API
      • Profile Section
    • Dashboard
      • Key Performance Indicators
      • Issued Certificates
      • Signatures Generated
      • HSM Health Check
    • Keys and Certificates
      • Key and Certificate Lifecycle
    • App Management
    • Signing Requests
      • Approval Workflows
    • Signing Tools
    • Reports
      • Signing Request Report
      • Audit Trail
      • Certificate Report
      • Client Report
    • Logs
    • System Setup
      • Identity Store
      • Backup
      • User
      • Roles and Permissions
      • Email
      • Signing Projects
      • SSL/TLS Management
      • Environment
      • Plugins
  • Setup & Architecture
    • Identity and Access Control
    • Architecture and Concepts
    • Installation
      • Windows
        • Installing the Server
        • Ports and Protocols
        • High Availability and Backup
        • Upgrades and Compatibility
    • Security
      • Security Hardening Checklist
      • Client Authentication
      • Designing Signing Policies
  • Release Notes
    • Releases for 2026
      • v3.2.1
    • Releases for 2025
      • v3.2.0
    • Releases for 2024
      • v3.1.0
  • API Reference
    • Getting Started
    • Authorizing Requests
    • Securing API Access
    • Request and Response Conventions
    • Endpoint Reference
      • Signing
      • Signing Requests
      • Certificates
      • Applications and Environments
      • User Management
      • Permissions
      • Email
      • System Setup
      • Reports
      • Dashboard
      • License
  • Integration Guides
    • Signing Capabilities
      • Supported Formats and Platforms
      • Timestamping
      • Windows Signing - SignTool
        • Signing
        • Macro Signing
      • Apple Signing
      • AppX & MSIX Signing
      • Visual Studio ClickOnce
      • Jar Signing
      • Sign HLK/HCK using CodeSign Secure
      • NuGet Signing
      • Mage Signing
      • Sign OVA/OVF using Encryption Consulting’s Utility Tool
      • Utility Tool for code signing
      • Container Signing
      • PKCS11 Wrapper
        • APK Signing
        • OpenSSL Signing
        • XML Signing
        • JSign Tool Signing
        • Jarsigner Signing
        • GPG2, Debian & RPM Signing
      • Reproducible Build
        • Automated Hash Validation
        • Reproducible Build Process Flow
        • Pipeline Script Components
        • Hash Validation
    • CI/CD Integration
      • GitHub Actions
      • Jenkins
      • GitLab
      • Azure DevOps
      • TeamCity
      • Bamboo
      • Securing CI/CD Credentials

Identity Store (Azure AD)

Let users sign in to CodeSign Secure with their Azure AD (Microsoft Entra ID) accounts. Users can also sign in with an email and password registered by a System Admin.

Overview
  • Azure AD is the identity store type available in 3.02.01. Local accounts created in User keep working alongside it.

  • Only one identity store configuration can be active at a time.

  • Setting it up has two parts: register an application in Microsoft Entra ID, then add its details in CodeSign Secure.

Identity Store section
Part 1: Register an application in Microsoft Entra ID
  1. Sign in to the Azure portal and open Microsoft Entra ID > App registrations > New registration.

  2. Enter a name such as CodeSignSecure. For Supported account types, select Accounts in this organizational directory only (Single tenant).

  3. Under Redirect URI, select Single-page application (SPA) and enter https://<your_domain>/. Select Register.

  4. Open Authentication > Add a platform > Web and add the redirect URI https://<your_domain>/api/auth/azure/callback/.

  5. On Overview, copy the Application (client) ID and the Directory (tenant) ID.

  6. Open API permissions > Add a permission > Microsoft Graph and add the permissions in the table below, then select Grant admin consent for <your organization>. Every permission should show Granted in the Status column.

  7. Open Certificates & secrets > New client secret, enter a description, choose an expiry and select Add. Copy the secret Value immediately; Azure shows it only once. Note the expiry date so you can rotate it in time.

  8. Open Token configuration > Add optional claim, choose token type ID, select login_hint and select Add.

Microsoft Graph permissions
PermissionTypeAdmin consentWhy it is needed
User.ReadDelegatedNoSign in and read the signed-in user’s profile. Added automatically to new registrations; keep it.
User.ReadBasic.AllDelegatedNoRead basic profiles of other users
User.Read.AllApplication (as in the reference configuration)YesRead users’ full profiles
Group.Read.AllDelegatedYesRead groups
GroupMember.Read.AllDelegatedYesRead group memberships
Sites.ReadWrite.All or Sites.SelectedApplicationYesOnly if backups are stored in SharePoint. See Backup.
Configured Microsoft Graph API permissions

Configured permissions with admin consent granted.

Token configuration with the login_hint optional claim

The login_hint optional claim added to the ID token.

Part 2: Add the identity store in CodeSign Secure

Go to System Setup > Identity Store, add a new Azure AD configuration, and fill in the four fields:

CodeSign Secure fieldValue from Microsoft Entra IDExample
Client IDApplication (client) ID1b2c3d4e-...
Secret KeyThe client secret Value (not the Secret ID)(hidden)
Callback URLThe portal address registered as the SPA redirect URIhttps://codesign.example.com/
Connection URLThe sign-in endpoint for your tenanthttps://login.microsoftonline.com/<tenant-id>
Add Azure AD identity store form

Save the configuration, sign out, and sign in again with an Azure AD account to confirm it works.

Manage the configuration

Right-click an entry for these options:

Identity store options
  • View Details shows the Client ID, Callback URL, Connection URL, Status, Secret Key and creation and modification times.

  • Edit changes the configuration.

  • Archive makes the configuration inactive. You are asked to confirm first.

Rotate the client secret
  1. In Microsoft Entra ID, create a new client secret and copy its value.

  2. In CodeSign Secure, right-click the identity store, select Edit and replace the Secret Key.

  3. Sign in with Azure AD to confirm it works. If sign-in doesn’t work, then restart the Apache Monitor service, as settings may be cached.

  4. Delete the old secret in Microsoft Entra ID.

Troubleshooting sign-in
ErrorCauseFix
AADSTS50011: redirect URI mismatchThe redirect URIs in the app registration don’t match the portal addressCheck both redirect URIs in Part 1, including the trailing /
AADSTS7000215: invalid client secretThe Secret Key holds the Secret ID or a mistyped valuePaste the secret Value into Secret Key
AADSTS7000222: client secret expiredThe client secret has passed its expiry dateRotate the client secret
AADSTS65001: consent requiredAdmin consent was not grantedSelect Grant admin consent on the API permissions page
On this Page:
Support Privacy Policy Terms of Service

Copyright Encryption Consulting LLC. All rights reserved.