Skip to content

Instantly share code, notes, and snippets.

View ddossot's full-sized avatar
:shipit:
s̴̝̺̫͖̞͛̑͆̀̽̕ḩ̵͌̀͘í̴̝̰͉̒́̐͗p̶̯͍͎͒̿́̈́̕

David Dossot ddossot

:shipit:
s̴̝̺̫͖̞͛̑͆̀̽̕ḩ̵͌̀͘í̴̝̰͉̒́̐͗p̶̯͍͎͒̿́̈́̕
View GitHub Profile
<configuration>
<expression-language>
<global-functions file="qrcode_data_to_map.mel" />
</expression-language>
</configuration>
<mqtt:config name="mqttClient"
brokerServerUri="${mqttBrokerServerUri}"
clientId="booth-reader-${boothId}">
<reconnect-forever frequency="5000" />
@ddossot
ddossot / gist:3764742
Created September 22, 2012 01:01
Demo Trusted User Data
{
"scopes": [],
"username": "john.doe",
"token_expires_in_seconds": 85683,
"roles": [
"RESOURCE_OWNER"
]
}
@ddossot
ddossot / gist:3764738
Created September 22, 2012 00:57
Mule OAuth2 Sample Client Resource Protection
<flow name="validateAccessTokenForAuthorizedClientOnly">
<http:inbound-endpoint address="http://localhost:8080/api/oauth2/validate_access_token" />
<oauth2-provider:validate-client />
<oauth2-provider:validate />
<set-variable variableName="token_expires_in_seconds" value="#[flowVars['mule.oauth2.access_token_store_holder'].accessToken.expiresIn.toDuration().standardSeconds]" />
<set-payload value="#[atsh=flowVars['mule.oauth2.access_token_store_holder'];['scopes':atsh.authorizationRequest.?scopes,'roles':atsh.resourceOwnerRoles,'username':atsh.resourceOwnerAuthentication.?principal.username,'token_expires_in_seconds':flowVars['token_expires_in_seconds']]]" />
<json:object-to-json-transformer />
<http:response-builder status="200" contentType="application/json">
<http:cache-control directive="private"
noCache="false"
@ddossot
ddossot / gist:3764698
Created September 22, 2012 00:45
Mule OAuth2 Sample Resource Protection
<flow name="publicProfile">
<http:inbound-endpoint address="http://localhost:8080/api/profile/self" />
<oauth2-provider:validate scopes="READ_PROFILE" />
<component class="org.mule.modules.security.examples.oauth2.ProfileLookupComponent" />
</flow>
@ddossot
ddossot / gist:3764672
Created September 22, 2012 00:38
Mule OAuth2 Sample Provider
<oauth2-provider:config
providerName="Company B"
resourceOwnerSecurityProvider-ref="resourceOwnerSecurityProvider"
scopes="READ_PROFILE WRITE_PROFILE" />
@ddossot
ddossot / FedACH-Extended.wsdl
Created July 25, 2012 21:52
FedACH CXF Advanced Proxy - Extended WSDL
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webservicex.net/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webservicex.net/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">The E-Payments
Routing Directory provides basic routing information for FedACH
@ddossot
ddossot / gist:3178904
Created July 25, 2012 21:50
FedACH CXF Advanced Proxy - Full Config
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
xmlns:mule-ss="http://www.mulesoft.org/schema/mule/spring-security"
xmlns:spring="http://www.springframework.org/schema/beans"
@ddossot
ddossot / gist:3178740
Created July 25, 2012 21:20
FedACH CXF secured proxy
<http:inbound-endpoint
address="http://localhost:8080/fed-ach"
exchange-pattern="request-response">
<cxf:proxy-service
wsdlLocation="classpath:FedACH-Extended.wsdl"
namespace="http://www.webservicex.net/"
service="FedACH"
payload="body">
<cxf:ws-security>
<cxf:mule-security-manager />
@ddossot
ddossot / gist:3178138
Created July 25, 2012 19:41
FedACH CXF operation introduction proxy
<flow name="enrichingProxyService">
<http:inbound-endpoint
address="http://localhost:8080/fed-ach"
exchange-pattern="request-response">
<cxf:proxy-service
wsdlLocation="classpath:FedACH-Extended.wsdl"
namespace="http://www.webservicex.net/"
service="FedACH"
payload="body" />
</http:inbound-endpoint>
@ddossot
ddossot / gist:3178050
Created July 25, 2012 19:28
FedACH getACHByClientId method introduction
<wsdl:operation name="getACHByClientId">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">FedACH
participant RDFIs by custom Client ID
</wsdl:documentation>
<wsdl:input message="tns:getACHByClientIdSoapIn" />
<wsdl:output message="tns:getACHByZipCodeSoapOut" />
</wsdl:operation>