We need to provide the chain and the NFT collection, which the IDP Kit must check, when users are trying to log in. The values can be set in the config/idp-config.json
under default_nft_token_claim
Choose the ecosystem of where your NFT collection is hosted
EVM Tezos Near Polkadot Flow
Copy "default_nft_token_claim" : {
"EVM" : {
"chain" : "MUMBAI" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "0x3496756a84E186DC8C0d7ef91BcD393200ef5Ebc" ,
"collectionPath" : ""
}
}
Copy "default_nft_token_claim" : {
"TEZOS" : {
"chain" : "GHOSTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "KT1Rc59ukgW32e54aUdYqVzTM9gtHrA4JDYp" ,
"collectionPath" : ""
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:8080" ,
"jsProjectExternalUrl" : "http://localhost:3000"
NFT collection configuration example:
Copy "default_nft_token_claim" : {
"NEAR" : {
"chain" : "TESTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "demo.khaled_lightency1.testnet" ,
"collectionPath" : ""
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:8080" ,
"jsProjectExternalUrl" : "http://localhost:3000"
NFT collection configuration example:
Copy "default_nft_token_claim" : {
"POLKADOT" : {
"chain" : "OPAL" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "1062" ,
"collectionPath" : ""
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:5000" ,
"jsProjectExternalUrl" : "http://localhost:4000"
Copy "default_nft_token_claim" : {
"FLOW" : {
"chain" : "TESTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "0xa9ccb9756a0ee7eb" ,
"collectionPath" : "/public/exampleNFTCollection"
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:8080" ,
"jsProjectExternalUrl" : "http://localhost:3000"
Now that we have finished the configuration, we need to rebuild the project for the changes to take effect, run the API and connect our client to it.
Gradle Build Docker Build
Copy ./gradlew build install
2. Expose the API
Copy docker build --rm -t waltid/idpkit .
2. Expose the API