# Using Internet Identity inside sns-testing

**URL:** <https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464>\
**Category:** Developers\
**Tags:** sns\
**Created:** [May 7, 2024, 8:04pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464 "2024-05-07T20:04:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [May 7, 2024, 8:04pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/1 "2024-05-07T20:04:55Z")

</div>

Having trouble when using the internet identity canister that is installed when using the sns-testing repo vs when pulling it using dfx deps:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/6/1/618f30a954f431e70c8512f7df01eeccc2f54056.png)

I’m trying to put together all the required steps for anyone to be able to run OpenFPL in it’s post sns state in the readme:

> **[GitHub - jamesbeadle/OpenFPL: OpenFPL](https://github.com/jamesbeadle/OpenFPL)**
>
> OpenFPL. Contribute to jamesbeadle/OpenFPL development by creating an account on GitHub.

As you can see I’m not pulling deps for the IID canister as I thought the sns-testing repo handled it as post setup it’s definitely created the canister:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/6/8/68422d561b38fc02607f0069fb089e34fefdb7e6.png)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [May 7, 2024, 8:19pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/2 "2024-05-07T20:19:00Z")

</div>

You need to wait until `./setup_locally.sh` finishes, then the II canister should be up and running. (In your screenshot, there’s no code installed for the II canister.)

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [May 7, 2024, 8:22pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/3 "2024-05-07T20:22:38Z")

</div>

> [@mraszyk](#):
>
> setup\_locally

Yeah I definitely ran that during the setup process, it’s step 4 in my readme:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/f/b/fba0abca186e814cb0832a266851202c28058e6f.png)

Ah is it because I need to set the local canister id in my dfx file?

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/0/7/0774c87296dad556ebecc0c65132605922e67387.png)

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [May 7, 2024, 8:34pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/4 "2024-05-07T20:34:59Z")

</div>

since the sns-testing repo is creating the canisters do I need an internet identity entry in my dfx file?

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [May 7, 2024, 11:44pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/5 "2024-05-07T23:44:02Z")

</div>

So when I run setup\_locally.sh I think it isn’t correctly installing the identity canister.

It’s in the list:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/a/3/a3111e642992787c3385c4441c489557198c49b0.png)

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [May 8, 2024, 2:59pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/6 "2024-05-08T14:59:52Z")

</div>

Hey, I’m still blocked on this. Is there anything I can try?

I did try removing the download for the internet identity to pull it later via deps but the setup\_locally.sh didn’t like that:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/9/c/9c104233b124341049eb924a9b575b2fc5cd3fc7.png)

Are you sure the wasm is being downloaded and installed correctly in the sns-testing repo?

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [May 9, 2024, 5:01pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/7 "2024-05-09T17:01:35Z")

</div>

In sns-testing, the II canister is installed under the following canister ID: `qhbym-qaaaa-aaaaa-aaafq-cai`. The NNS-dapp is installed under the following canister ID: `qsgjb-riaaa-aaaaa-aaaga-cai`:

```auto
Installing code for canister sns_aggregator, with canister ID qvhpv-4qaaa-aaaaa-aaagq-cai
Installing code for canister internet_identity, with canister ID qhbym-qaaaa-aaaaa-aaafq-cai
Installing code for canister nns-dapp, with canister ID qsgjb-riaaa-aaaaa-aaaga-cai

```

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [May 9, 2024, 6:07pm UTC](https://forum.dfinity.org/t/using-internet-identity-inside-sns-testing/30464/8 "2024-05-09T18:07:49Z")

</div>

Thanks mate, yeah that was it just updated my vite auth provider path in .env.local to

VITE\_AUTH\_PROVIDER\_URL=[http://localhost:8080/?canisterId=qhbym-qaaaa-aaaaa-aaafq-cai](http://localhost:8080/?canisterId=qhbym-qaaaa-aaaaa-aaafq-cai)

and it worked:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/f/a/fadd461c8736559459f9caa56eb40329f0cb42b8.jpeg)
