-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into USAGOV-2015-paragraph-url
- Loading branch information
Showing
17 changed files
with
167 additions
and
390 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
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
SPACE=$(cf target | grep space: | awk '{print $2}'); | ||
if [ -z "$SPACE" ]; then | ||
echo "You must choose a space before procesing ./bin/cloudgov/space (personal|dev|stage|prod|shared-egress)" | ||
exit 1 | ||
fi; | ||
|
||
SECAUTHSECRETS=$(cf curl /v2/user_provided_service_instances/$(cf service secauthsecrets --guid) | jq -r '.entity | select(.name == "secauthsecrets") | .credentials' ) | ||
SP_KEY=$(echo -E "$SECAUTHSECRETS" | jq -r '.spkey') | ||
SP_CRT=$(echo -E "$SECAUTHSECRETS" | jq -r '.spcrt') | ||
|
||
BASENAME=gsaauth.cms-${SPACE}.usa.gov | ||
|
||
echo "$SP_KEY" > prvkey | ||
chmod go-rwx prvkey | ||
ssh-keygen -y -f prvkey > ${BASENAME}.pub | ||
rm prvkey | ||
|
||
echo "$SP_CRT" > ${BASENAME}.crt | ||
|
||
ls -l ${BASENAME}* |
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
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,4 @@ | ||
sp_entity_id 'https://cms.usa.gov' | ||
idp_entity_id 'http://www.okta.com/exkcrqhlftwG6UUOC4h7' | ||
idp_single_sign_on_service 'https://auth.gsa.gov/app/gsauth_usagovcms_1/exkcrqhlftwG6UUOC4h7/sso/saml' | ||
idp_certs.1 'MIIDnDCCAoSgAwIBAgIGAZKgc4jjMA0GCSqGSIb3DQEBCwUAMIGOMQswCQYDVQQGEwJVUzETMBEG A1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsGA1UECgwET2t0YTEU MBIGA1UECwwLU1NPUHJvdmlkZXIxDzANBgNVBAMMBmdzYXV0aDEcMBoGCSqGSIb3DQEJARYNaW5m b0Bva3RhLmNvbTAeFw0yNDEwMTgxNjI1MTlaFw0zNDEwMTgxNjI2MTlaMIGOMQswCQYDVQQGEwJV UzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsGA1UECgwE T2t0YTEUMBIGA1UECwwLU1NPUHJvdmlkZXIxDzANBgNVBAMMBmdzYXV0aDEcMBoGCSqGSIb3DQEJ ARYNaW5mb0Bva3RhLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ+9eFp+opn uGQ6tM3wcvOp45JR1BLdoAXrwNIc7X38mNmF1PMaM4BcuyTLmaZZh/gM9c8+g4fJV/v3SlHyyZCX 9k+8syIh+5f+Hjh8j2reCP/lGnCC20R+3OYfhTrjQDBt4xAk5SGFpQlJBYzCBYs2jK7Ro59FliBw n7I7ec/59arEX+OMD3x6GG3z81LhwxAkBdqJJPkRyXKFm2YF1V9F061F7DUBi4cDkwe8i2IgNUKA Uy2xOCodRVJcmNGk7HvWOWILfyc+t9e7u6ml+5FDWNqwFWIBO7NpI4lY9jyPzYF1UNcSrWk3HCfM 1mRUPJ2Uz4IPqRidRS5nKRumWRsCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAcOp3GyMbcQapt9Ko lTRzF1Z5gupUpB+HIbCloaoBWfeMAw+Ybv+D7VrLPiA3NNrElPPCnUFhEP9oNJyvwn5IKZiXjrNE gEY6mE7HKlUc1+y2BxDp9gNOJlt39CVskI4n+/EDr2f1QncnZccPjqW7tldcictKMa3eO5ppu63k FMgW9Pxq+hzU/MA0cZuDqHUi+WJnIQli/ABLahOFP/4UD+eiUp32LIw9RiBa2VKhz63rlZcyCqWE SLwOxqMwQWbwzk+mlBQwOmYNhPHCKh3CzX7jJf+UvBX2TifgfGgO7rSKXK67xBHiIPul49tjWKlE NCkwxwkFwViaCNPGPktMcw==' |
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
Oops, something went wrong.