A
A
andry_vv2018-08-06 17:49:02
Single sign-on technology
andry_vv, 2018-08-06 17:49:02

How does SSO work on Tostra/Habré?

How does TM ID authentication work?
I looked towards SAML / CAS, they are based on a redirect, how can I avoid it and make SSO on Ajax requests?
There is a similar implementation on Yandex

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-08-06
@Sanasol

It works exactly like everywhere else, there are no ajax requests.
Everything about oauth is made normal.
toster -> tmid -> github -> tmid -> toster
You can partially avoid changing the page, but then a new tab will open anyway with a bunch of redirects.
To do this, write down the implementation of authorization using postMessage, more precisely, the communication of the window in which the authorization takes place with the main window is the original one.
Here is a complete example
https://github.com/cretueusebiu/laravel-nuxt
https://github.com/cretueusebiu/laravel-nuxt/blob/...

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question