-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from simevo/feature/class-wrapper
- Loading branch information
Showing
37 changed files
with
790 additions
and
1,977 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
sp.key | ||
sp.crt | ||
vendor | ||
tmp | ||
www/settings.php | ||
www2/settings.php | ||
config.yaml | ||
.directory | ||
.vscode | ||
.DS_Store | ||
AuthnRequest.patched | ||
LogoutRequest.patched | ||
vendor | ||
example/sp.key | ||
example/sp.crt | ||
example/idp_metadata/*.xml |
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
56,57c56 | ||
72,73c72 | ||
< Format="{$nameIDPolicyFormat}" | ||
< AllowCreate="true" /> | ||
--- | ||
> Format="{$nameIDPolicyFormat}" /> | ||
130c129 | ||
143,145c142,144 | ||
< ProtocolBinding="{$spData['assertionConsumerService']['binding']}" | ||
< AssertionConsumerServiceURL="{$acsUrl}"> | ||
< <saml:Issuer>{$spEntityId}</saml:Issuer> | ||
--- | ||
> <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" NameQualifier="http://sp2.simevo.com:8000">{$spEntityId}</saml:Issuer> | ||
> AssertionConsumerServiceIndex="1" | ||
> AttributeConsumingServiceIndex="1"> | ||
> <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" NameQualifier="{$spEntityId}">{$spEntityId}</saml:Issuer> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
107c107 | ||
128c128 | ||
< <saml:Issuer>{$spEntityId}</saml:Issuer> | ||
--- | ||
> <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" NameQualifier="http://sp2.simevo.com:8000">{$spEntityId}</saml:Issuer> | ||
> <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" NameQualifier="{$spEntityId}">{$spEntityId}</saml:Issuer> |
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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
all: sp.key AuthnRequest.patched LogoutRequest.patched | ||
# clean up twig cache | ||
rm -rf tmp | ||
mkdir -p tmp | ||
./bin/configure.php > www/settings.php | ||
cp www/settings.php www2/settings.php | ||
all: example/sp.key AuthnRequest.patched LogoutRequest.patched | ||
|
||
AuthnRequest.patched: TO_PATCH:=vendor/onelogin/php-saml/src/Saml2/AuthnRequest.php | ||
AuthnRequest.patched: AuthnRequest.diff | ||
if [ -e $@ ]; then patch -R "${TO_PATCH}" $@; fi | ||
patch -N "${TO_PATCH}" $< | ||
cp $< $@ | ||
if [ -e $@ ]; then patch -R vendor/onelogin/php-saml/src/Saml2/AuthnRequest.php $@; fi | ||
patch -N vendor/onelogin/php-saml/src/Saml2/AuthnRequest.php $< | ||
cp AuthnRequest.diff $@ | ||
|
||
LogoutRequest.patched: TO_PATCH=vendor/onelogin/php-saml/src/Saml2/LogoutRequest.php | ||
LogoutRequest.patched: LogoutRequest.diff | ||
if [ -e $@ ]; then patch -R "$(TO_PATCH)" $@; fi | ||
patch -N "${TO_PATCH}" $< | ||
cp $< $@ | ||
if [ -e $@ ]; then patch -R vendor/onelogin/php-saml/src/Saml2/LogoutRequest.php $@; fi | ||
patch -N vendor/onelogin/php-saml/src/Saml2/LogoutRequest.php $< | ||
cp LogoutRequest.diff $@ | ||
|
||
sp.key: | ||
openssl req -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -subj "/C=IT/ST=Italy/L=Rome/O=testenv2/CN=localhost" -keyout sp.key -out sp.crt | ||
example/sp.key: | ||
openssl req -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -subj "/C=IT/ST=Italy/L=Rome/O=testenv2/CN=localhost" -keyout example/sp.key -out example/sp.crt | ||
|
||
clean: | ||
rm -rf tmp vendor www/settings.php AuthnRequest.patched LogoutRequest.patched | ||
rm -rf vendor | ||
rm -f AuthnRequest.patched | ||
rm -f LogoutRequest.patched | ||
rm -f example/idp_metadata/*.xml | ||
rm -f example/sp.crt example/sp.key |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.