-
Notifications
You must be signed in to change notification settings - Fork 18
Add support for mellon auth #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bp85
wants to merge
15
commits into
OSC:master
Choose a base branch
from
bp85:add_mellon_auth
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4ff6e2c
Merge pull request #2 from OSC/master
bp85 e5d5d99
Add support for mellon auth
bp85 46b1ba2
Merge branch 'master' into add_mellon_auth
bp85 d057d66
Merge pull request #4 from bp85/add_mellon_auth
bp85 48649a7
add more enhancements
bp85 1c5b3c6
Merge branch 'OSC:master' into master
bp85 4686d59
Merge branch 'master' into add_mellon_auth
bp85 1ffc948
syntax fix
bp85 8c2ec63
Update manifests/apache.pp
bp85 046a630
Update manifests/apache.pp
bp85 37bd202
move configs out of params
bp85 f24031f
Merge branch 'OSC:master' into add_mellon_auth
bp85 faaf7ca
Update manifests/init.pp
treydock dd1c10e
Update manifests/init.pp
treydock dc19019
Update manifests/config.pp
treydock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,8 @@ | ||
<Location ~ "^/(?!public)"> | ||
<% scope['openondemand::auth'].each do |k| -%> | ||
<%= k %> | ||
<% end %> | ||
<% scope['openondemand::mellon_merged_config'].each do |k,v| -%> | ||
<%= k %> <%= v %> | ||
<% end %> | ||
</Location> |
This file contains hidden or 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 @@ | ||
#!/usr/bin/env bash | ||
|
||
MELLON_DIR="<%= scope['openondemand::mellon_dir'] -%>" | ||
|
||
[ -d ${MELLON_DIR} ] || mkdir ${MELLON_DIR} | ||
|
||
pushd $MELLON_DIR | ||
<% if scope['openondemand::proxy_server'] -%> | ||
export mellon_endpoint="https://<%= scope['openondemand::proxy_server'] %><%= scope['openondemand::mellon_merged_config']['MellonEndpointPath'] %>" | ||
<% else -%> | ||
export mellon_endpoint="https://<%= scope['openondemand::servername'] %><%= scope['openondemand::mellon_merged_config']['MellonEndpointPath'] %>" | ||
<% end -%> | ||
<%= scope['apache::params::httpd_root'] %>/usr/libexec/mod_auth_mellon/mellon_create_metadata.sh "${mellon_endpoint}/metadata" "${mellon_endpoint}" | ||
|
||
mv *mellon_metadata.cert ./mellon.cert | ||
mv *mellon_metadata.key ./mellon.key | ||
mv *mellon_metadata.xml ./mellon_metadata.xml | ||
|
||
openssl pkcs12 -export -inkey ./mellon.key -in ./mellon.cert -out ./mellon.pfx -passout pass: | ||
|
||
popd | ||
echo "Mellon files are generated at ${MELLON_DIR}" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable doesn't seem to be defined anywhere.