# Clarification regarding auth0

**URL:** <https://community.auth0.com/t/clarification-regarding-auth0/118632>\
**Category:** Get Help\
**Tags:** other, community-topic\
**Created:** [October 16, 2023, 3:19pm UTC](https://community.auth0.com/t/clarification-regarding-auth0/118632 "2023-10-16T15:19:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunvihar.boddula](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@varunvihar.boddula](https://community.auth0.com/u/varunvihar.boddula)\
**Post date:** [October 16, 2023, 3:19pm UTC](https://community.auth0.com/t/clarification-regarding-auth0/118632/1 "2023-10-16T15:19:19Z")

</div>

Hi Team,

we have an application that has Angular(FE) and Java(BE). we are thinking about opting for okta customer cloud. can you give clarification about below points.

1.tenant is distinguished by environements(dev/stageing/prod) and each tenant can have multiple applications/API or if i have multiple apis/apllications. i should we create tenant for each apis/applications like abcapidevtenant / abcapiprdtenant / mnoapidevtenant and mnoapiprdtenant ?  
2.can we track total users for each api/applications seperately instead of tenant wise?  
3.is it better to maintain user/passwords and roles and privileges in our own database or use okta/auth0 store and advantages and disadvantages of it?  
4.ragarding our application(angular-fe and java api-be) . do we need to create 2 applications 1.single page web apps(for angular) and 2.api(for java) or we only need create application for java api. the option for single page web app is intended when backend is handled by node js ?  
5.how can we configure security when we have multiple micro services exist and what about the user store(okta or own) and how micro services and also users authenticate and authorize just high level over view how all connected can suffice the answer to this question?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 16, 2023, 11:14pm UTC](https://community.auth0.com/t/clarification-regarding-auth0/118632/3 "2023-10-16T23:14:44Z")

</div>

Hello @varunvihar.boddula welcome to the community! I’ll try and answer what I can 🙂

1. That’s correct - A [typical set up](https://auth0.com/docs/get-started/tenant-settings) includes a dev, staging, and production tenant.
2. Yes - There are many ways to [manage users](https://auth0.com/docs/manage-users).
3. There are pros and cons to both outlined [here](https://auth0.com/docs/secure/security-guidance/data-security/user-data-storage).
4. You will most likely want an application for your FE (SPA) and [registering an API](https://auth0.com/docs/get-started/auth0-overview/set-up-apis) could suffice for your BE. Here’s a Spring Boot quickstart for [example](https://auth0.com/docs/quickstart/backend/java-spring-security5).
5. It really depends on your specific use case, but you can find all Auth0 SDKs [here](https://auth0.com/docs/libraries).

I definitely recommend checking out the following documentation for a high level overview of common scenarios:

> **[Architecture Scenarios](https://auth0.com/docs/get-started/architecture-scenarios)**
>
> Learn about common Auth0 architecture scenarios that you can use to solve your authorization and authentication needs.

---

<div class="post-metadata">

**Author:** ![varunvihar.boddula](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@varunvihar.boddula](https://community.auth0.com/u/varunvihar.boddula)\
**Post date:** [October 17, 2023, 2:20pm UTC](https://community.auth0.com/t/clarification-regarding-auth0/118632/4 "2023-10-17T14:20:00Z")

</div>

Thanks @ty.frith .

Hi Team,

can anyone please provide clarification to below doubts.

1.how to connect my database users table to auth0 ?  
2.what should be table structure(fields) and constraints should my db should possess to accept the connection from auth0?  
3.is it possible if we maintain the roles and privileges in our own database or we should always use auth0 roles and permissions ?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 17, 2023, 5:16pm UTC](https://community.auth0.com/t/clarification-regarding-auth0/118632/5 "2023-10-17T17:16:16Z")

</div>

Hey @varunvihar.boddula no problem, happy to help where I can!

You should be able to find all user import/migration information in our docs [here](https://auth0.com/docs/manage-users/user-migration) - Regarding maintaining roles and privileges, this is up to you. What I have seen done is using an Action to reach out to an API and add the role/privilege as a [custom claim in tokens](https://auth0.com/docs/get-started/apis/scopes/sample-use-cases-scopes-and-claims#add-custom-claims-to-a-token).

---

<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:** [October 31, 2023, 5:17pm UTC](https://community.auth0.com/t/clarification-regarding-auth0/118632/6 "2023-10-31T17:17:01Z")

</div>

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