PHP SSO Detailed
SSO has three modes: ① cross-subdomain Single sign-on ② fully cross single-point domain login ③ Station Group shared identity authentication
The first mode is simple, just set the domain of the cookie to the root domain of multiple apps.
The second way, is also very simple, that is, the application of the authentication address is replaced with the same authentication address, each time to
How can I solve the SSO problem in PHP ??? Single sign-on, such as www.aaa.com and www.bbb.com. to achieve aaa login, the bbb website can also log on to the website to view a lot of information over the past two days. Basically, the user verification center is used to set up ticket, I implemented it. through the P3P cross-site consultation on the PHP SSO (single sign-on) solution ???
Single sign-on, such a
A single point of login (SSO) solution collected from the Internet ~
Single Sign On (SSO) is one of the most popular solutions for enterprise business integration. SSO is defined in multiple application systems. Users only need to log on once to access all mutually trusted application systems. It includes a mechanism for ing the main logon to other application
In the recent period, some customers have to perform SSO Single Sign-On.
I have previously designed a page specifically for clicking login. The address of the verification center can be modified in Web. config. In this way, if many customers use the same single sign-on request method, different customers only need to modify the address of the Verification Center in Web. config.
But the plan will never keep up with changes. User requirements are always
machinekey IntroductionMachineKey It is used to encrypt and decrypt Forms authentication Cookie data and view state data, in general, IIS automatically defaults to the Web site or each application to generate a unique machinekey, of course, you can also manually generate machinekey, usually by the formsauthentication action class to operate. Application cluster, SSO single Sign-onSSO: English full name Single sign on,
The example in this article describes the asp.net simple implementation of single sign-on (SSO) method. Share to everyone for your reference, specific as follows:
Single sign-on (Sign on, SSO) is one of the more popular solutions for enterprise business integration, and SSO enables users to access all trusted applications with only one login at a time in multipl
, Formsauthentication.encrypt (ticket)); Encrypt identity information and save to Cookie
cookie. Domain = ". zuowenjun.cn";
Second: Implementing SSO between the main application of the virtual directory and the child application
Copy Code code as follows:
The two more important attributes are name and protection. When the protection property is set to "all", the hash value is used to encrypt and verify that the data is stor
SSO English full name Single sign on, one-point login. SSO is a multi-application system in which users can access all trusted applications with only one login. When the user first accesses the application System 1, because has not logged in, will be booted to the authentication system to log in, according to the user provides the login information, the authentication system authenticates, if passes through
Specific implementation:1, add SingleSingOn.cs (this CS file can be downloaded online, and then ssohost change to its own address) 2,controller Add Login method: Singlesingon SSO = new Singlesingon ()//New A SSO object public ActionResult Login () {String identity = Sso. Signin (); If the login succeeds, return the work number if (identity!= null) {returns redire
most of the options are represented by Tokenstore (back-end storage or local encoding).(1) When validating tokens in the request, use Remotetokenservices to invoke the/auth/check_token in Authserver.(2) share the database, use JDBC to store and verify tokens, and avoid accessing authserver.(3) using the JWT signature method, the resource server checks itself directly, without any intermediary media.Five, OAuth clientAfter the client obtains the token and wants to invoke the downstream service A
SSO Introduction
Defined:
The traditional single site login access authorization mechanism is: After the successful login to save the user information in the session, SessionID saved in the cookie, each access needs to access the resources (URL) to determine whether the current session is empty, for empty words jump to login interface login, Allow access if not empty.
Single sign-on is a multi-site shared login access authorization mechanism that a
The page is invoked mainly by recursive invocation and dynamically creating a script tag.
Above this SSO cross domain writes the cookie a section of JS script (recommendation) is the small series to share to everybody's content, hoped can give everybody a reference, also hoped that everybody supports the cloud habitat community.
First, preface
Small in the previous blog to introduce you to the use of single sign-on evolution process, the last step when the small series to show you the distributed architecture. The single sign-on system is used. This blog continues to follow a blog to achieve a single sign-on system. Second, the environment preparation
Eclipse
Redis Three, Single sign-on flowchart
This is a simple single sign-on flowchart, on that Taobao, when we improve the Taobao home page is not logged in, click on t
1. First give a detailed configuration connection http://thorprojects.com/blog/archive/2008/08/02/moss-single-sign-on-setup-step-by-step.aspx
2. for the above link, in step 4th of manage settings for Single Sign-On, there are two places where you need to enter an account. The first one is usually a user, the second is a group.
3. After the configuration is complete, runCodeSometimes a 2147217900 error is reported. The following two steps are required to solve the problem:
1. Set HKEY_LOCAL_MA
The Open Web SSO project provides core identity services as the infrastructure of security components to achieve transparent single-point login. The main goal of this project is the web layer, which provides the foundation for seamless integration of different web-based applications. These applications can enable different identity libraries and platforms, for example, based on web or application server. This project provides Sun Java (tm) System Acce
=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/82/97/wKioL1dcPQ-wnJJUAABJi9QOteA116.png "height=" 598 "/>24.Skype for business online can also be logged in normally.650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0p
Single Sign-On (sign-on)1. Single sign-on in the same domainWhen you log in, set the domain of the cookie.2. Cross-domain Single sign-onThe point is, how to save the login ID on the browser side.Festival map: (Brain Tonic)Three systems:A.aaa.comB.bbb.comS.sso.comHypothetical condition: The user first opens the system without disabling cookies.1, the user opens the browser to access a system requires login Authorization page, a system returns redirection information.2, redirect to the s system, t
CAS login will pass the login back to the client in XML format but after the callback the client fails to parse correctlySecond, the solutionServicevalidatecontroller.javaPrivate Modelandview Generatesuccessview (finalfinal String Proxyiou) { string name= Assertion.getprimaryauthentication (). Getprincipal (). GetId (); Final New Modelandview (this. Successview); Success.addobject (Model_name, Urlencoder.encode (NAME)); Success.addobject (model_assertion, assertion); Success.ad
In a word, it is possible to bring different domain names back to the same authentication information.The way to do this is to put one of the authentication information stored in a different domain under a cookie after landing,When verifying whether or not to log in, the cookie is validated, and if it is a subdomain, this is set to the top of the scope directly with the cookie.The following is a different domain name, which is the use of script function, respectively, to visit each page, such as
having to log in again:
1. Enter the base system URL, the terminal local no ST information
2,3.CAs client primarily protects protected resources through filter redirection to CAS Server
4.CAS issuing notes St to browser based on local TGT
5. The browser accesses the underlying system again, carrying St
6. go to CAS service again to verify that the authentication is successful and the underlying system can be accessed without logging in.
Iv. SummaryCAS compare
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.