multidomain-sso | Quick example of a PHP multi-domain browser single-sign-on
kandi X-RAY | multidomain-sso Summary
kandi X-RAY | multidomain-sso Summary
Quick example of a PHP multi-domain browser single-sign-on
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generates and propagates the JavaScript code for the given URLs .
- Authenticates the user using the given credentials .
- Deauthenticate user .
- Check if authentication is authenticated
- Logs the user with the given credentials
- Get the tokens
- Reads tokens from the request
- Logs the user out .
- Checks if the session exists
- Set an array of tokens .
multidomain-sso Key Features
multidomain-sso Examples and Code Snippets
Community Discussions
Trending Discussions on multidomain-sso
QUESTION
I have multiple subdomains and they all use the same database with the same user table.
When I login to a.domain.com I want also to be logged in to b.domain.com, etc.
I've found multidomain-sso (https://github.com/0k/multidomain-sso) but our problem is that we can have up to 100 subdomains, and I'm afraid that the approach of mutlidomain-sso will slow the login process, because it visits every subdomain through AJAX.
How can I login to one subdomain and be logged in to the other 100 subdomains also?
...ANSWER
Answered 2019-Feb-08 at 16:56login is based on cookie and session data . you need to set php session id(PHPSESSID) to set in a cookie with main domain. you can login in main domain or set your cookie to access your domain and subdomains.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install multidomain-sso
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page