How manully setup appsettings? #10
Unanswered
YuriyMorozyuk95
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you reviewed the steps here? https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/installation/troubleshoot-network-related-errors#error-proxy-authorization-required You're correct, Which project template are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unfortinetly on my company PC, I have issue with proxy and not able to Prepare Teams app dependencies, according not able to login to my Azure/Office365 accaunt from Visual Studio. For deployment I use FTPS to my Azure App Service.
As result I need setup everything manually. Or may be I can run bicep scripts some other way.
But any way I need to set properties in appsetting, to configure everything.
I have:
Azure App Serve - where I host bot.
Azure Bot with User Issigned Identity instead of Signle/MultiTenant - with configured connection to Client App Registration and teams chanel.
Client App registration - for reciaving token to call another Web Api secured by AAD other Server app registration. All permissions configured.
Could you advise from where I should populate values:
"AllowedHosts": "*",
"BOT_ID": "$botId$",
"BOT_PASSWORD": "$bot-password$",
"TeamsFx": {
"Authentication": {
"ClientId": "$clientId$",
"ClientSecret": "$client-secret$",
"OAuthAuthority": "$oauthAuthority$",
"ApplicationIdUri": "$applicationIdUri$",
"Bot": {
"InitiateLoginEndpoint": "$initiateLoginEndpoint$"
}
}
}
From code I understood that BOT_ID is MicrosoftAppId,
MicrosoftAppType is hardcoded in Program.cs I update it to UserAssignedMSI
BOT_PASSWORD I can skip according my MicrosoftAppType is UserAssignedMSI?
ClientId is Client App Registration Id?
ClientSecret is Client App Registration Secret Id?
From where should I populate OAuthAuthority?
ApplicationIdUri should be Application ID URI from Client App Registration?
on which format it should be?
From where should I populate Bot::InitiateLoginEndpoint ?
Hope you will help me resolve my authorisation issues, thank you.
Beta Was this translation helpful? Give feedback.
All reactions