-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
9,840 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<project name="zip"> | ||
<target name="docs"> | ||
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/> | ||
<foreach param="docname" target="formats" inheritall="true"> | ||
<path> | ||
<dirset dir="${basedir}/src/main/docbkx/" casesensitive="yes"> | ||
<include name="*/"/> | ||
<exclude name="*/*/**"/> | ||
<exclude name="shared"/> | ||
</dirset> | ||
</path> | ||
<mapper type="flatten"/> | ||
</foreach> | ||
</target> | ||
<target name="formats"> | ||
<foreach param="format" list="${compress_formats}" target="dozip" inheritall="true"/> | ||
</target> | ||
<target name="dozip" > | ||
<echo message="compressing ${format} ${docname} from ${project_build_dir}/docbkx/${format}/${docname} to ${project_build_dir}/docbkx/${format}/${docname}.zip"/> | ||
<zip basedir="${project.build.directory}/docbkx/${format}/${docname}" destfile="${project.build.directory}/docbkx/${format}/${docname}.zip"/> | ||
</target> | ||
</project> |
109 changes: 109 additions & 0 deletions
109
openig-doc/src/main/docbkx/gateway-guide/OWAOnline.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ | ||
"heap": { | ||
"objects": [ | ||
{ | ||
"name": "LogSink", | ||
"comment": "Default sink for logging information.", | ||
"type": "ConsoleLogSink", | ||
"config": { | ||
"level": "DEBUG", | ||
} | ||
}, | ||
{ | ||
"name": "HandlerServlet", | ||
"type": "HandlerServlet", | ||
"config": { | ||
"handler": "DispatchHandler", | ||
"baseURI":"https://65.55.171.158" | ||
} | ||
}, | ||
{ | ||
"name": "DispatchHandler", | ||
"type": "DispatchHandler", | ||
"config": { | ||
"bindings": [ | ||
{ | ||
"condition": "${exchange.request.uri.path == '/owa/auth/logon.aspx'}", | ||
"handler": "LoginChain", | ||
}, | ||
{ | ||
"handler": "OutgoingChain", | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "LoginChain", | ||
"type": "Chain", | ||
"config": { | ||
"filters": ["CryptoHeaderFilter","LoginRequest"], | ||
"handler": "OutgoingChain" | ||
} | ||
}, | ||
{ | ||
"name": "CryptoHeaderFilter", | ||
"type": "CryptoHeaderFilter", | ||
"config": { | ||
"messageType":"REQUEST", | ||
"operation":"DECRYPT", | ||
"algorithm":"DES/ECB/NoPadding", | ||
"key":"DESKEY", | ||
"keyType":"DES", | ||
"charSet":"utf-8", | ||
"headers": ["password"], | ||
}, | ||
}, | ||
{ | ||
"name": "LoginRequest", | ||
"type": "StaticRequestFilter", | ||
"config": { | ||
"method": "POST", | ||
"uri": "https://65.55.171.158/owa/auth/owaauth.dll", | ||
"headers" : { | ||
"Host": ["red001.mail.microsoftonline.com"], | ||
"Content-Type": ["Content-Type:application/x-www-form-urlencoded"], | ||
} | ||
"form": { | ||
"destination": ["https://red001.mail.microsoftonline.com/owa/"], | ||
"forcedownlevel": ["0"], | ||
"trusted": ["0"], | ||
"username": ["${exchange.request.headers['username'][0]}"], | ||
"password": ["${exchange.request.headers['password'][0]}"], | ||
"isUtf8": ["1"], | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "OutgoingChain", | ||
"type": "Chain", | ||
"config": { | ||
"filters": ["HeaderFilter","CaptureFilter"], | ||
"handler": "ClientHandler" | ||
} | ||
}, | ||
{ | ||
"name": "HeaderFilter", | ||
"type": "HeaderFilter", | ||
"config": { | ||
"messageType":"REQUEST", | ||
"remove": ["password","username"], | ||
} | ||
}, | ||
{ | ||
"name": "CaptureFilter", | ||
"type": "CaptureFilter", | ||
"config": { | ||
"captureEntity": false, | ||
"file": "/tmp/gateway.log", | ||
} | ||
}, | ||
{ | ||
"name": "ClientHandler", | ||
"type": "ClientHandler", | ||
"config": { | ||
} | ||
}, | ||
] | ||
}, | ||
"servletObject": "HandlerServlet", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"heap": { | ||
"objects": [ | ||
{ | ||
"name": "HandlerServlet", | ||
"comment": "Transforms Servlet request to handler request.", | ||
"type": "HandlerServlet", | ||
"config": { | ||
"handler": "DispatchHandler" | ||
} | ||
}, | ||
{ | ||
"name": "DispatchHandler", | ||
"type": "DispatchHandler", | ||
"config": { | ||
"bindings": [ | ||
{ | ||
"condition": "${exchange.request.uri.scheme == 'http'}", | ||
"handler": "OutgoingChain", | ||
"baseURI": "http://TARGETIP" | ||
}, | ||
{ | ||
"condition": "${exchange.request.uri.path == '/login'}", | ||
"handler": "LoginChain", | ||
"baseURI": "https://TARGETIP" | ||
}, | ||
{ | ||
"handler": "OutgoingChain", | ||
"baseURI": "https://TARGETIP" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "LoginChain", | ||
"type": "Chain", | ||
"config": { | ||
"filters": [], | ||
"handler": "OutgoingChain" | ||
} | ||
}, | ||
{ | ||
"name": "OutgoingChain", | ||
"type": "Chain", | ||
"config": { | ||
"filters": [ | ||
"CaptureFilter" | ||
], | ||
"handler": "ClientHandler" | ||
} | ||
}, | ||
{ | ||
"name": "CaptureFilter", | ||
"type": "CaptureFilter", | ||
"config": { | ||
"captureEntity": false, | ||
"file": "/tmp/gateway.log" | ||
} | ||
}, | ||
{ | ||
"name": "ClientHandler", | ||
"comment": "Sends all requests to remote servers.", | ||
"type": "ClientHandler", | ||
"config": {} | ||
} | ||
] | ||
}, | ||
"servletObject": "HandlerServlet" | ||
} |
Oops, something went wrong.