Forum Discussion

Doykin's avatar
Doykin
Copper Contributor
Nov 14, 2021
Solved

Tab application settings

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!

  • 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.

5 Replies

  • 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.
  • 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.
    • Doykin's avatar
      Doykin
      Copper Contributor

      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!

      • Meghana-MSFT's avatar
        Meghana-MSFT
        Former Employee
        Could you please confirm if clientId and clientSecret is changed every time? If not you can store clientId, clientSecret, clientTenantId in appsettings file.

Resources