@forgerock/javascript-sdk

中文文档
4.9.1发布于 2026/05/06MITTypeScriptESM + CJS构建来源已验证近 30 天下载 14.6万

ForgeRock JavaScript SDK

原始使用文档
文档目录11 节
  1. Ping SDK for JavaScript
  2. Requirements
  3. Installation
  4. Getting Started
  5. Samples
  6. Documentation
  7. Support
  8. Version History
  9. Contributing
  10. Disclaimer
  11. License

npm (scoped) ForgeRock CI

Logo

Ping SDK for JavaScript

Change Log · Support · Docs


The Ping SDK for JavaScript enables you to quickly integrate Ping products into your JavaScript apps.

Use the SDKs to leverage Intelligent Access to easily step through each stage of an authentication tree by using callbacks.

Requirements

  • ForgeRock Identity Platform

    • Ping Advanced Identity Cloud
    • PingAM 6.5.2+
  • Browsers:

Installation

npm install @forgerock/javascript-sdk

Getting Started

To try out the Ping SDK for JavaScript, perform these steps:

  1. Setup your PingOne Advanced Identity Cloud tenant or PingAM instance.

    See Server configuration in the Documentation.

  2. Clone this repo:

    git clone https://github.com/ForgeRock/sdk-sample-apps.git
    
  3. In the root folder of the repo, use NPM to install dependencies:

    npm install
    
  4. Open javascript/embedded-login/.env.example and edit the configuration values to match your server.

  5. Save the file as .env in the same folder.

  6. Run the sample app by using a simple HTTP server.

    • Run npm run start:embedded-login
  7. In a supported web browser, navigate to https://localhost:8443.

Samples

We provide a sample repo to help demonstrate SDK functionality.

Documentation

Documentation for the SDKs is provided at https://docs.pingidentity.com/sdks, and includes topics such as:

  • Introducing the SDK Features
  • Preparing AM for use with the SDKS
  • API Reference documentation

Support

If you encounter any issues, be sure to check our Troubleshooting pages.

Support tickets can be raised whenever you need our assistance; here are some examples of when it is appropriate to open a ticket (but not limited to):

  • Suspected bugs or problems with ForgeRock software.
  • Requests for assistance - please look at the Documentation and Knowledge Base first.

You can raise a ticket using the Ping Identity Support Portal that provides one stop access to support services.

The support portal shows all currently open support tickets and allows you to raise a new one by clicking New Ticket.

Version History

Our version history can be viewed by visiting our CHANGELOG.md.

Contributing

If you would like to contribute to this project you can fork the repository, clone it to your machine and get started.

Disclaimer

This code is provided by Ping Identity Corporation ("Ping") on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Ping Identity Corporation does not represent or warrant or make any guarantee regarding the use of this code or the accuracy, timeliness or completeness of any data or information relating to this code, and Ping Identity Corporation hereby disclaims all warranties whether express, or implied or statutory, including without limitation the implied warranties of merchantability, fitness for a particular purpose, and any warranty of non-infringement. Ping Identity Corporation shall not have any liability arising out of or related to any use, implementation or configuration of this code, including but not limited to use for any commercial purpose. Any action or suit relating to the use of the code may be brought only in the courts of a jurisdiction wherein Ping Identity Corporation resides or in which Ping Identity Corporation conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions.

License

This project is licensed under the MIT License - see the LICENSE file for details


© Copyright 2020-2025 Ping Identity. All Rights Reserved

版本与发布记录

@forgerock/javascript-sdk 共发布 102 个版本,首次发布于 2019/07/31;过去 12 个月发布了 11 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.9.1latest2026/05/066 个月前
0.0.0-beta-20260505164724beta2026/05/066 个月前
4.9.02026/03/128 个月前
0.0.0-beta-202603102018122026/03/118 个月前
0.0.0-beta-202603051616152026/03/068 个月前
0.0.0-beta-202602262111072026/02/278 个月前

其他发布通道:rc → 2.1.0-rc1,develop → 4.0.0-beta.4,alpha → 4.4.1-alpha.2,beta → 0.0.0-beta-20260505164724。

关于 @forgerock/javascript-sdk 的常见问题

@forgerock/javascript-sdk 是什么?

ForgeRock JavaScript SDK

如何安装 @forgerock/javascript-sdk?

在项目目录运行 npm install @forgerock/javascript-sdk,或使用 pnpm add / yarn add / bun add。

@forgerock/javascript-sdk 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@forgerock/javascript-sdk 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@forgerock/javascript-sdk 可以商用吗?

@forgerock/javascript-sdk 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@forgerock/javascript-sdk 的下载量有多少?

根据 npm 官方下载统计,@forgerock/javascript-sdk 在 2026/10/16 – 2026/11/14 这 30 天内被下载 146,480 次,日均约 4,883 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@forgerock/javascript-sdk 还在维护吗?

最新版本 4.9.1 发布于 2026/05/06(6 个月前);至今共发布 102 个版本,其中过去 12 个月发布了 11 个;首次发布于 2019/07/31。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。