# Web authentication workflow for apps without a front-end canister

**URL:** <https://forum.dfinity.org/t/web-authentication-workflow-for-apps-without-a-front-end-canister/5774>\
**Category:** Developers\
**Created:** [July 7, 2021, 11:59pm UTC](https://forum.dfinity.org/t/web-authentication-workflow-for-apps-without-a-front-end-canister/5774 "2021-07-07T23:59:05Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![ehsan6sha](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ehsan6sha/32/2460_2.png) [@ehsan6sha](https://forum.dfinity.org/u/ehsan6sha)\
**Post date:** [July 12, 2021, 12:34am UTC](https://forum.dfinity.org/t/web-authentication-workflow-for-apps-without-a-front-end-canister/5774/21 "2021-07-12T00:34:40Z")

</div>

> [@stephenandrews](#):
>
> - lay a message to ensure the user wants to continue
> - I made a custom login method (so I made a custom

Do you know how I can test if my process was successful in using the custom key? I mean what should I check to verify it is working an using the key I provided correctly?

---

<div class="post-metadata">

**Author:** ![anon74414410](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Post date:** [July 12, 2021, 4:48pm UTC](https://forum.dfinity.org/t/web-authentication-workflow-for-apps-without-a-front-end-canister/5774/22 "2021-07-12T16:48:40Z")

</div>

You can deploy a `whoami` canister. You’ll know you’re successful if you can log in with II, check your principal, log out, and then log in a second time, getting the same principal back.

> <https://github.com/krpeacock/auth-client-demo/blob/main/src/whoami/main.mo>

---

<div class="post-metadata">

**Author:** ![ehsan6sha](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ehsan6sha/32/2460_2.png) [@ehsan6sha](https://forum.dfinity.org/u/ehsan6sha)\
**Post date:** [July 12, 2021, 11:38pm UTC](https://forum.dfinity.org/t/web-authentication-workflow-for-apps-without-a-front-end-canister/5774/23 "2021-07-12T23:38:21Z")

</div>

Thank you all for your help and insights. For anyone who might be looking for the end solution, based on what everyone said here, I created this proxy page:

[functionland/Web-Identity-Providers: This is a proxy that can be used to connect applications to Internet Identity by Dfinity. (github.com)](https://github.com/functionland/Web-Identity-Providers)

main code here:  
[Web-Identity-Providers/source/src at main · functionland/Web-Identity-Providers (github.com)](https://github.com/functionland/Web-Identity-Providers/tree/main/source/src)

And used it here:  
[photos/auth.ts at main · functionland/photos (github.com)](https://github.com/functionland/photos/blob/main/components/Auth/auth.ts)  
line 15 to 22

[Previous page](https://forum.dfinity.org/t/web-authentication-workflow-for-apps-without-a-front-end-canister/5774.md?page=1)
