Question about Authentication using Azure AD #1459
Replies: 3 comments 5 replies
-
I guess this called an ROPC flow. |
Beta Was this translation helpful? Give feedback.
-
Hi @julianadormon, Inline answer to your bullet points1. End user enters password in our app
2. This request calls the API to pull back their info and what galleries they are allowed to access. This "endpoint" allows anonymous requests.
3. Our app creates the JWT claims and sends a request to Azure AD for a token
4. All other requests sent to the API are authenticated with the JWT token Additional thoughts:Within the scope of Azure Identity, this sounds like a use case which would align with Azure AD B2C, which allows you to set up end user registration, management, and sign-in for (consumer, not enterprise) users who belong to your platform. Data Api builder could then be configured to be a downstream API for which users could request and get access tokens. An example of this architecture can be found in this Azure AD B2C doc article: https://learn.microsoft.com/en-us/azure/active-directory-b2c/configure-authentication-sample-web-app-with-api?tabs=visual-studio |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for this info. I think, perhaps, I am overthinking DAB's requirements. |
Beta Was this translation helpful? Give feedback.
-
Sorry I am complete newb when it comes to using Azure AD. I need to understand how Authorization works in very general terms.
I am running a Blazor server app which is a multi-tennant application for photographers to allow them to sell their images to any number of customers. These customers are issued a single password by our app, which when submitted, tells who they are and what galleries they are allowed to see. We handle that logic in our app.
So I am just not sure the flow of getting and using a JWT token in this scenario.
My guess is it goes something like this:
Does this sound like it could work?
I see that I need to add users to AzureAD, is the user a generic user or do I somehow have to create a new user for each of the thousands of end users that are app is aware of?
I appreciate the help. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions