# How to integrate identity?

**URL:** <https://forum.dfinity.org/t/how-to-integrate-identity/4608>\
**Category:** Developers\
**Created:** [June 1, 2021, 9:29am UTC](https://forum.dfinity.org/t/how-to-integrate-identity/4608 "2021-06-01T09:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)\
**Post date:** [June 1, 2021, 9:29am UTC](https://forum.dfinity.org/t/how-to-integrate-identity/4608/1 "2021-06-01T09:29:18Z")

</div>

How do i integrate DFX identity.ic0.app to my dapp ? How do i get the users principal to credit my tokens as rewards ?

---

<div class="post-metadata">

**Author:** ![Gabriel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gabriel/32/546_2.png) [@Gabriel](https://forum.dfinity.org/u/Gabriel)\
**Post date:** [June 1, 2021, 10:17am UTC](https://forum.dfinity.org/t/how-to-integrate-identity/4608/2 "2021-06-01T10:17:23Z")

</div>

See this

> [@Integrating with Internet Identity - blog post](https://forum.dfinity.org/t/integrating-with-internet-identity-blog-post/4041):
>
> You’ve probably seen it by now, but you may be wondering how you can actually use the Internet Identity in your own application. I’ve written up a post on how you can get started using the Internet Identity to make authenticated calls to your service, thanks to our @dfinity/auth-client package. Hope it’s helpful!

As for your second question no idea. Probably in the works

---

<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:** [June 3, 2021, 4:29pm UTC](https://forum.dfinity.org/t/how-to-integrate-identity/4608/3 "2021-06-03T16:29:36Z")

</div>

Yep, the Main.mo code from my example shows how to get the principal from the message.caller. You can then use that as a consistent Principal using their Internet Identity
