Open Campus $EDU Whitepaper
  • What is Open Campus?
    • Overview
    • Vision & Mission
    • Opportunity
    • Our Ecosystem
    • Governance
  • Tokens
    • $EDU
      • Tokenomics
        • Overview
        • What you can do with $EDU
        • Supply Cap
        • Token Allocation
        • Token Release Schedule
      • Key Information
        • Contract Address
        • Token Bridge
  • EDU Chain
    • Introduction
    • Vision
    • EDU Chain Platform
    • Community Grants Program
      • Request for Startups
    • Network Information
    • Performance & Throughput
    • SDKs
      • Open Campus ID Connect SDK
  • Other Open Campus Assets
    • Publisher NFTs
      • Publisher NFT Marketplace
      • Publisher NFT Collections
      • Publisher NFT Staking
      • Staking FAQ
      • Activating Publishing Rights and Staking Rewards
    • Genesis NFTs
      • Genesis NFT Utility
      • Genesis NFT Collections
      • FAQ
  • Other Open Campus Initiatives
    • Open Campus Accelerator (OCX)
  • Key Information
    • Security Audits
    • Disclaimer
Powered by GitBook
On this page
  • Where can I get it?
  • Why do I need this?
  • How does it work?
  • Interoperability
  • Development
  • Connecting to production
  1. EDU Chain
  2. SDKs

Open Campus ID Connect SDK

PreviousSDKsNextPublisher NFTs

Last updated 9 months ago

Where can I get it?

Download it via npm here:

Github documentation is here:

Connect OCID Button design (Figma) is here:

Why do I need this?

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.

How does it work?

This SDK provides an OAuth/OIDC interface to facilitate integration for our partners.

JavaScript-based SDK

  • 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.

Interoperability

  • 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.

Development

  • 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.

Connecting to production

By default, you will only be able to integrate with the “Sandbox” environment. To be whitelisted to interact with the production version, you will need to complete the following form! Make sure to give us the correct site link, as this will whitelist your app’s site at the domain level.

The form is here: .

https://www.npmjs.com/package/@opencampus/ocid-connect-js
https://github.com/opencampus-xyz/ocid-connect-js
https://www.figma.com/design/WuuckXVc6Q080lVHcFUS9k/Connect-OCID-Button-Guidelines?node-id=0-1&t=t6lloh4lipJDraBU-0
App Whitelisting Form