11 |
12 |

13 |
14 |
15 |
16 |
17 | This website requires you to login via Google using
this link.
18 |
19 | Your ID is ${authid}
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/google/dialog/main.css:
--------------------------------------------------------------------------------
1 | * {
2 | font-family: sans-serif;
3 | font-size: 10pt;
4 | }
5 |
6 | body {
7 | max-width: 800px;
8 | margin: auto;
9 | }
10 |
11 | .content {
12 | }
13 |
14 | img.logo {
15 | float: right;
16 | }
17 |
18 | div.logo {
19 | clear: both;
20 | }
21 |
22 | .loginbox {
23 | margin: 200px auto;
24 | width: 300px;
25 | }
26 |
27 | .error {
28 | color:red;
29 | }
30 |
31 | input {
32 | margin-bottom: 8pt;
33 | }
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/google/service-proxySSL.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | homeSet() {
3 | echo "MEMBRANE_HOME variable is now set"
4 | CLASSPATH="$MEMBRANE_HOME/conf"
5 | CLASSPATH="$CLASSPATH:$MEMBRANE_HOME/starter.jar"
6 | export CLASSPATH
7 | echo Membrane Router running...
8 | java -classpath "$CLASSPATH" com.predic8.membrane.core.Starter -c proxiesSSL.xml
9 | }
10 |
11 | terminate() {
12 | echo "Starting of Membrane Router failed."
13 | echo "Please execute this script from the appropriate subfolder of MEMBRANE_HOME/examples/"
14 | }
15 |
16 | homeNotSet() {
17 | echo "MEMBRANE_HOME variable is not set"
18 |
19 | if [ -f "`pwd`/../../../starter.jar" ]
20 | then
21 | export MEMBRANE_HOME="`pwd`/../../.."
22 | homeSet
23 | else
24 | terminate
25 | fi
26 | }
27 |
28 | if [ "$MEMBRANE_HOME" ]
29 | then homeSet
30 | else homeNotSet
31 | fi
32 |
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/implicit/README.md:
--------------------------------------------------------------------------------
1 | This example shows the OAuth2 implicit flow. It uses a Javascript client.
2 |
3 | Please follow https://www.membrane-soa.org/api-gateway-doc/current/oauth2-implicit-flow-example.html
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/implicit/authorization_server/consentFile.json:
--------------------------------------------------------------------------------
1 | {
2 | "product_name":"authorization server",
3 | "logo_url":"url",
4 | "scopes":{
5 | "scopeName1":"description1",
6 | "scopeName2":"description2",
7 | "profile":"Information about who you are"
8 | },
9 | "claims":{
10 | "claimName1":"description3",
11 | "claimName2":"description4",
12 | "username":"Your username"
13 | }
14 | }
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/implicit/authorization_server/logindialog/main.css:
--------------------------------------------------------------------------------
1 | * {
2 | font-family: sans-serif;
3 | font-size: 10pt;
4 | }
5 |
6 | body {
7 | max-width: 800px;
8 | margin: auto;
9 | }
10 |
11 | .content {
12 | }
13 |
14 | img.logo {
15 | float: right;
16 | }
17 |
18 | div.logo {
19 | clear: both;
20 | }
21 |
22 | .loginbox {
23 | margin: 200px auto;
24 | width: 400px;
25 | }
26 |
27 | .error {
28 | color:red;
29 | }
30 |
31 | input {
32 | margin-bottom: 8pt;
33 | }
34 |
35 | div.product_name {
36 | text-align: center;
37 | font-size: 3em;
38 | font-weight:bold;
39 | }
40 |
41 | div.askForInformationQuestion {
42 | font-size: 1.5em;
43 | }
44 |
45 | div.consentButtonDeny{
46 | float: left;
47 | }
48 |
49 | div.consentButtonAccept{
50 | float: right;
51 | }
52 |
53 | div.italic{
54 | font-style: italic;
55 | }
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/membrane/README.md:
--------------------------------------------------------------------------------
1 | This example shows OAuth2 authorization with OpenID-Connect and OpenID-Discovery. It uses Membrane as authorization server.
2 |
3 | Please follow https://www.membrane-soa.org/api-gateway-doc/current/oauth2-code-flow-example.html
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/membrane/authorization_server/consentFile.json:
--------------------------------------------------------------------------------
1 | {
2 | "product_name":"authorization server",
3 | "logo_url":"url",
4 | "scopes":{
5 | "scopeName1":"description1",
6 | "scopeName2":"description2",
7 | "profile":"Information about who you are"
8 | },
9 | "claims":{
10 | "claimName1":"description3",
11 | "claimName2":"description4",
12 | "username":"Your username"
13 | }
14 | }
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/membrane/authorization_server/logindialog/main.css:
--------------------------------------------------------------------------------
1 | * {
2 | font-family: sans-serif;
3 | font-size: 10pt;
4 | }
5 |
6 | body {
7 | max-width: 800px;
8 | margin: auto;
9 | }
10 |
11 | .content {
12 | }
13 |
14 | img.logo {
15 | float: right;
16 | }
17 |
18 | div.logo {
19 | clear: both;
20 | }
21 |
22 | .loginbox {
23 | margin: 200px auto;
24 | width: 400px;
25 | }
26 |
27 | .error {
28 | color:red;
29 | }
30 |
31 | input {
32 | margin-bottom: 8pt;
33 | }
34 |
35 | div.product_name {
36 | text-align: center;
37 | font-size: 3em;
38 | font-weight:bold;
39 | }
40 |
41 | div.askForInformationQuestion {
42 | font-size: 1.5em;
43 | }
44 |
45 | div.consentButtonDeny{
46 | float: left;
47 | }
48 |
49 | div.consentButtonAccept{
50 | float: right;
51 | }
52 |
53 | div.italic{
54 | font-style: italic;
55 | }
--------------------------------------------------------------------------------
/distribution/examples/security/oauth2/openid/README.md:
--------------------------------------------------------------------------------
1 | This example shows OAuth2 authorization with OpenID-Connect and OpenID-Discovery. It uses Google as authorization server.
2 |
3 | Please follow https://www.membrane-soa.org/api-gateway-doc/current/oauth2-openid.html
--------------------------------------------------------------------------------
/distribution/examples/security/padding-header/proxies.xml:
--------------------------------------------------------------------------------
1 |