SOLVED

Tab application settings

%3CLINGO-SUB%20id%3D%22lingo-sub-2963638%22%20slang%3D%22en-US%22%3ETab%20application%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2963638%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Dear%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20newbie%20with%20MS%20Teams%20Dev%2C%20sorry%20for%20may%20be%20idiotic%20question%20from%20me%3C%2FP%3E%3CP%3EI%20would%20like%20a%20make%20some%20Application%20for%20MS%20Teams%20(Tab%20app%2C%20Personal%20and%20for%20use%20in%20a%20group)%2C%20user%20that%20will%20be%20used%20it%20should%20have%20ability%20to%20set%20some%20parameters%20for%20it%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20values%20of%20settings%20will%20be%20kept%3F%20Do%20they%20keep%20in%20the%20local%20storage%20(like%20in%20a%20classical%20modern%20web%20browser)%20or%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20be%20happy%20to%20get%20some%20snippets%20of%20code%2C%20or%20kick%20in%20the%20right%20way%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20use%20Blazor%20for%20developing%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%20and%20be%20well!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2963638%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2965508%22%20slang%3D%22en-US%22%3ERe%3A%20Tab%20application%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2965508%22%20slang%3D%22en-US%22%3ECould%20you%20please%20let%20us%20know%20what%20are%20the%20parameters%20set%20up%20by%20app%20users%3F%20It%20would%20be%20helpful%20if%20you%20could%20provide%20some%20screenshots%20for%20reference.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2965690%22%20slang%3D%22en-US%22%3ERe%3A%20Tab%20application%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2965690%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092848%22%20target%3D%22_blank%22%3E%40Meghana-MSFT%3C%2FA%3E%20I%20have%20the%20next%20pice%20of%20code%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Eprivate%20IAzure%20LogInAzure(string%20clientId%2C%20string%20clientSecret%2C%20string%20clientTenantId)%0A%7B%0Avar%20creds%20%3D%20SdkContext.AzureCredentialsFactory.FromServicePrincipal(%0AclientId%2C%0AclientSecret%2C%0AclientTenantId%2C%0Aenvironment%3A%20AzureEnvironment.AzureGlobalCloud)%3B%0A%0Areturn%20Azure.Configure()%0A.WithLogLevel(HttpLoggingDelegatingHandler.Level.Basic)%0A.Authenticate(creds)%0A.WithDefaultSubscription()%3B%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20I%20want%20to%20store%20these%20variables%3A%20%22string%20clientId%2C%20string%20clientSecret%2C%20string%20clientTenantId%22%20in%20the%20localStorage%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2968460%22%20slang%3D%22en-US%22%3ERe%3A%20Tab%20application%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2968460%22%20slang%3D%22en-US%22%3ECould%20you%20please%20confirm%20if%20clientId%20and%20clientSecret%20is%20changed%20every%20time%3F%20If%20not%20you%20can%20store%20clientId%2C%20clientSecret%2C%20clientTenantId%20in%20appsettings%20file.%3C%2FLINGO-BODY%3E
New Contributor

Hello Dear Team,

I am newbie with MS Teams Dev, sorry for may be idiotic question from me

I would like a make some Application for MS Teams (Tab app, Personal and for use in a group), user that will be used it should have ability to set some parameters for it

 

Where values of settings will be kept? Do they keep in the local storage (like in a classical modern web browser) or?

 

I will be happy to get some snippets of code, or kick in the right way

 

I use Blazor for developing

 

Thanks, and be well!

5 Replies
Could you please let us know what are the parameters set up by app users? It would be helpful if you could provide some screenshots for reference.

Dear @Meghana-MSFT I have the next pice of code:

private IAzure LogInAzure(string clientId, string clientSecret, string clientTenantId)
{
var creds = SdkContext.AzureCredentialsFactory.FromServicePrincipal(
clientId,
clientSecret,
clientTenantId,
environment: AzureEnvironment.AzureGlobalCloud);

return Azure.Configure()
.WithLogLevel(HttpLoggingDelegatingHandler.Level.Basic)
.Authenticate(creds)
.WithDefaultSubscription();
}



And I want to store these variables: "string clientId, string clientSecret, string clientTenantId" in the localStorage

Thanks for help!

Could you please confirm if clientId and clientSecret is changed every time? If not you can store clientId, clientSecret, clientTenantId in appsettings file.
Dear Meghana, nope, cause these data can be changed and second, the end-user should have ability for change these credential data
best response confirmed by Doykin (New Contributor)
Solution
You can follow this blog(https://thomy.tech/microsoft-teams-tab-with-blazor/) to create a MS Teams Tab application using blazor.

Thanks,
Prasad Das
--------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.