-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: flex-linux-setup add casa install
- Loading branch information
1 parent
65453b1
commit 0ff917f
Showing
7 changed files
with
254 additions
and
53 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
File renamed without changes.
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,11 @@ | ||
JAVA_HOME=%(jre_home)s | ||
JAVA=$JAVA_HOME/bin/java | ||
JAVA_OPTIONS="-server -Xms%(casa_min_heap_mem)sm -Xmx%(casa_max_heap_mem)sm -XX:+DisableExplicitGC -Djans.base=%(jansBaseFolder)s -Dserver.base=%(jetty_base)s/casa -Dlog.base=%(jetty_base)s/casa -Dpython.home=%(jython_home)s" | ||
|
||
JETTY_HOME=%(jetty_home)s | ||
JETTY_BASE=%(jetty_base)s/casa | ||
JETTY_USER=%(jetty_user)s | ||
JETTY_ARGS="jetty.http.host=localhost jetty.http.port=%(casa_web_port)s" | ||
TMPDIR=%(jetty_dist)s/temp | ||
|
||
export PYTHON_HOME=%(jython_home)s |
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,13 @@ | ||
[Unit] | ||
Description=Gluu Casa service | ||
After=jans-auth.service | ||
|
||
[Service] | ||
Type=forking | ||
ExecStart=/opt/dist/scripts/casa start | ||
ExecStop=/opt/dist/scripts/casa stop | ||
User=jetty | ||
Group=jetty | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
5 changes: 5 additions & 0 deletions
5
flex-linux-setup/flex_linux_setup/templates/casa_apache_directive
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,5 @@ | ||
<Location /casa> | ||
ProxyPass http://localhost:%(casa_web_port)s/casa retry=5 connectiontimeout=60 timeout=60 | ||
Order deny,allow | ||
Allow from all | ||
</Location> |
33 changes: 33 additions & 0 deletions
33
flex-linux-setup/flex_linux_setup/templates/casa_client.ldif
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,33 @@ | ||
version: 1 | ||
dn: inum=%(casa_client_id)s,ou=clients,o=jans | ||
objectClass: top | ||
objectClass: jansClnt | ||
del: false | ||
displayName: Client for Casa | ||
inum: %(casa_client_id)s | ||
jansAccessTknAsJwt: true | ||
jansAccessTknSigAlg: RS256 | ||
jansAppTyp: web | ||
jansClntSecret: %(casa_client_encoded_pw)s | ||
jansDisabled: false | ||
jansGrantTyp: authorization_code | ||
jansGrantTyp: refresh_token | ||
jansGrantTyp: client_credentials | ||
jansIdTknSignedRespAlg: RS256 | ||
jansInclClaimsInIdTkn: false | ||
jansLogoutSessRequired: false | ||
jansPersistClntAuthzs: true | ||
jansRedirectURI: %(casa_redirect_uri)s | ||
jansRedirectURI: %(casa_redirect_logout_uri)s | ||
jansLogoutURI: %(casa_frontchannel_logout_uri)s | ||
jansRequireAuthTime: false | ||
jansRespTyp: code | ||
jansRptAsJwt: false | ||
jansScope: inum=F0C4,ou=scopes,o=jans | ||
jansScope: inum=43F1,ou=scopes,o=jans | ||
jansScope: inum=10B2,ou=scopes,o=jans | ||
jansScope: inum=341A,ou=scopes,o=jans | ||
jansSignedRespAlg: RS256 | ||
jansSubjectTyp: pairwise | ||
jansTknEndpointAuthMethod: client_secret_basic | ||
jansTrustedClnt: false |
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,5 @@ | ||
dn: ou=casa,ou=configuration,o=jans | ||
objectClass: jansAppConf | ||
objectClass: top | ||
ou: casa | ||
jansConfApp: {"enable_pass_reset": true, "oidc_config": {"authz_redirect_uri": "%(casa_redirect_uri)s", "post_logout_uri": "%(casa_redirect_logout_uri)s", "frontchannel_logout_uri": "%(casa_frontchannel_logout_uri)s", "scopes": ["openid", "profile", "user_name", "clientinfo"], "op_host": "%(hostname)s", "client": {"clientId": "%(casa_client_id)s", "clientSecret": "casa_client_pw", "clientName": "Client for Casa"}}} |