javascript - How do you authenticate the same user to multiple domains using CORS? -


i have 3 webapps each running on different domains under cors-enabled tomcat 7 distribution. how use cors authenticate user on 3 domain without having type {username,password} 3 times?

currently user has retype credentials 3 times data appear each of 3 domains.

i have read through this post , seems person authenticating 1 domain (bavarians).

it not possible share authentication between sites on different domains using basic authentication directly, there may tricks if sub-domains see:

https://serverfault.com/questions/653131/is-it-possible-to-share-a-basic-auth-session-between-several-aliases-in-nginx

another alternative switch federation using security token service. users redirected sts first domain hit , need log in, if go domain redirect sts again no login needed long session had not expired.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -