Jump to content
Sign in to follow this  
haibec

Solution Single Sign On for 2 service

Recommended Posts

Hi All!i have 2 Website and 2 Database . Now, i want use solution : user login on 1 Website and he can use function on that Website (don't need login on that website ). Please help me .

Share this post


Link to post
Share on other sites

Its possible, without a doubt. There are a couple of ways you can do this, it will primarily depend on your user requirements.Before I get into that, you need to understand that web services are stateless. That is to say that all they can do is pass information back and forth from one server to the next. Therefore, they have no way of retaining anything about each request being made. In other words, each request is a new user as far as it is concerned - unless each of your requests offer something - like a token you generated when the user logged in) - to identify the user.Options (in simple terms)a.) Gateway: The gateway method is pretty straight forward but has its limitations. Basically, this approach to single sign on is to force every link a user clicks to be pointed to a specific page on the other (destination) site. The link would be constructed such that it had information (a session ID of some wort) that would identify the other site of the identity of the person "coming over". The downside is that EVERY link on both sites that link to each be coded a certain way. If you already have a site in place, that would be a tedious job.b.) Seamless: this is trickier and takes more indepth understanding of your situation, but basically, you select a sever to be the "parent" where all others are "childeren". The parent would have web services that the children consume when they try to log in. Creditials are passed with each web service request, but the key is that when you log into either site, you are redierect to a page in the parent that sets you current session cookie. Your webs services, the use that token to get the information they nee.This is more complicated, but allows great flexibility. I'd prbably have to explain more, since I am falling asleep, but you should be able to get the picture.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...