What is the Endpoint URL in Mule? - salesforce

I want to integrate salesforce with mule. In Salesforce i am using Outbound message. In outbound Message asking Endpoint URL. but i need integrate with salesforce to mule. so How i can give the Endpoint URL Address. Which Endpoint URL is suitable for connect with Mule. how can i connect and Which Endpoint Component will go to use in mule. how i receive the Outbound message in mule from salesforce. In salesforce i know the outbound message creation. I don't know the Endpoint URL. Normal Salesforce Endpoint URL link to some other Webpage. but here i should need Mule Endpoint URL. How i can give this. Please Suggest it. Thanks.

you need to create a http-endpoint in your mule flow, and specify to which URL it should listen to.
example of such endpoint declaration is:
<http:endpoint name="myEndpoint" address="http://myExample.info/exampleAddress" exchange-pattern="request-response"/>
update
set the address for endpoint to the available port, so if 80 is not occupied - it's ok to have it for example address="http://localhost:80/exampleAddress/"

Related

How do I send Alexa smarthome proactive changeReports from a sensor?

I am using LWA as my oauth2 provider and need to send change reports when my contact sensors change state. Because of LWA account linking I've determined that I will have to store access and refresh tokens in a database from my skill. If that's the case, then the only way to send a report is to have my server send data to the skill which sends the actual directive to the endpoint. If that is the case, how do I create a separate trigger or function that will receive data from my server, repackage it and send to the endpoint?
And if the best way to do this is to have my server contact the endpoint directly, which seems more elegant to me, how would I get the necessary tokens or auth code to my server for storage?
When sending events to Alexa Event Gateway, there's no requirement on whether to send it through your skill Lambda v.s. your backend server. As long as you have the access token of the user, you can send the event from anywhere you want.
I think the easiest way to implement this is to have your skill stores the access and refresh token in DynamoDB. When the device state changes, your backend server would retrieve the access token from DynamoDB and then send the event to Alexa Event Gateway.

How do I authorize an user to my rest service - Camel CXF

I have a httpd front end server which will authenticate users using openidc and associate JWT to the incoming request if the authentication is successful. Post this the request will reach the desired REST service, which is defined using Apache Camel CXF.
Now I need to deny/permit this user to the requested service based on certain permissions. How do i do that ?
Typically the established user session would contain claims about the user provided by the OpenID Connect Provider. Those claims can be used in mod_auth_openidc specific Require directives e.g.:
Require claim email:joe#example.org
For more information see: https://github.com/zmartzone/mod_auth_openidc/wiki/Authorization

Docusign Connect for Salesforce with custom URL

I have a client with a Salesforce environment at a custom URL: https://_______.my.salesforce.com, and while I was able to install the Docusign package, I cannot seem to get it to connect to my demo/dev account for the last step of initial setup.
When I'm on Docusign's Connect settings and I use the custom URL option, I get an error that returns with some HTML from the page and no matter what alternate options I select I cannot get it to connect. I have verified that the Docusign IP addresses are set up properly on Salesforce's side to allow access.
Thanks in advance!
When setting up a custom Salesforce URL for Connect the URL must point to the API endpoint - not the login page. So, for example, you'd use something like this:
https://_______.my.salesforce.com/services/Soap/u/34.0/

Receive slack bot messages via requests to external URL

Is it possible to receive direct messages on behalf of a slack bot via POST requests to a certain domain?
I want to have an endpoint in Google App Engine that receives incoming direct messages from Slack via POST requests, and posts messages back via the API. Is it possible?
You can use the new Events API. Create a bot, subscribe to message.im events, and set your endpoint as the callback URL
You just need to set up an "outgoing webhook"in slack and point it to whatever endpoint you need on your GAE server. In order to respond just use an "incoming webhook" to receive the answer.

get value of access token

I started using google API recently . I am using simpleauth https://github.com/crhym3/simpleauth for authentication to google app engine . Now I am using google blogger API for publishing my blog and fetching data .
This API requires access_token value to use the API https://developers.google.com/blogger/docs/3.0/using#RetrievingPostsForABlog for Authorization . I cant find a way to get value of access token .
Is there a way to get the value of acces token or am I doing something wrong ?
You need to register your webapp with Google to get a client ID and client secret. Then, you can configure your OAuth2 library with these details to allow you to send fully authenticated requests from your webapp to Blogger.
For the specific scenario you listed, retrieving a blog post, I think you can follow step 1 of this page and then follow these steps. You should be able to copy+paste the key from there into the query params of the GET request.
To issue fully authenticated requests, for publishing new posts, for example, you'll have to get your OAuth2 library with the client ID and client secret and have it issue the requests for you.

Resources