jasny / sso

Simple Single Sign-On for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run examples???

rahulnaik2894 opened this issue · comments

Download the source code.But anyone tell me how to run this on localhost .

try and try

A little bit late but:

  • git clone repo
  • composer install
  • and execute the 4 lines that you see on the example.

BTW just a recomendation instead of

php -S localhost:9000 -t examples/server/
export SSO_SERVER=http://localhost:9000 SSO_BROKER_ID=Alice SSO_BROKER_SECRET=8iwzik1bwd; php -S localhost:9001 -t examples/broker/
export SSO_SERVER=http://localhost:9000 SSO_BROKER_ID=Greg SSO_BROKER_SECRET=7pypoox2pc; php -S localhost:9002 -t examples/broker/
export SSO_SERVER=http://localhost:9000 SSO_BROKER_ID=Julias SSO_BROKER_SECRET=ceda63kmhp; php -S localhost:9003 -t examples/ajax-broker/

better use:

$ php -S localhost:9000 -t examples/server/
$ env SSO_SERVER=http://localhost:9000 SSO_BROKER_ID=Alice SSO_BROKER_SECRET=8iwzik1bwd;php -S localhost:9001 -t examples/broker/
$ env SSO_SERVER=http://localhost:9000 SSO_BROKER_ID=Greg SSO_BROKER_SECRET=7pypoox2pc php -S localhost:9002 -t examples/broker/
$ env SSO_SERVER=http://localhost:9000 SSO_BROKER_ID=Julias SSO_BROKER_SECRET=ceda63kmhp php -S localhost:9003 -t examples/ajax-broker/

For running it i was using foreman but you can open 4 bash or use & or nohup .....