M
M
mitaichik2017-06-21 17:38:33
Yii
mitaichik, 2017-06-21 17:38:33

How to make cross-domain authorization?

Hello! Our project has a bunch of domains for each language: project.ru project.com, project.de, etc.
Now they wanted to make it so that when switching the language, it would switch to the appropriate domain. At the same time, you need to save authorization if the user has already been logged in.
How is this usually done? I googled, even I didn’t find anything sensible ....
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2017-06-21
@thewind

How did you google?
Multi domain session
shared login system options
not?
Well, as options - a single server for sessions and authorizations, or a redis server

A
Alexander, 2017-06-21
@Alexandr220

store the username id and token in cookies and session
pass it with a transition to another domain and each individual domain will simply check their authenticity

A
Alexey Skobkin, 2017-06-21
@skobkin

This is called SSO .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question