From 2bdcd043817e25266f3e930915c10814d9f73ef6 Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Thu, 21 Aug 2025 13:59:03 +0200 Subject: [PATCH] Update identity provider to id.ai and add Internet Identity init_arg --- motoko/filevault/dfx.json | 1 + motoko/filevault/frontend/src/App.jsx | 2 +- motoko/nft-creator/dfx.json | 1 + motoko/nft-creator/frontend/vite.config.js | 2 +- motoko/tokenmania/dfx.json | 1 + motoko/tokenmania/frontend/src/InternetIdentity.jsx | 2 +- motoko/who_am_i/dfx.json | 1 + motoko/who_am_i/frontend/src/App.jsx | 2 +- rust/tokenmania/dfx.json | 1 + rust/tokenmania/frontend/src/InternetIdentity.jsx | 2 +- rust/who_am_i/dfx.json | 1 + rust/who_am_i/frontend/src/App.jsx | 2 +- 12 files changed, 12 insertions(+), 6 deletions(-) diff --git a/motoko/filevault/dfx.json b/motoko/filevault/dfx.json index 95d726f57..66bdeced0 100644 --- a/motoko/filevault/dfx.json +++ b/motoko/filevault/dfx.json @@ -16,6 +16,7 @@ "internet_identity": { "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did", "type": "custom", + "init_arg": "(opt record { new_flow_origins = opt vec { \"http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943\" } })", "specified_id": "rdmx6-jaaaa-aaaaa-aaadq-cai", "remote": { "id": { diff --git a/motoko/filevault/frontend/src/App.jsx b/motoko/filevault/frontend/src/App.jsx index c1212ad3f..3ae6e3e32 100644 --- a/motoko/filevault/frontend/src/App.jsx +++ b/motoko/filevault/frontend/src/App.jsx @@ -7,7 +7,7 @@ import '../index.css'; const network = process.env.DFX_NETWORK; const identityProvider = network === 'ic' - ? 'https://identity.ic0.app' // Mainnet + ? 'https://id.ai/' // Mainnet : 'http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943'; // Local function App() { diff --git a/motoko/nft-creator/dfx.json b/motoko/nft-creator/dfx.json index dee3e525a..dc5dc294f 100644 --- a/motoko/nft-creator/dfx.json +++ b/motoko/nft-creator/dfx.json @@ -3,6 +3,7 @@ "internet_identity": { "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did", "frontend": {}, + "init_arg": "(opt record { new_flow_origins = opt vec { \"http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943\" } })", "remote": { "id": { "ic": "rdmx6-jaaaa-aaaaa-aaadq-cai" diff --git a/motoko/nft-creator/frontend/vite.config.js b/motoko/nft-creator/frontend/vite.config.js index c4c4e5d29..fc3abf630 100644 --- a/motoko/nft-creator/frontend/vite.config.js +++ b/motoko/nft-creator/frontend/vite.config.js @@ -12,7 +12,7 @@ dotenv.config({ path: path.resolve(__dirname, "../.env") }); process.env.II_URL = process.env.DFX_NETWORK === "local" ? `http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943/` - : `https://identity.internetcomputer.org/`; + : `https://id.ai/`; export default defineConfig({ base: "./", diff --git a/motoko/tokenmania/dfx.json b/motoko/tokenmania/dfx.json index 95d726f57..66bdeced0 100644 --- a/motoko/tokenmania/dfx.json +++ b/motoko/tokenmania/dfx.json @@ -16,6 +16,7 @@ "internet_identity": { "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did", "type": "custom", + "init_arg": "(opt record { new_flow_origins = opt vec { \"http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943\" } })", "specified_id": "rdmx6-jaaaa-aaaaa-aaadq-cai", "remote": { "id": { diff --git a/motoko/tokenmania/frontend/src/InternetIdentity.jsx b/motoko/tokenmania/frontend/src/InternetIdentity.jsx index 192ca8eab..12dc20d21 100644 --- a/motoko/tokenmania/frontend/src/InternetIdentity.jsx +++ b/motoko/tokenmania/frontend/src/InternetIdentity.jsx @@ -5,7 +5,7 @@ import { createActor, canisterId } from 'declarations/backend'; const network = process.env.DFX_NETWORK; const identityProvider = network === 'ic' - ? 'https://identity.ic0.app' // Mainnet + ? 'https://id.ai/' // Mainnet : 'http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943'; // Local const InternetIdentity = ({ setActor, isAuthenticated, setIsAuthenticated }) => { diff --git a/motoko/who_am_i/dfx.json b/motoko/who_am_i/dfx.json index 95d726f57..66bdeced0 100644 --- a/motoko/who_am_i/dfx.json +++ b/motoko/who_am_i/dfx.json @@ -16,6 +16,7 @@ "internet_identity": { "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did", "type": "custom", + "init_arg": "(opt record { new_flow_origins = opt vec { \"http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943\" } })", "specified_id": "rdmx6-jaaaa-aaaaa-aaadq-cai", "remote": { "id": { diff --git a/motoko/who_am_i/frontend/src/App.jsx b/motoko/who_am_i/frontend/src/App.jsx index ef4035b1b..40e338bcd 100644 --- a/motoko/who_am_i/frontend/src/App.jsx +++ b/motoko/who_am_i/frontend/src/App.jsx @@ -6,7 +6,7 @@ import { canisterId } from 'declarations/backend/index.js'; const network = process.env.DFX_NETWORK; const identityProvider = network === 'ic' - ? 'https://identity.ic0.app' // Mainnet + ? 'https://id.ai/' // Mainnet : 'http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943'; // Local // Reusable button component diff --git a/rust/tokenmania/dfx.json b/rust/tokenmania/dfx.json index 9f46a689d..1c46f3fea 100644 --- a/rust/tokenmania/dfx.json +++ b/rust/tokenmania/dfx.json @@ -20,6 +20,7 @@ "type": "custom", "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did", "wasm": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity_dev.wasm.gz", + "init_arg": "(opt record { new_flow_origins = opt vec { \"http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943\" } })", "specified_id": "rdmx6-jaaaa-aaaaa-aaadq-cai", "remote": { "id": { diff --git a/rust/tokenmania/frontend/src/InternetIdentity.jsx b/rust/tokenmania/frontend/src/InternetIdentity.jsx index 192ca8eab..12dc20d21 100644 --- a/rust/tokenmania/frontend/src/InternetIdentity.jsx +++ b/rust/tokenmania/frontend/src/InternetIdentity.jsx @@ -5,7 +5,7 @@ import { createActor, canisterId } from 'declarations/backend'; const network = process.env.DFX_NETWORK; const identityProvider = network === 'ic' - ? 'https://identity.ic0.app' // Mainnet + ? 'https://id.ai/' // Mainnet : 'http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943'; // Local const InternetIdentity = ({ setActor, isAuthenticated, setIsAuthenticated }) => { diff --git a/rust/who_am_i/dfx.json b/rust/who_am_i/dfx.json index 46c37f08c..6193d4c18 100644 --- a/rust/who_am_i/dfx.json +++ b/rust/who_am_i/dfx.json @@ -27,6 +27,7 @@ "internet_identity": { "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did", "type": "custom", + "init_arg": "(opt record { new_flow_origins = opt vec { \"http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943\" } })", "specified_id": "rdmx6-jaaaa-aaaaa-aaadq-cai", "remote": { "id": { diff --git a/rust/who_am_i/frontend/src/App.jsx b/rust/who_am_i/frontend/src/App.jsx index ef4035b1b..40e338bcd 100644 --- a/rust/who_am_i/frontend/src/App.jsx +++ b/rust/who_am_i/frontend/src/App.jsx @@ -6,7 +6,7 @@ import { canisterId } from 'declarations/backend/index.js'; const network = process.env.DFX_NETWORK; const identityProvider = network === 'ic' - ? 'https://identity.ic0.app' // Mainnet + ? 'https://id.ai/' // Mainnet : 'http://rdmx6-jaaaa-aaaaa-aaadq-cai.localhost:4943'; // Local // Reusable button component