-
Notifications
You must be signed in to change notification settings - Fork 397
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
BLT-481: BLT/SimpleSAMLphp Integration #478
Conversation
Hey @dooleymatt! |
Hey @dpagini! |
Oh! Ok, that makes sense now! Could we just delete that file instead, maybe? Wouldn't the only real reason you need that file is if you're contributing back to that library, right? |
@dpagini true, it might not be needed at all. I will look into that. |
This is awesome, it's going to save a ton of project time. @grasmash we should prioritize getting this in. It looks pretty good to me, well documented, etc... |
@@ -0,0 +1,46 @@ | |||
# SimpleSAMLphp Setup |
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.
Please add this file to the mkdocs.yml navigation tree and reference this document in project-tasks.md.
@@ -84,6 +84,12 @@ | |||
<phingcall target="target-hook:invoke"> | |||
<property name="hook-name" value="post-deploy-build"/> | |||
</phingcall> | |||
<if> | |||
<isset property="simplesamlphp"/> |
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.
Rather than relying on new variable, could we instead just verify that simple saml php is being used in the project via composer info
or something similar?
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.
@grasmash the only problem I see with that is if a project has implemented its SimpleSAML installation some other way. The simplesamlphp_auth module or the simplesamlphp library could be in composer.json.
I'd also love to have some type of test here. If not a PHPUnit test, then something in BltDoctorCommand that checks for very obvious problems. E.g., if we're requiring the simple saml php library but there is no top level simplesamlphp directory, display an error. I'm sure there are a few other simple tests of that type. |
@grasmash I agree, at the very least I would like to add something to the BltDoctorCommand. |
690c272
to
cbbb41d
Compare
|
cbbb41d
to
d4c152e
Compare
I know I commented already, but just wanted to add a few thoughts. I do like this addition and can't wait to convert our approach to this.
...which is a little more self-explanatory, in that it reads do not ignore these directories. <echo>Do not gitignore simplesamlphp library configuration files.</echo>
<exec dir="${reporoot}/vendor/simplesamlphp/simplesamlphp" command="grep !/config .gitignore || echo '!/config' >> .gitignore" logoutput="true" checkreturn="true" level="info"/>
<exec dir="${reporoot}/vendor/simplesamlphp/simplesamlphp" command="grep !/metadata .gitignore || echo '!/metadata' >> .gitignore" logoutput="true" checkreturn="true" level="info"/> d) Last, maybe just an inline comment in the phing tasks? |
@dpagini thanks for the recommendations and please let me know if you have others. Since this specifically adds the simplesamlphp_auth module as a dependency, which in turn adds the simplesamlphp library, I'm not sure how it could be extended to use a different library. So I am not sure that changing the names of the targets would be any more informative. At least not unless this got updated in the future to make it possible to use different libraries. As for the gitignore file, I am happy to look into the examples you provided, however I would want to test it out first to make sure only the files we want/need are being included in the deploy artifact. It would be a pretty simple change, but I also don't think that the way it is set up now is a blocker for getting this into BLT. Lastly, I've added inline comments to all the new simplesamlphp targets. Is this what you are referring to, or is there somewhere else you think comments need to be added? |
Right, for sure, nothing blocking inclusion... For comments, I'd say either at the top of So the use case I am suggesting with |
This adds phing targets that automate some of the manual steps needed to install SimpleSAMLphp on a BLT project.