# Custom angular user creation

**URL:** <https://devforum.okta.com/t/custom-angular-user-creation/11760>\
**Category:** Questions\
**Created:** [November 16, 2020, 7:23pm UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760 "2020-11-16T19:23:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.thornberry](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/michael.thornberry/32/2360_2.png) [@michael.thornberry](https://devforum.okta.com/u/michael.thornberry)\
**Post date:** [November 16, 2020, 7:23pm UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760/1 "2020-11-16T19:23:08Z")

</div>

We’re building an application with an angular front-end and a .net Core back-end. The back-end is unaware of Okta and is using JWT to authorize the front-end. We are not using the Okta sign-in widget, and instead are using @okta/okta-auth-js to authenticate our users. All of that is working - we create the users in Okta, then allow them to login, which creates a local user in our database.

We’re now at the point where we’re trying to allow users to self-register. We do not want a verification email, and we want to use custom UI (again, we’re not using the widget). Thus far I haven’t been able to find any way to do that with the existing library. Do I need a different component for self-registration, or do I need to drop all the way down to the REST APIs and talk to Okta directly with HttpClient?

Thanks!

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [November 16, 2020, 9:09pm UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760/2 "2020-11-16T21:09:15Z")

</div>

okta-auth-js does not have anything for identity management. You need okta-sdk to be able to create users in Okta. Check [https://github.com/okta/okta-sdk-dotnet](https://github.com/okta/okta-sdk-dotnet), which will require you to create an API Token with admin privileges to allow user creation/modification

---

<div class="post-metadata">

**Author:** ![michael.thornberry](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/michael.thornberry/32/2360_2.png) [@michael.thornberry](https://devforum.okta.com/u/michael.thornberry)\
**Post date:** [November 16, 2020, 9:21pm UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760/3 "2020-11-16T21:21:36Z")

</div>

Thanks for the response, phi1ipp! I’ll take a look at the dotnet sdk.

---

<div class="post-metadata">

**Author:** ![michael.thornberry](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/michael.thornberry/32/2360_2.png) [@michael.thornberry](https://devforum.okta.com/u/michael.thornberry)\
**Post date:** [November 17, 2020, 9:36am UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760/4 "2020-11-17T09:36:21Z")

</div>

I’m looking at the .net core sdk and it appears that it requires me to have an API key, which I don’t have since my app is a SPA. Do I need to have separate apps for the .net core API and the angular application?

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [November 17, 2020, 2:00pm UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760/5 "2020-11-17T14:00:27Z")

</div>

You need to host the API Key in your back-end, so your SPA only request from the back-end to register (create) a new user in Okta

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 25, 2024, 11:27pm UTC](https://devforum.okta.com/t/custom-angular-user-creation/11760/6 "2024-01-25T23:27:21Z")

</div>

Closed on January 25, 2024, 11:27pm UTC

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