Open Campus ID Connect SDK
Last updated
Last updated
Download it via npm here: https://www.npmjs.com/package/@opencampus/ocid-connect-js
Github documentation is here: https://github.com/opencampus-xyz/ocid-connect-js
Connect OCID Button design (Figma) is
To integrate your product with the OpenCampus ecosystem, you need to retrieve and associate the OCIDs of your users within your system. The "Connect with OCID" functionality works similarly to "Login with Twitter" or "Login with Google." Our product suite provides a JavaScript SDK that you can integrate into your site, enabling users to log into OCID with a simple button click.
This SDK provides an OAuth/OIDC interface to facilitate integration for our partners.
The SDK includes a JavaScript wrapper for our authentication APIs.
It also provides a set of React components for seamless integration into React applications.
Integration instructions are available in the package README on the public npm site.
The Connect with OCID APIs fully implement the OIDC standard, allowing developers to choose custom integration with our authentication APIs.
We enforce the OIDC Code Flow with PKCE for enhanced security.
A Sandbox environment is available and can be easily activated in the SDK for development purposes.
The Sandbox environment does not require redirect_uri whitelisting, enabling developers to test their integrations before going live.
If you have not done so, simply reach out to @kittyvo or @lewlian on telegram with the context of your project as well as:
OCID
Name
Company
and we will get it set up for you
By default, you will only be able to integrate with the “Sandbox” environment. If you have followed Step 1 you should already have your Client ID and will be able to whitelist your production domain URI
Update: You only need to create one OCID account for both staging and production from