Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 575175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:54:33+00:00 2026-05-13T13:54:33+00:00

I am in need of an authentication system that would work in harmony with

  • 0

I am in need of an authentication system that would work in harmony with the current authentication system my client’s server uses.

The current system works as follows:

  • A page requiring authentication invokes an in-house developed mod_auth Apache module in the .htaccess file.

  • The user is redirected to a generic log in page.

  • After entering valid credentials, a cookie is created, which has the IP address of the client, a public key, and other helpful info about the user, all base64 encrypted.

  • Any page requiring authentication after this point checks the public key and the requesting IP address. If the user’s IP has changed, they are redirected to the login screen. If the cookie is tampered with, they are redirected.

The benefit of the above system is that a cookie can not be used on another machine (other than on the same LAN, but other measures check against man-in-the-middle attacks), as the IP address won’t match.

The downside is that this method prevents the user’s session from being extended server-side. In other words, a server-side script can’t get information on behalf of the user since the IP address won’t match.

This limitation makes sense under most circumstances, as it avoids allowing the server from “stealing” the user’s cookie. However it also means that a Web Service can’t be protected using the same authentication system, since requests will always come from the server’s IP, never from the client (unless AJAX is used, which is a very limited usage of a web service).

What I would like is for the web service client (server-side) to pass the cookie to the web service server and have the web service server verify the authenticity of the cookie directly with the end-user’s client.

My basis for this is how sites like Stackoveflow use Open ID to check log-in status at the browser level without the end-user being involved unless the check fails.

A quick wikipedia search leads me to understand that the underlying system involved is a protocol called Yadis.

So I would like to know if I am missing any pieces to this puzzle and if I’m leaving myself open to major security flaws:

  • User logs in as normal
  • Page user requests needs web-service
  • Page passes user’s authentication cookie to web service
  • Web Service uses same cookie to request a generic “confirm authentication” page via user’s browser. (without user seeing this).
  • “confirm authentication” page returns a “user logged in” message or the browser opens a new window with log-in page.
  • Upon receiving the “all clear” message above, web service returns any info requested by original page that user is logged in to.

Am I missing any details? Is Yadis just a name give to this idea or will I need to install something to make sure it works correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:54:33+00:00Added an answer on May 13, 2026 at 1:54 pm

    The term “Yadis” can be a little murky because it’s referred to different things over the years, but more than anything it refers to the discovery phase of the protocol. That is, it answers this question: given an identifier (like http://keturn.example.com/ or xri://=keturn*example or whatever), what is the authentication server to use for this user? What version of the protocol does it support?

    Which, if I read your situation correctly, is not at all what you’re trying to address.

    What you describe, authorizing one web service to act on behalf of the server with another, is more the domain of what OAuth is meant to address. But if you’re stuck with your client’s currently implemented auth protocol, I’m not sure that helps you either. But it’s probably worth a look, it’s not dissimilar from the solution you propose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to configure 'Client certificate authentication' in Glassfish 3. I tried many scenarios
I am interested in a system that allows for distributed development with an authentication
Basically I need to serve files from a location that requires windows authentication. Instead
How would you implement a system with the following objectives: Manage authentication, authorization for
I need to build several Rails applications for one client. I would like to
I have a client/server application that runs on an intranet, and I have the
For reasons I would rather not discuss, I need to create a custom authentication
I need the following authentication script finished. I am weak at php/pdo so I
I need to add authentication to this function: function multiRequest($data, $options = array()) {
I'm planning on making some dynamic PHP websites and I need a free Authentication

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.