Add registration module erro

14 views
Skip to first unread message

caoyili...@gmail.com

unread,
Oct 16, 2017, 7:23:19 AM10/16/17
to SimpleSAMLphp
When I add a third-party registration module, what is the version number of the composer.phar require vendor / simplesamlphp-module-mymodule version? I added this way
php composer.phar require geant / simplesamlphp-module-selfregister 1.14

But the error is as follows: You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.
Excuse me where is the operation wrong?

Peter Schober

unread,
Oct 16, 2017, 7:46:32 AM10/16/17
to SimpleSAMLphp
* caoyili...@gmail.com <caoyili...@gmail.com> [2017-10-16 13:23]:
> When I add a third-party registration module, what is the version number of
> the composer.phar require vendor / simplesamlphp-module-mymodule version? I
> added this way
> php composer.phar require geant / simplesamlphp-module-selfregister 1.14

This seems to be more of a composer question than one about
SimpleSAMLphp, esp since you're trying to use a third-party module not
created by the SSP project.
Anyway: Seems there are no tags on the specific project you're trying
to use https://github.com/GEANT/simplesamlphp-module-selfregister so
AFAIU you can't require a specific version (as none exist).

You could try to require version "dev-master" instead, but note that
this is frowned upon:
https://getcomposer.org/doc/faqs/why-are-unbound-version-constraints-a-bad-idea.md
If you do that be sure to track the composer.lock file so that you can
have repeatable installs/builds/deploys, that will then probably
contain the specific commit SHA1 hash at the time of checkout.

(Note that's without taking into account the error message you got,
which I don't know anything about. So while I think the above is true
it may still not fix your current error.)

-peter

caoyili...@gmail.com

unread,
Oct 17, 2017, 6:36:07 AM10/17/17
to SimpleSAMLphp

 

My composer.json file is like this:
{
    "require": {
        "geant/simplesamlphp-module-selfregister": "dev-master"
    }
}

What is the reason for this?

Peter Schober

unread,
Oct 17, 2017, 6:55:58 AM10/17/17
to SimpleSAMLphp
* caoyili...@gmail.com <caoyili...@gmail.com> [2017-10-17 12:36]:
> <https://lh3.googleusercontent.com/-TNzkCc5Bpyo/WeXcXSScvvI/AAAAAAAAAAM/2EJGSGpbW1gGsxovsi4K6i5u3XL_6uvSgCLcBGAs/s1600/error.png>
[...]
> What is the reason for this?

The reason is given in the image of the plain text error message you
posted above (so I can't copy/paste it for you and I sure as hell
won't type it off your image). If you cannot understand that very
specific and clear error message you have to ask someone to explain it
to you.

And why are you installing a module for an OpenID provider in the
first place? OpenID is dead.

-peter

caoyili...@gmail.com

unread,
Oct 17, 2017, 7:17:40 AM10/17/17
to SimpleSAMLphp
Did not you hear it clearly? What should I do?

在 2017年10月16日星期一 UTC+8下午7:23:19,caoyili...@gmail.com写道:

caoyili...@gmail.com

unread,
Oct 17, 2017, 7:59:39 AM10/17/17
to SimpleSAMLphp

Now the error is the case, is this simplesamlphp-module-openidprovider module version is wrong?



在 2017年10月16日星期一 UTC+8下午7:23:19,caoyili...@gmail.com写道:
When I add a third-party registration module, what is the version number of the composer.phar require vendor / simplesamlphp-module-mymodule version? I added this way

Jaime Perez Crespo

unread,
Oct 17, 2017, 8:26:34 AM10/17/17
to simple...@googlegroups.com
Hi,

On 17 Oct 2017, at 13:59 PM, caoyili...@gmail.com wrote:
> Now the error is the case, is this simplesamlphp-module-openidprovider module version is wrong?

Please, copy and paste the error here, instead of making a screenshot of it. It’s much easier to read and to quote, copy or paste if needed.

What version of SimpleSAMLphp are you using? The OpenID modules were removed from the standard distribution long time ago.

--
Jaime Pérez
UNINETT / Feide

jaime...@uninett.no
jaime...@protonmail.com
9A08 EA20 E062 70B4 616B 43E3 562A FE3A 6293 62C2

"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost

caoyili...@gmail.com

unread,
Oct 17, 2017, 9:38:03 PM10/17/17
to SimpleSAMLphp
I downloaded simplesamlphp version number is 1.14,
This is my error code:


[samltest@www simplesamlphp]$ php  composer.phar  require geant/simplesamlphp-module-selfregister dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - simplesamlphp/simplesamlphp-module-openidprovider v1.0 requires openid/php-openid dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2 -> satisfiable by openid/php-openid[dev-master].
    - simplesamlphp/simplesamlphp-module-openidprovider v1.0 requires openid/php-openid dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2 -> satisfiable by openid/php-openid[dev-master].
    - Removal request for openid/php-openid == 9999999-dev
    - Installation request for simplesamlphp/simplesamlphp-module-openidprovider (installed at v1.0) -> satisfiable by simplesamlphp/simplesamlphp-module-openidprovider[v1.0].


Installation failed, reverting ./composer.json to its original content.
[samltest@www simplesamlphp]$ 



在 2017年10月16日星期一 UTC+8下午7:23:19,caoyili...@gmail.com写道:
When I add a third-party registration module, what is the version number of the composer.phar require vendor / simplesamlphp-module-mymodule version? I added this way

Peter Schober

unread,
Oct 18, 2017, 6:34:10 AM10/18/17
to SimpleSAMLphp
* Peter Schober <peter....@univie.ac.at> [2017-10-17 12:56]:
> And why are you installing a module for an OpenID provider in the
> first place? OpenID is dead.

You could start with answering that question, if you want others to
help you fix your problem.

-peter

Jaime Perez Crespo

unread,
Oct 18, 2017, 10:23:14 AM10/18/17
to simple...@googlegroups.com
Peter, that’s not what’s happening here, I’m afraid. You can clearly see he’s trying to install the selfregister module, but then the OpenID errors pop up. This is probably because something changed in the dependencies we rely on. In SSP 1.14.X, the OpenID modules are already included in the standard distribution (the tar.gz package we make), and as such, they are also included as composer dependencies.

I don’t know why is this broken because the errors don’t make much sense, but that’s also a typical problem with composer (meaningless errors).

Peter Schober

unread,
Oct 18, 2017, 10:36:25 AM10/18/17
to simple...@googlegroups.com
* Jaime Perez Crespo <jaime...@uninett.no> [2017-10-18 16:23]:
> You can clearly see he’s trying to install the selfregister module,
> but then the OpenID errors pop up. This is probably because
> something changed in the dependencies we rely on.

It wasn't apparent to me from the composer output provided that the
OpenID dependency did /not/ come from the OP's composer.json, so I
assumed the OpenID dependency was desired. Sorry if that added to the
confusion,
-peter

Jaime Perez Crespo

unread,
Oct 18, 2017, 11:18:15 AM10/18/17
to simple...@googlegroups.com
No worries Peter, it took me a while too to understand why the h*** was OpenID a dependency…

As I said previously, composer leaves a lot to be desired when it comes to error reporting.

On 18 Oct 2017, at 16:36 PM, Peter Schober <peter....@univie.ac.at> wrote:
> It wasn't apparent to me from the composer output provided that the
> OpenID dependency did /not/ come from the OP's composer.json, so I
> assumed the OpenID dependency was desired. Sorry if that added to the
> confusion,

Reply all
Reply to author
Forward
0 new messages