![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@forgerock/javascript-sdk
Advanced tools
Change Log · Support · Docs
The ForgeRock JavaScript SDK enables you to quickly integrate the ForgeRock Identity Platform into your client-side JavaScript apps.
Use the SDKs to leverage Intelligent Authentication in ForgeRock's Access Management (AM) product, to easily step through each stage of an authentication tree by using callbacks.
ForgeRock Identity Platform
Browsers:
fast-text-encoding
is recommendedTip: Older browsers (like IE11) may require multiple polyfills, which can be found in our documentation.
npm install @forgerock/javascript-sdk
To try out the ForgeRock JavaScript SDK, perform these steps:
Setup CORS support in an Access Management (AM) instance.
See Enabling CORS Support in the Documentation.
Create an authentication tree in AM.
See Creating a User Authentication Tree in the Documentation.
Clone this repo:
git clone https://github.com/ForgeRock/forgerock-javascript-sdk.git
In the root folder of the repo, use NPM to install dependencies:
npm install
Build the ForgeRock JavaScript SDK:
npm run build
Open samples/custom-ui/index.html
and edit the configuration values to match your AM instance.
This SDK requires HTTPS (secure protocol) which means security (SSL/TLS) certificates are necessary. For local testing and development, it's common to generate your own self-signed certificates. You're free to use any method to do this, but if you need assistance in generating your own certs, the following can be helpful:
Using this utility (mkcert
) can help simplify the process of creating trusted certs
After following mkcert
's installation guide and simple example of creating certs, you should have two files: example.com+5.pem
& example.com+5-key.pem
(Ensure these two files are in the root of this project)
Warning: Self-signed certificates or certificates not from an industry-recognized, certificate authority (CA) should never be used in production.
Serve the samples
directory by using a simple HTTP server.
If you used the mkcert
utility from above, followed their tutorial, and the files are in the root of this project, simply run npm run start:samples
Or, if you generated certs using a different method, you will need to run the below with your certificate and key file names you created:
http-server samples -c1 -p 8443 --ssl --cert <your_certificate> --key <your_private_key>
Edit your /etc/hosts
file to point your localhost (e.g. 127.0.0.1
) to sdkapp.example.com
In a supported web browser, navigate to https://sdkapp.example.com:8443
, and then click
Custom UI.
ForgeRock provides these samples to help demonstrate SDK functionality:
Custom UI - /samples/custom-ui
In most real-world scenarios, you will want to have full control over the UI. In these cases, you can use FRAuth
to obtain typed callback instances from authentication trees and render the UI in whatever way makes sense for your application.
In this example, a simple React app iteratively calls FRAuth.next()
until either an error occurs, or the sample obtains a session token.
The custom React component <UsernamePassword />
is defined to handle an authentication step named "UsernamePassword".
Documentation for the SDKs is provided at https://sdks.forgerock.com, and includes topics such as:
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):
You can raise a ticket using BackStage, our customer support portal that provides one stop access to ForgeRock services.
BackStage shows all currently open support tickets and allows you to raise a new one by clicking New Ticket.
Our version history can be viewed by visiting our CHANGELOG.md.
If you would like to contribute to this project you can fork the repository, clone it to your machine and get started.
Be sure to check out our Coding Style and Guidelines page.
This code is provided by ForgeRock on an “as is” basis, without warranty of any kind, to the fullest extent permitted by law. ForgeRock 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 ForgeRock 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. ForgeRock 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 ForgeRock resides or in which ForgeRock conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions.
This project is licensed under the MIT License - see the LICENSE file for details
© Copyright 2020 ForgeRock AS. All Rights Reserved.
FAQs
ForgeRock JavaScript SDK
The npm package @forgerock/javascript-sdk receives a total of 1,780 weekly downloads. As such, @forgerock/javascript-sdk popularity was classified as popular.
We found that @forgerock/javascript-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.