php - Single user id and password to connect multiple application -


[scenario]
have 5 php5.3+ applications (eg: app-a, app-b, app-c, app-d , app-e) , running. here, each application has own login user-id , password.

[new requirement]
now, want implement single user-id , password login these applications (by using app-a). lets say: want login app-a usual , once login should able click through other application (b,c,d , e) clicking on icon on app-a (once login). and, user should not apple login through app-b or c or d or e. need connect via app-a.

[background]
-all of these application running on different domain on same server.
-admin able enable/disable app user

does has done similar or has suggestion please suggest.

this question , have done small research on question on different ways:

oauth:

after reading documentation , gone through many service providers not possible. oauth service provider gives consumer key , secret , check request coming domain , if same oauth consumer key used on different domain names doesn't work.

setting cookie multiple domains

simply, not possible set cookie without visiting domain means

thus, can not possible set cookie or use same consumer key , secret multiple domains

alternative ways

  1. use html5 web storage storing information , accessing information different domains possible.

  2. use ajax/curl sending request setting cookie different domains such example.com/session_cookie.php?info=xxxxx

  3. maintain single sub-domain/page domain login purpose across domains.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -