KUB Docs
  • Introduction to KUB
  • Connect to KUB
  • KUB PoS
    • Increase block gas limit to 90M
    • Update GasPrice Instruction
    • Incident from chaophaya hardfork
    • Overview
    • Considerations
    • Validator Node
      • Node Requirements
      • Run Validator Node
      • Validator Staking
      • StakeManager Contract
      • ValidatorShare Contract
      • Slashing
    • Run Full Node
    • Run Archive Node
    • Chaindata Snapshot
    • Migration PoSA to PoS
    • Delegator
      • How to delegate
      • How to claim reward
      • How to unstake
  • Developer Center
    • ✨Getting Started
    • 🏆Project Tiers
    • 👨‍💻Connect Bitkub NEXT to register as a new user
    • ✔️Verify your identity via Bitkub NEXT (KYC or KYB)
    • 💰Subscribe to the KUB Developer Package
    • 🗳️Submit your project
      • 📗Create submit project
      • 📘Manage your project
        • Submit project
        • Create a new project version
        • Status of project version
      • 📙Manage project information
  • KUB SDK
    • NEXT SDK
      • NEXT SDK Code Cookbook
      • KUB SDK Compatible Smart Contract
        • Example Smart Contract for Testing
        • Example KUB SDK Compatible KAP20 Smart Contract
        • Example KUB SDK Compatible KAP721 Smart Contract
  • KUB Playground
    • Quick Start Guide on KUB Playground
  • KUB Layer 2
  • KUB Scan
  • RPC Service
    • JSON-RPC Endpoint
  • IPFS Service
    • IPFS Guideline
  • FAQ
  • Glossary
  • Reference and Service
    • KUB Whitepaper Version 3.3
    • Technical Paper Version 3.2
    • KUB Explorer
    • KUB Faucet
    • KUB Oracle
    • KUB Bridge
    • KKUB OTP
Powered by GitBook
On this page

Was this helpful?

  1. BKC Console

Create and Get a Client ID

To use the Bitkub Chain Developer Console SDK, you need to get a Client ID and obtain it to use in your environment (env) file. Here's a step-by-step explanation of the process:

Last updated 1 year ago

Was this helpful?

Authentication Client ID

Description: to request an authentication key for connecting to Bitkub NEXT authentication service; this key allows for authentication and access to authorized resources or data. Help maintain the service's security and integrity by ensuring only authorized can access it.

  1. Go to the “Authentication” menu.

  2. Go to tab: OAuth Consent Screen Detail

  3. Input Authentication, Name Description

For Testnet, the system generates the project logo for authentication within two digits of the project name.

  1. Input Authorized JavaScript origin

  • Origin of your website

  • max 16 URLs

  1. Input Authorized Callback URL

  • Origin of your website + /oauth/callback

  • max 16 URLs)

  1. Click the “create” and confirm

  2. Copy the Client ID and Client Secret to use in your project. 🎊

The Bitkub Chain Developer Center: SDK Console will return a client ID; a secret key is typically used for authentication.

  • Client ID: is a unique identifier that’s issued by the API or used for input required in the header of each request API

  • Client Secret Key: This value is associated with the Client ID and is used to verify the identity of Bitkub NEXT authentication.

Tips:

  • Don’t hardcode your client's secret key in your application’s source code. Storing the client's Secret Key in plain text in your code makes it easy for attackers to find and use it. Instead, consider storing the client's secret key in a secure location outside your code, such as an environment variable or a configuration file that’s not publicly accessible.

  • Keep your client's Secret Key confidential. Don’t share your client's secret key with anyone who doesn’t need to know it, and avoid storing it in insecure locations such as public GitHub repositories.

  • Rotate your client's Secret Key regularly. Consider regularly rotating your client's Secret Key to reduce the risk of being compromised. Update any associated configurations or environments variable when you rotate your client secret key.

  • Monitor your application for suspicious activity. Keep an eye out for any unauthorized access attempts or other suspicious activity that could indicate that your client's Secret Key has been compromised.

⚙️