Skip to content
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

fix #65 #66

Merged
merged 14 commits into from
Oct 26, 2018
Merged

fix #65 #66

merged 14 commits into from
Oct 26, 2018

Conversation

simevo
Copy link
Collaborator

@simevo simevo commented Oct 20, 2018

No description provided.

simevo pushed a commit to simevo/spid-wordpress that referenced this pull request Oct 22, 2018
this pulls in the spid-php-lib from a temporary side-branch until italia/spid-php-lib#66 gets merged
it is self-documenting on which version of spid-php-lib we're bundling (just look in composer.json)
the supplied bundle.sh script can be used by the maintainer to update the bundled copy of spid-php-lib in an automated way, guaranteeing it is a 1-to-1 copy of the original
for an authentication-related plugin like this one, we need to make the build reproducible and to self-document all files not written by us which land into the plugin
@lorenzocattaneo
Copy link
Collaborator

The idea is good, but we should make this automated IMHO. It would be best if the constructor checked if keys already exist, and in case they don't create them. Also, the example has not been updated with these methods.

I'm working on these changes and I'll be pushing here for further review

@simevo
Copy link
Collaborator Author

simevo commented Oct 26, 2018

Automated certificates generation could be useful for testing.

But for the WordPress plugin, once you installed and activated it, it is not configured: the information required to generate the metadata and the certificates (for example the organization name) is missing, and in a near future even the location where to look for / write the certificates would be unknown.

The idea drafted here is to have then the WordPress plugin enter an "unconfigured" state (does not generate metadata and SPID button does not work) until at least the data for the certificates has been filled in, and their generation has been manually requested.

@lorenzocattaneo lorenzocattaneo merged commit 178a7fc into master Oct 26, 2018
@lorenzocattaneo lorenzocattaneo deleted the feature/issue-65-certs branch October 26, 2018 19:22
@lorenzocattaneo lorenzocattaneo restored the feature/issue-65-certs branch October 31, 2018 14:51
@lorenzocattaneo lorenzocattaneo deleted the feature/issue-65-certs branch October 31, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants