Skip to content

Commit

Permalink
add missing docs (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko authored Jul 1, 2024
2 parents 561ce1b + b7bad34 commit 0a2cad7
Show file tree
Hide file tree
Showing 91 changed files with 9,840 additions and 0 deletions.
78 changes: 78 additions & 0 deletions openig-doc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,83 @@
</plugins>
</build>
</profile>

<profile>
<id>man-pages</id>
<activation>
<os><family>unix</family></os>
<jdk>8</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>doc-maven-plugin</artifactId>
<version>${commons-plugin.version}</version>
<executions>
<execution>
<id>build-man-pages</id>
<phase>package</phase>
<goals>
<goal>process</goal>
<goal>build</goal>
<goal>release</goal>
</goals>
</execution>
</executions>
<configuration>
<projectName>OpenAM</projectName>
<projectVersion>${project.version}</projectVersion>
<releaseVersion>${project.version}</releaseVersion>
<buildReleaseZip>true</buildReleaseZip>
<googleAnalyticsId />
<isDraftMode>no</isDraftMode>
<formats combine.self="override">
<format>man</format>
<format>epub</format>
<format>html</format>
<format>pdf</format>
<format>webhelp</format>
<format>xhtml5</format>
</formats>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>zip-docs</id>
<phase>package</phase>
<configuration>
<target>
<property name="compress_formats" value="webhelp,xhtml,html"/>
<ant antfile="${basedir}/src/main/ant/zip.xml">
<target name="docs"/>
</ant>>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>${ant.contrib.version}</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
22 changes: 22 additions & 0 deletions openig-doc/src/main/ant/zip.xml
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 openig-doc/src/main/docbkx/gateway-guide/OWAOnline.json
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",
}
69 changes: 69 additions & 0 deletions openig-doc/src/main/docbkx/gateway-guide/capture.json
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"
}
Loading

0 comments on commit 0a2cad7

Please sign in to comment.