LogoLogo
ProductsCommunityGitHubShare Feedback
IDP Kit
IDP Kit
  • What is the IDP Kit?
    • Introduction
    • IDP Kit
      • IDP Kit | Basics
        • Overview
        • Functionality
      • Architecture
  • Getting started
    • Quick Start
    • CLI | Command Line Interface
    • REST APIs
    • Dependency (JVM)
    • Public deployments
    • Build
      • Docker
  • Demos
    • Try Login With NFT
  • Tutorials
    • Login with NFTs | Next.js
      • IDP Kit Setup
      • Client Registration
      • NFT Collection Configuration
      • Next.js
    • Login with NFTs | Keycloak
      • IDP Kit Setup
      • Client Registration
      • NFT Collection Configuration
      • Keycloak (18.0.2)
      • Keycloak (>19.0.1)
      • Frontend - Next.js
    • Login with SSI | Next.js
      • IDP Kit Setup
      • Client Registration
      • Verifiable Credential Config
      • Next.js
  • Configuration and Setup
    • IDP Kit configuration and setup
    • OIDC Manager configuration
      • Keys and signatures
      • Client registration
      • Client authentication
      • Claim configuration
    • SIOP Manager configuration
    • NFT Manager configuration
  • Concepts
    • OIDC Authentication - Recap
    • Identity provision via SSI
    • Identity provision via NFTs
      • EVM | Identity Provision
        • Sign in With Ethereum (SIWE)
      • Tezos | Identity provision via NFTs
        • Sign-In with Tezos (SIWT)
      • Near | Identity provision via NFTs
        • Sign-in with Near Protocol (SIWN)
      • Polkadot | Identity provision via NFTs
        • Sign-in with Polkadot (SIWP)
      • Flow | Identity provision via NFTs
        • Sign-in with Flow (SIWF)
      • Algorand | Identity provision via NFTs
        • Sign-in with Algorand (SIWA)
    • IAM / KeyCloak integration
  • Community
    • Discord
    • Twitter
    • Newsletter
    • GitHub Discussions
  • DEVELOPER RELATIONS
    • Contribute
    • Roadmap
    • Share Feedback
    • Contact
  • Product Editions
    • Open Source | Always Free
    • Enterprise
    • Cloud Platform
Powered by GitBook
On this page
  • Ways to specify the NFT collection
  • Activate and specify the OPA policy verification
  • Configuration of the wallet connect page

Was this helpful?

Export as PDF
  1. Configuration and Setup

NFT Manager configuration

PreviousSIOP Manager configurationNextOIDC Authentication - Recap

Last updated 1 month ago

Was this helpful?

To configure the NFT manager, a few things may need to be considered, and some configuration may be required, depending on your situation.

Ways to specify the NFT collection

The default configuration, which will be used if no claim value is present in the authorization request. It can be set in config/idp-config.json. A more detailed overview of all possible claim configurations, can be found in the section.

"default_nft_token_claim": {
    "chain": "POLYGON",
    "factorySmartContractAddress": "",
    "smartContractAddress": "0x21dd9b1913d84ab295fdf19834b0b6824a5912ca",
    "collectionPath": ""
}

Possible values for the chain key in both configurations: ETHEREUM, POLYGON, TEZOS, GOERLI, MUMBAI, GHOSTNET.

Activate and specify the OPA policy verification

To activate the OPA policy verification, you may provide some configuration.

"default_nft_policy":{
    "withPolicyVerification": true,
    "policy": "idpkit/opa/nft_tezos.rego",
    "query": "data.app.nft.allow",
    "inputs": {
        "Backgrounds": "Green",
        "symbol": "RMB",
        "reference": "RCS1"
    }
}

Configuration of the wallet connect page

If you don't want to use the default built-in wallet connect page, you can create a nft-config.json file and provide a custom connect page.

{
  "nftWallet": {
    "id": "idpkit-connect-wallet",
    "url": "/connect-wallet",
    "presentPath": "",
    "receivePath" : "",
    "description": "IDP Kit connect wallet"
  }
}
claim configuration