-
Hello, I have 3 Blazor Components, for each component I have different logic (Create List, Create Content Type, Create List Item etc.) and I want each logged in user with his own credentials which are stored in the database(TenantID, ClientID) to authenticate in front of Azure and execute some of the operations. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
@indieza : not sure if I fully get the scenario @indieza , but to me this is about building a multi-tenant application. Did you consider the following:
Now when you want to call into an Azure hosted service you'd want to that as the user that signed in to your Blazor application and that's something that can be done using the on-behalf-of flow (see https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow for the documentation). A nice .NET sample is this one: https://github.com/Azure-Samples/ms-identity-aspnet-webapi-onbehalfof. While above .NET sample shows how to code things using MSAL I think it's just easier to use the |
Beta Was this translation helpful? Give feedback.
-
Well, I have page for creating some list in SharePoint website and I want to give chance to the user to put his Azure credentials and website url dynamicly in text input fields, without putting them into the appsetting.json file, hard-code them etc. |
Beta Was this translation helpful? Give feedback.
-
@jansenbe Image 1 Regards, |
Beta Was this translation helpful? Give feedback.
@jansenbe
Here I upload some images which will describe what I am looking for. I want every user to setup his credential in his Account and after that when open the page, Create Website, automatically after loading the page to setup pnpContext which will be able to create a new SharePoint website.
Image 1
https://drive.google.com/file/d/1M0MvKnStvh7kCWd1V5siPNMKmm3kQ4h4/view?usp=sharing
Image 2
https://drive.google.com/file/d/1eeNniPnDFtUjYil9kpLtUteMjeLTrPA3/view?usp=sharing
Regards,
Simeon Valev