Dynamics crm tenant url doesn't work as adal reply url - dynamics-crm

I have integrated adal.js in my Dynamics crm custom solution to embed power bi report which works fine but since redirect url need to be set on azure portal app registration so set my tenant url like:
https://myurl.crm6.dynamics.com
but I am getting message like :
"The reply url specified in the request does not match the reply urls configured for the application"
My custom dashboard has been set as default dashboard on tenant. And this custom dashboard contains adal.js and other related js code.
Any suggestion would be appreciated.

The reply url in your tenant needs to exactly match whatever you have set as your reply URL in your app settings/web.config in your code. Have you ensured that these are matching?

Related

How to change the default message text of OTP message sent by twilio verify

I am using Twillio API in my laravel application to send users an OTP, when they try to login through their mobile number. It is working fine, it is sending a message like "Your verification code is XXXXXX". My question is, is there any way so that I can customize the message text?? I want to greet my users when they try to login through the phone. I want to add the greeting line with the default line of verifying the message. Any suggestion is appreciable. Thanks in Advance.
Twilio developer evangelist here.
By default you cannot customise the message. As Alan points out, the application name can be set as the service friendly name, which inserts the name in the message
Your {Service Friendly Name} verification code is: {code}
But this does not allow you to directly customize the text on a per user basis.
There are customization options available but you need to talk to Twilio sales to enable them.
Just the Verify Application/Service Name which is conveyed in the message.
Friendly Name (used in the Verification message templates)
If You want message like this :
Your Grocery-store verification code is : ******
then change your verify service name from twilio console as Grocery-store

MTeams bot authorization (OAuth, get/use/refresh token) to my web service

Could you help me to implement login functionality to my web application (OAuth)?
I created MS teams bot and need to connect to my web service. I need to call (from the bot) my login web page (Login page: user & pass), get token and then use (refresh if needed) the token to make API requests (from bot) to my service.
Examples, architecture, suggestions?
Thank you ...
How to authenticate a user using a teams bot using my own custom authentication service?
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/46.teams-auth
I found some solution and ... Any different suggestions?
Also ... A question ... How can I override the existing dialog (the example) and use my content (new dialog body)?
You can take a look at Adding Authentication to your Teams Bot. Invoke activity is send to the Bot when user to click on oAuthPrompt Dialog. We have TeamsAuth sample code using the same oAuthPrompt dialog, You can set the oAuth setting for your Bot in Azure and test it. For more information how Authentication flow works in Teams Bot you can check the MS Teams Authentication flow in Bots, Bot uses the Dialog from TeamsActivityHandler class, You can create your own dialog using the same.

Unable to post to a test connector's webhook url

After setting up a connector pretty much as described in the connector tutorial, we're not able to send test requests to the webhook url we received from the connector configuration page.
The test connector is set up in the Connectors Developer Dashboard. Not published to the app store, as still testing. The message next to the connector name says "Registered. Pending Approval"
It's sideloaded to Outlook / Microsoft Teams
It's also uploaded separately as a package into Teams
It shows up correctly in the channel configuration
Connector Settings page loads correctly, and settings can be saved
The getSettings call returns a webhook url correctly
But, submitting a POST request to the webhook url errors out:
curl -d "test=true" -X POST 'https://outlook.office.com/webhook/09f2b8e5-e684-4e87-8838-75e3a2f9dcbc#00d35244-2e42-4af7-a1ad-d6b557249c2b/58f4ab6b-234c-43ad-82f0-4641e38699e0/c516d999fec5498e9cac06f8d0478f22/79e349e1-47da-487a-90ee-040eccbbfa8b'
Unknown Connector provider 58f4ab6b-234c-43ad-82f0-4641e38699e0
This seems like an issue with testing webhook urls not being usable?
Related thread as another team is having the same issue as well, and github issue with more details.
As a side-note, when adding the connector to the team page, there was a chat notification that the user added the connector to this team. In this message the connector image did not load properly. I can see in the url that it also has the connector id in it.
This seems to have been an issue within MS Teams, and it looks like it has been fixed by now. I'm able to post messages to the generated webhook without receiving the error message.

Tried code from Microsoft.Bot.Sample.AadV2Bot but even locally get AADSTS50011 (reply url doesn't match)

I've integrated the Code from Microsoft.Bot.Sample.AadV2Bot in my own bot but the GetTokenDialog call always results in error "AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 'MYBOTSAPPID'"
As far as I understood, I do not have to register my bot in Azure Portal under "Azure Active Directory" but setup the Reply URL in the application registration Portal (https://apps.dev.microsoft.com) - Correct?
But whatever values I enter here, it won't work, neither locally via Emulator nor via Web. Furthermore, in MS Teams the signin Dialog does not work at all.
I've already tried these reply URLs without success:
https://MYBOTSNAME.azurewebsites.net, http://localhost:3978 and https://localhost:44362
I also tried to extend these with /api/messages, /signin-oidc and several other combinations, all without success.
The mentioned sample solution also does not include more keys than ConnectionName, MicrosoftAppId and MicrosoftAppPassword in web.config, so I haven't got a clue which redirect URI is taken on runtime.
In Azure Portal I've created an Azure Active Directory V2 Connection on my bot and entered my bot's Microsoft App ID in the field "Client ID" and Microsoft App Password in the field "Client Secret" - is this correct?
Any hint what I might have done wrong is VERY welcome!!
I finally could solve the Reply URL mismatch problem myself. Had to enter this Reply URL on my app in the application Registration Portal to make it work locally, via Emulator:
https://token.botframework.com/.auth/web/redirect
Still, the authentification Dialog (GetTokenDialog class from Microsoft.Bot.Builder.Dialogs) doesn't popup when I use MS Teams as channel.
Does anyone have an idea what could help?

How can I setting webhook callback url for Bot Framework (Skype)?

I need to setting URL for a service that was been receive event for new messages. According to Microsoft documentation I can set the url for, e.g., Facebook (https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-facebook?view=azure-bot-service-3.0#generate-a-page-access-token), but I can't find information about setting url for Skype.
But I can specify a message endpoint for my bot. The message endpoint is a webhook url?
Sorry for my bad English
See also: Messaging Webhook for Microsoft skype bot
PS: about web hooks for Skype: https://msdn.microsoft.com/en-us/skype/trusted-application-api/docs/webhooks
I'm not sure if you are using C# or node but I will try my best to answer both.
The Webhook is just the endpoint for your calling controller in C# so for example in the sample from the botbuilder repository in C# They are using the CallController.cs Your webhook would be https://{your site}/api/call.
In the sample from node they are using server.post('/api/calls', connector.listen()); so your webhook url would be https://{your site}/api/calls in this setup

Resources