Nuvo Documentation
  • Nuscriptions
    • Overview
    • Quick Guide
      • How to mint
        • Step 1 - Connect account
        • Step 2 - Mint
        • Step 3 - Check owned tokens
        • Step4 - Check my account
    • What's different
    • Protocol
      • Hotfix1
    • Indexer
    • Frontend
      • Step-by-Step Instructions
      • Feedback and Notifications
    • Marketplace
      • Auction
      • Spot
      • Derivatives
    • API
      • Overview
      • Get Balance of an Inscription for an address
      • Get Next ID for Minting
      • Get Delegation Amount
      • CheckID Availability
      • Get Status of an Transaction
      • Inscription Existence Verification (id)
      • List Owned Tokens
      • Get Deployment Details
      • Get Mint Amount
      • Get Token Owner
      • Get Transaction History of a Token
      • List All Minted Inscriptions
      • Inscription Existence Verification (tx_hash)
      • Construct Deployment Message
      • Construct Mint Message
      • Construct Transfer Message
      • Get Tokens
      • Get Number of Holders for Ticker
  • Nuvosphere
  • Get Started
    • Product Guides
      • Reputation Power Web 3.0 for Dapp Owners
      • How does Reputation Power work
      • Who are our customers
      • Where to Get Started with
      • Navigate to NuvoOne
        • How to create a dapp
        • How to design an NFT badge
        • How to issue NFT Badge and set up the campaign
      • Navigate to NuvoMe
      • Navigate to NuvoID
      • Navigate to NuvoBadge Claim
    • Demo videos
      • NuvoID_Introduction
      • NuvoMe_Claim event badge
      • NuvoOne_Introduction
      • NuvoOne_Web2 integrated with Nuvo
      • NuvoOne_Login
      • NuvoOne_Create Dapp
      • NuvoOne_Deploy Badge
      • NuvoOne_Campaign
      • NuvoOne_Manage Distribution
    • Step by Step guide to Issue Nuvo Badge
      • Access Nuvo One test environment
      • Create a new application
      • Issue Nuvo Badge
      • Distribute Nuvo Badge
      • Deploy the Nuvo Badge Project on Testnet
      • Repeat The Process on Nuvosphere Production Environment
  • Developer Guide
    • API List
      • Oauth2 Authorization
        • Dapp APIs
          • Get Dapp info
          • Get Dapp list
        • Badge APIs
          • Badge info
          • Badge claim
          • Badge favourite
        • User APIs
          • Get Eth Address with Name
          • Get Eth Address with NuvoID
          • Get user info
        • Wallet APIs
          • Token Transfer
            • Get latest price
            • Get token transfer list
            • Save token transfer info
            • Get transaction info
            • Get SDK transaction record
            • Get transfer list
          • Domain Transaction
            • Get chain URL
            • Get balance
            • Verify wallet pwd
            • Confirm transaction
            • Initiate transaction
        • NFT Badge Deploy
          • Deploy NFT Badge
          • Dapps NFT deployed list
          • Dapp Promotion
          • Upload Image
          • Update Dapp Promotion
          • Deployed NFT Badge List
          • NFT Detail
          • NFT Promotion
          • Update NFT Promotion
          • Update NFT Name
          • Update NFT start time & end time
          • Update NFT Badge Images
        • Badge Issuer
          • Set NFT Mint Permission
          • Badge Issue List
          • Update NFT Badge Issue Info
          • NFT Badge Upgrade Setup
          • NFT Badge Mint
      • Oauth2 Owner
        • Dapp management
          • Create Dapp
          • Update Dapp
          • Delete Dapp
          • Get Dapp List
          • Get Dapp Detail
        • Domain management
          • Create Domain
          • Get Domain
          • Update Domain
          • Delete Domain
        • Badge Issuer
          • NFT Badge Mint
          • Update NFT Properties
          • Badge Detail
          • Deployed NFT Badge List
          • Upload Image
          • Deploy NFT Badge
          • NFT RP Upgrade
          • Badge Query Data
        • User APIs
          • User Registration
          • Dapp Registration user list
    • SDK
    • Integration Center
    • BLS Wallet
    • MPC Wallet
    • NuvoBadge Graph
      • Introduction
      • Graph Schemas
        • NftBadgeEntity
        • DappEntity
        • UserEntity
        • UserDappMap
        • UserBadgeMap
  • Announcement
    • Nuvo Reputation Power explanation and FAQ
    • NuvoBadge Protocol
  • troubleshooting
    • Why MetaMask cannot connect to Nuvo
Powered by GitBook
On this page
  1. Developer Guide
  2. API List

Oauth2 Authorization

PreviousAPI ListNextDapp APIs

Last updated 1 year ago

Production Env

Staging Env

Step1 - Initiate authorization

Request for log in

`${host}/#/oauth2-login?switch_account=${switchAccount}&app_id=${appId}&return_url=${encodeURIComponent(returnUrl)}`

description

switch_account:  switch user account
app_id        :  Nuvo middleware app id
return_url    :  Nuvo middleware Authorized Domains

Step2 - Receive authorized code

After initiating authorization, Nuvo will return_url and code

https://demo.dapp.com/callback?code=xxxxxxx

The developer will receive url(https://demo.dapp.com/callback), keep the code for the access token use

Step3 - Request Access Token

Request access token

GET /api/v1/oauth2/access_token

Query String: ?appid={appid}&code={code}

code: the code kept from step2

appid: app id that can be acquired from Nuvo One

Request Body

Name
Type
Description

code*

String

the code kept from step2

appid*

String

Nuvo middleware app id

{
    "code": 200,
    "data": {
        "accessToken": "a7f4216020364aa79d77e18d4965cf2f", //authorized token,use this token to access related api
        "appId": "60ed992bb520d95b454c4e88",
        "expiresIn": 43200, //valid for 12 hours
        "refreshToken": "aab3accb1180410fbe9341fd0db95d94", //Refresh time 30 days
        "wcSession": null
    },
    "msg": ""
}

https://
api.nuvosphere.io
https://api.staging.nuvosphere.io