Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PingAM Config PromoterNew to Visual Studio Code? Get it now.
PingAM Config Promoter

PingAM Config Promoter

Preview

BostonIdentity

|
3 installs
| (1) | Free
Compare self-hosted PingAM (7.x/8.x) environments and promote OAuth2 clients, the OAuth2 provider, realm services, SAML entities and scripts from one to another, with review, backup and rollback.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PingAM Config Promoter

Compare the configuration of two self-hosted PingAM (7.x/8.x) environments in VS Code, review the differences down to single attributes, and promote what you choose from a source environment to a target environment (for example dev → test → prod).

PingOne Advanced Identity Cloud is not supported. Verified against PingAM 7.5.1; AM 8.x is supported by design (attributes the target AM does not have are left out of a promotion and listed) but has not been tested against a live instance yet.

Install

From the VS Code Marketplace:

ext install BostonIdentity.pingam-config-promoter

Or download the .vsix from the releases and run Extensions: Install from VSIX….

What it compares

Object Paired across environments by Promoted
OAuth2 Provider (realm-config/services/oauth-oidc) one per realm single attributes, a whole section, or every changed attribute
Realm services (Session, Validation, Base URL, Session Property Whitelist, Policy Configuration, Email, ..., and the realm's Authentication Settings) service id single attributes, a whole section, or every changed attribute. External data stores and audit logging are compared only; identity stores are not compared
OAuth2 Clients client id whole client
Scripts (every custom script in the realm, and built-ins that are referenced) UUID, then name whole script; built-in scripts are never promoted
SAML 2.0 entity providers (hosted and remote) entity ID, after env variable mapping whole entity; a remote partner's own metadata (endpoints, certificates) is kept as the target has it
Circles of trust name whole circle; its entity providers are promoted first
Global configuration (services, server properties, sites, secret stores, scripting engines) id; servers by URL compared only

Script UUIDs differ between environments. Scripts are matched by name when their UUIDs differ, references to scripts are compared by the script they point to (shown as @script:<name>), and on promotion references are rewritten to the target's script UUIDs.

Getting started

  1. Open the PingAM Promoter view in the Activity Bar and add an environment: the AM URL including the context path (for example https://am.example.com/am) and either an admin username and password or a pasted SSO token. Credentials are stored in the OS keychain, never in settings.
  2. Use Test Connection on each environment.
  3. The Promotion Workbench opens the first time the sidebar is shown. You can also open it from the view's title bar, or with Open in Promotion Workbench on a realm.
  4. Pick the source and target environment and realm, then press Compare.

Using the Workbench

  • Navigation on the left follows the realm menu of the AM admin console: Applications (OAuth 2.0 Clients), Authentication (Settings), Scripts (by script type), Services (OAuth2 Provider, Session, Validation, ...). Only menus with supported objects appear. Each entry shows changed / total.
  • Status cards: modified, only in source, only in target, identical. Click one to filter.
  • Search matches names, client ids, display names, script types and changed field names.
  • Expand a row to see each changed field: the target's current value and the value after promotion. Diff opens the full diff in an editor.
  • Select what to promote. Selecting a client or the provider selects the scripts it needs. For the provider, pick single attributes or whole sections in the expanded row.
  • Dry run shows the plan without writing. Promote opens a review dialog: the objects to write in order, the env variables that will be substituted, client secrets, and, for a protected target, a field where you type the environment name.
  • (Global configuration) in the realm picker compares environment-wide configuration instead of a realm: global services (with the realm defaults they hold), server defaults, each server's own overrides, sites, global secret stores and their label → alias mappings, and scripting engines. It is compared only, never promoted. Servers pair by URL, so map the host with an env variable. The password encryption key and every password attribute are never read.
  • Compare: … Choose… below the environment pickers limits what is fetched and compared, by the same AM menus the result shows (a whole menu such as Applications, or one entry such as OAuth 2.0 Clients, one script type or one realm service). Scripts used by the compared objects are always included; circles of trust bring their entity providers. Re-compares and promotions keep the same scope, and a partial result says so.
  • Clone… on an OAuth2 Client or SAML entity provider row creates a new object in the same environment from it. Clients get a new client id and, if confidential, the secret you enter (the original's is never copied; Show, Copy and Generate next to the field, because the secret is stored nowhere and cannot be read back later). AM fills a new client with its defaults for whatever the original does not store. For such an original the preview has Store only what the original stores ticked: a second write makes the clone identical to the original, so it behaves exactly like it (errors included). Untick it to keep AM's defaults; the result then lists the added values that take effect. Hosted entities get a new entity ID, meta alias per role and secret label identifier. Remote entities are copied whole under a new entity ID, including the original partner's metadata (endpoints and certificates then still point to that partner until you change them), or created from a new partner's metadata (paste or load a file) with only the original's extended configuration copied. Every value is prefilled; everything except the entity ID or client id can be changed in AM afterwards. The dialog previews the body before writing; the clone is backed up as not existing before and logged, so Roll back can delete it.
  • One environment only (search, view, clone) under the pickers hides the target and reads the picked environment and realm on its own: the same list, navigation, search and attribute view, with Open (the whole object in an editor) and Clone… on each row, and nothing to select or promote. Browse Realm (Search, View, Clone) on a realm in the Environments view opens the Workbench that way with the realm picked; press Load to read it (nothing is read from AM until you press Load or Compare). Use it to find a client among many, look at it and clone it without comparing two environments. Compare with… on a row diffs that object with another one of the same type in the same environment (a clone with its original).
  • History & Rollback lists every promotion, clone, dry run and rollback. Roll back restores the backup taken right before that promotion.
  • Saved compares (top of the History tab): every compare saves the configuration it fetched from both environments under promote/compares/, one file per object in the export layout, with a summary.json (AM versions, a hash per side, status counts). A compare that finds both sides unchanged since the previous saved one does not save again; it only updates that entry's "seen" count. So the folder grows only when configuration changes, and any object can be diffed between two points in time with the Explorer's Select for Compare. Turn it off with the setting pingamPromoter.compareHistory.

Is the data up to date?

Yes. Every Compare and Re-compare fetches the current configuration from both AMs; the extension does not cache configuration.

  • Promote re-compares before building the plan, so the review dialog always reflects the target as it is now, and re-compares again afterwards to verify that what was written now matches.
  • Diff editors show the compare they were opened from. After a re-compare, open the diff again to see newer data.
  • Only the AM session token is kept in memory between calls, so you are not logged in for every request.

Env variable mapping

Some values must differ per environment, such as the host in a redirect URI. Without a mapping they show up as differences and promoting copies the source's value into the target. A mapping tells the extension which values in each environment stand for the same thing.

Each environment has one file, named after the environment, of "NAME": "value" pairs:

// promote/env-vars/DEV.json
{ "APP_HOST": "app.dev.example.com", "API_HOST": "api.dev.example.com" }

// promote/env-vars/TEST.json
{ "APP_HOST": "app.test.example.com", "API_HOST": "api.test.example.com" }

Use Env variables in the Workbench to open or create the file.

How values are replaced

  • Compare: on each side, every occurrence of that environment's value is replaced with {{NAME}}, then the two sides are compared. https://app.dev.example.com/callback and https://app.test.example.com/callback both become https://{{APP_HOST}}/callback and compare as identical. The rest of the field is still compared: a different path is still a difference.
  • Promote: {{NAME}} is replaced with the target file's value before writing.
  • Names pair the two files. APP_HOST in DEV.json corresponds to APP_HOST in TEST.json. Names use letters, digits and _; values must not be empty.
  • Part of a string matches, not only a whole value: a host inside a URL is replaced.
  • Not inside a longer word: a value is not replaced when a letter or digit touches it on either side. With "ENV": "dev", /realms/dev/ and app-dev match, device and devonly do not.
  • Case-sensitive: app.DEV.example.com does not match app.dev.example.com.
  • Longer values first: if both app.dev.example.com and dev.example.com are defined, the longer one wins.
  • Every string is checked: OAuth2 Provider attributes, OAuth2 Client fields and script bodies. Numbers and booleans are not.
  • A missing target variable blocks promotion: if an object being promoted uses {{PARTNER_HOST}} and the target's file does not define it, nothing is written.

The Workbench header shows how many variables each side has. Hover over it to see how many objects each variable was found in. A variable found in no object is marked ⚠: usually its value is wrong, for example in a different letter case.

Mapping replaces values. It does not exclude fields from the compare or from promotion.

Safety

  • Backups: the target version of every object is saved before each write, to promote/backups/<env>/<timestamp>/.
  • Full backups: Back up in the History tab (or the command Back Up Environment (Full)) saves every promotable object of every realm, one folder per realm. Restore any of them from the History tab; nothing is preselected.
  • Never deletes by default: objects that exist only in the target are never deleted. A rollback can delete objects a promotion created only when you tick them.
  • Protected environments: promoting into an environment marked protected requires typing its name.
  • Client secrets: AM never returns them. Updated clients keep the target's secret unless you choose to set a new one. New confidential clients get the secret you enter in the review dialog; if you leave it blank, set it in AM afterwards. Secrets are not logged or backed up. Use https:// URLs: over http:// secrets travel in plain text.
  • Passwords in realm services: attributes that AM's schema marks as passwords are never read, compared or promoted, and null values are never sent, so the target's value is kept.
  • Provider hashSalt: the extension never reads it, so it is not compared, shown, exported, backed up or promoted. It seeds pairwise subject ids and must stay environment-specific.
  • Promotion log: promote/promotion-log.jsonl records who promoted what, when, from where to where, and the outcome.

Authentication diagnostics (Beta)

The diagnostics are new: their findings can be incomplete or wrong, and the page and commands may still change. Nothing in them writes to AM. The Diagnostics page and the commands carry a Beta mark until they have been used on enough real environments.

Open Diagnostics (the pulse icon in the Environments view) opens the Diagnostics page: pick the environment and realm on top and run any diagnostic from its tab. The tabs that authenticate as a client (flow run, token introspection) take the client id and secret right there, with the client's readiness shown; the environment's diagnostic client is the default, the secret is used for the page unless "keep for this environment" stores it in the OS keychain. A token to check is pasted on the Token tab (masked, sent once and cleared) or taken from the editor selection. Results render under the tab with a severity filter; Open report opens the full Markdown report. The same diagnostics are also commands (Command Palette, category PingAM Diagnostics). They join what happens on the wire with how AM is configured, in one environment or across two:

Command What it tells
Will This Client Work (Client Check) The realm's discovery document, JWKS, OAuth2 Provider and one client checked against each other: issuer vs realm path and host (LOGIN_HOST env variable), scopes, grant and response types, token endpoint authentication method, signing algorithms and whether a key for them is published, PKCE enforcement, redirect URIs (paste one to see where it differs, character by character). Each finding says what AM would answer at which step, and what to change.
Realm Review (Health Report) Rules over every client, the provider, the SAML entities and circles of trust of a realm: http and loopback redirect URIs outside dev, implicit and password grants, PKCE not enforced, public clients with a secret, HS256 signing, lifetimes above RFC 9700 guidance, refresh tokens on client_credentials, am-introspect-all-tokens on business clients, implied consent, dynamic registration without software statements, SAML entities not requiring signatures, emailAddress NameID with auto-federation, SHA-1, partner certificates expiring within 90 days, circle members that do not exist. Every rule names its standard (RFC 9700, OAuth 2.1, OIDC Core, RFC 8725, SAML 2.0 Security Considerations, NIST SP 800-63B/C) and whether it is config-derived or endpoint-verified. Also whether the global SSO cookie domains cover the realm's login host (Base URL Source) and the environment host: a host they do not cover never returns the session cookie (login loop).
Check Token / Check Token from Selection A JWT decoded and verified with the realm's own JWKS (RS, PS, ES, EdDSA; HS through the diagnostic client's secret): alg against the provider's list (never none), kid, iss, aud, exp / nbf / iat with a leeway (pingamPromoter.diagnostics.leewaySeconds, 60 s by default, at most 300), and the clock skew measured from AM's Date header. jku, x5u and x5c in the token are ignored. An opaque token is introspected with the diagnostic client.
Run client_credentials / Authorization Code / Device Code Flow The flow run with the diagnostic client: a timeline of each request (method, URL, status, time, redacted bodies), the result read through the checks (invalid_client reads as "the client expects private_key_jwt, the runner sent client_secret_basic"), the token introspected and revoked at the end. The authorization code flow uses PKCE S256 and a loopback listener on 127.0.0.1 (random port, or pingamPromoter.diagnostics.loopbackPort), opens your browser, exchanges the code in the extension and discards it. The device code flow shows the verification URL and user code and polls as RFC 8628 says.
Explain an AM Error… One thing from a failing login, looked up against the realm: the authorize URL an application sent (what AM will answer: redirect URI, scopes, response type, PKCE against the client), the URL AM sent the browser back to with error=…, the error JSON of a token endpoint (with the client id), an AM SAML page URL (idpSSOInit.jsp?metaAlias=…), or a sentence from AM's debug log (SAML2Exception: …). Findings list the causes the configuration confirms, the ones it cannot tell and the ones it rules out, with the fix; every sentence of AM's SAML2 message bundles is recognized and named by its key even when the catalogue has no causes for it yet. Also a tab of the Diagnostics page and an editor-selection command.
Analyze a Recorded Login (HAR / SAML-tracer)… A login recorded in the browser (DevTools → Network → "Save all as HAR with content", or a SAML-tracer export): every SAML message decoded, requests paired with responses (RelayState echoed, Response posted to its Destination, unanswered requests), and checked with what a tracer cannot know: is the issuer an entity of the realm, do IdP and SP share a circle of trust, is the ACS the request names registered, which attributes the IdP maps. OAuth2 authorize and token exchanges in the same recording are checked against the client (redirect URI, scopes, response type, PKCE) and AM's error answers are explained. AM's own error answers in the recording are explained from a catalogue of AM's SAML error sentences, each cause checked against the configuration (meta alias of the realm, entity known, circle of trust shared, ACS registered); AM's error page is a generic "Server Error", so the page's URL is used when the sentence is missing. The SAML tab also shows AM's IdP-initiated SSO link for a hosted IdP and a remote SP, to paste into a tab that is already recording.
Decode SAML Request / Response A pasted SAMLRequest / SAMLResponse (redirect or POST binding) decoded and compared with the realm's hosted and remote entities: issuer, destination, audience, NameID format, authentication context, conditions, certificates against the partner's metadata. Signatures are not verified, and the report says so.
Check Diagnostic Client What the environment's diagnostic client still needs.

History. Every saved report of the realm is listed under its tab (newest first): View opens it, Restore parameters fills the tab with the parameters it was made with (client, flow, scopes, redirect, introspect, revoke, the pasted SAML message), so they can be adjusted before clicking Run. Token reports are not written and have no history. Whether the configuration behind a result changed is the Workbench's job (compare environments, saved compares), not the report's.

Keeping the token. A flow run revokes the tokens it obtained; untick revoke the tokens at the end to keep them (they expire on their own): the access token is then shown under the timeline with a copy button and one that takes it to the Token tab.

Reproducing exactly what an application does. On the Flow run tab, paste the authorize URL the application sends to AM (address bar or developer tools): the client, scopes, redirect URI, PKCE and every extra parameter are taken from it. The request is first checked against the client's configuration; if AM would refuse it before the login, nothing opens and the report says what AM would answer and why. Otherwise the browser opens the request as built, and you paste the URL it lands on.

Testing a client you must not change. The authorization code run can use one of the client's registered redirect URIs instead of the loopback listener (Flow run → Redirect): the browser lands on that address after the login (the address need not exist; the page may fail to load), you copy the whole address from the address bar and paste it into the card, and the code is exchanged in the extension host with this run's state and PKCE verifier. Nothing on the client changes; the only requirement is the client's secret. Paste within the code's lifetime (2 minutes by default) and before the real application opens the address, or the code is spent.

The client a run authenticates as. Introspection and flow runs authenticate as a confidential OAuth2 Client (never the admin session): enter its id and secret on the Diagnostics page, or set a diagnostic client on the environment (Edit Environment → Diagnostics) to have it as the default. A secret typed on the page is used for that page only unless you keep it for the environment. The client needs the client_credentials grant (and authorization_code or the device code grant for those runs), the scope am-introspect-all-tokens to introspect other clients' tokens, and the loopback redirect URI the readiness line prints. The tool never creates or changes the client: the client line (and Check Diagnostic Client) lists exactly what is missing.

What the diagnostics can and cannot tell. They read one half of every exchange: AM's configuration and what AM's endpoints answer. They cannot see a partner's SAML side, the infrastructure between the application and AM (load balancers stripping headers, cookie rewriting, CTS replication lag), identity data, or what a script does; scripted failures only show which script each object references. SAML signatures are not verified in this version.

Nothing leaves the machine, and AM is never written to. Requests go only to the configured environment's URL (through VS Code's proxy settings); reports are written under diagnostics/<env>/<realm>/ in the workspace as Markdown and JSON with their id, UTC time, extension version, environment, realm and AM version. Before a report is opened or written, passwords, client secrets, hashSalt, session cookies and Basic credentials are removed; tokens, codes and claims are shown as they were (the tokens a run creates are revoked before the report exists), so a timeline reads like the real exchange: every step with its request headers and body, response headers and body, and a curl command (or the manual steps) that repeats it, the client secret as $CLIENT_SECRET. Set pingamPromoter.diagnostics.redaction to full for reports that leave the team: tokens and codes become SHA-256 fingerprints, subjects (sub, email, NameID, ...) pseudonyms with a salt that is random per report, and every string is swept for JWTs, Bearer / Basic credentials and long Base64. Token reports are opened only, never written. The code under src/diagnostics/ imports no function that writes to AM (a unit test enforces it); a flow run creates tokens in AM, which the runner revokes before it ends. A protected environment needs no confirmation here: diagnostics change no configuration.

Running the tests

  • npm run test:unit: model tests in plain Node.
  • npm test: every test inside a real VS Code instance (downloaded on first run). Set PINGAM_IT_URL, PINGAM_IT_USER and PINGAM_IT_PASSWORD to also run the integration tests against that AM. They promote, clone, back up and roll back in realms /dev and /test, create and delete a diagnostic client in /dev for the diagnostics, and undo their own changes, so point them at a test instance only.

Files the extension writes

All files go under promote/ in the first workspace folder (or the extension's own storage when no folder is open):

Path Content
promote/env-vars/<env>.json env variable mapping
promote/<env>/<realm>/ optional Export to Workspace of a realm
promote/backups/<env>/<timestamp>/ backups taken before each promotion and rollback
promote/promotion-log.jsonl promotion log
promote/compares/<source>_<realm>__<target>_<realm>/<timestamp>/ saved compares: source/ and target/ in the export layout, plus summary.json
diagnostics/<env>/<realm>/<id>-<kind>.{md,json} diagnostic reports (client check, health, flow run, SAML, cross-environment); next to promote/, not under it

Known limitations

  • Not compared yet: authentication trees (journeys), nodes, policies, agents, identity stores, realm secret mappings. Whether a script is used by an auth tree or a social IdP is not checked.
  • Global configuration and realm sub-configurations (for example social IdP instances) are compared only, not promoted.
  • An attribute whose meaning changed between AM versions is not detected; only attributes the target AM does not have are left out.
  • Browser-based SSO login is not supported; paste an SSO token instead.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft