# My solution to Custom Claim in Access Token, Custom Home Realm Discovery and User Impersonation

**URL:** <https://community.auth0.com/t/my-solution-to-custom-claim-in-access-token-custom-home-realm-discovery-and-user-impersonation/187686>\
**Category:** Get Help\
**Tags:** home-realm-discovery, login-experience\
**Created:** [June 6, 2025, 5:38am UTC](https://community.auth0.com/t/my-solution-to-custom-claim-in-access-token-custom-home-realm-discovery-and-user-impersonation/187686 "2025-06-06T05:38:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qchau-ontra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/qchau-ontra/32/75167_2.png) [@qchau-ontra](https://community.auth0.com/u/qchau-ontra)\
**Post date:** [June 6, 2025, 5:38am UTC](https://community.auth0.com/t/my-solution-to-custom-claim-in-access-token-custom-home-realm-discovery-and-user-impersonation/187686/1 "2025-06-06T05:38:03Z")

</div>

Recently, my team at Ontra and I worked on improving authentication flow to extend functionalities of Auth0. I find that we are not the only ones wanting these functionalities. I wrote a blog post detailing our solution.

www.ontra.ai/blog/the-surprising-practicality-of-nested-authentication-flow/

Check it out - I hope it helps!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 6, 2025, 1:38pm UTC](https://community.auth0.com/t/my-solution-to-custom-claim-in-access-token-custom-home-realm-discovery-and-user-impersonation/187686/2 "2025-06-06T13:38:50Z")

</div>

Hi @qchau-ontra!

Welcome to the Auth0 Community!

Thank you for sharing the article with our community. I will bookmark it in case other community members need this solution in the future. Once again, great article!

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 20, 2025, 1:39pm UTC](https://community.auth0.com/t/my-solution-to-custom-claim-in-access-token-custom-home-realm-discovery-and-user-impersonation/187686/3 "2025-06-20T13:39:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
