masterofskull
New Member
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 \[code\].htaccess\[/code\] 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.
- 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.