472,791 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

extension Class to Auth

I have an extension Class to Auth and I'm looking for some folks to hammer
on it a bit and give feed back.

Class: AuthUser
- add user (well, Auth does that now, so its gone)
- remove user (well, Auth does that now, so its gone)
- change password (well, Auth does that now, so its gone)
- case sensitive ID match - some DBS don't
- limit login attempts (as far as it can go on a browser)
- return to original page after login

next ver will have groups and level handling.

If your interested, please contact me offline.

Thanks

Walter
Jul 17 '05 #1
4 2237
In article <jd*********************@newssvr28.news.prodigy.co m>, jsWalter wrote:
I have an extension Class to Auth and I'm looking for some folks to hammer
on it a bit and give feed back.

Class: AuthUser
- add user (well, Auth does that now, so its gone)
- remove user (well, Auth does that now, so its gone)
- change password (well, Auth does that now, so its gone) - case sensitive ID match - some DBS don't
The place to handle this is in the class that implements Auth and
uses a DB.
- limit login attempts (as far as it can go on a browser)
Perhaps you can log all attempts somewhere, and then count how many
attempts faild. Based on that you can issue a delay...
- return to original page after login


An Authentication class does not need to know about pages. All it
has to do is authenticate users.
--
Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>
Jul 17 '05 #2
Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:2i************@uni-berlin.de...
In article <jd*********************@newssvr28.news.prodigy.co m>, jsWalter

wrote:
I have an extension Class to Auth and I'm looking for some folks to hammer on it a bit and give feed back.

Class: AuthUser
- add user (well, Auth does that now, so its gone)
- remove user (well, Auth does that now, so its gone)
- change password (well, Auth does that now, so its gone)

- case sensitive ID match - some DBs don't


The place to handle this is in the class that implements Auth and
uses a DB.


Yes, that was where I orginally "fixed" this.

But the maintainers didn't think it was an issue so my "patch" was denied.

So, I added it to my extension.

- limit login attempts (as far as it can go on a browser)


Perhaps you can log all attempts somewhere, and then count how many
attempts faild. Based on that you can issue a delay...


This count is kept in the session. And if you try to log in before the
"timeout" length is done, you get the same message (or jumo to "your"
message page)

Yes, I understand this is not rock solid security. But, it's a start, and
I'm hoping someone can enlighten me on how to tighten this down a bit more.

- return to original page after login


An Authentication class does not need to know about pages. All it
has to do is authenticate users.


Exactly correct, thus this "extension" to the PEAR::Auth Class. This sits on
top of Auth, which handles the authentication process just fine.

This extension handles the other mundane processes needed to create a site
passed on authentication.

This does not replace Auth, it just adds to it.

So I take it for your comments your not interested in looking at this and
giving constructive comments.

Thanks for your thoughts.

Walter
Jul 17 '05 #3
In article <bz*****************@newssvr33.news.prodigy.com> , jsWalter wrote:
Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:2i************@uni-berlin.de...
Perhaps you can log all attempts somewhere, and then count how many
attempts faild. Based on that you can issue a delay...


This count is kept in the session. And if you try to log in before the
"timeout" length is done, you get the same message (or jumo to "your"
message page)


I suggested to do the counting per account and global on the
server-side. Because, i don't think a hacker will be nice enough to
store your cookie :o)

An Authentication class does not need to know about pages. All it
has to do is authenticate users.


Exactly correct, thus this "extension" to the PEAR::Auth Class. This sits on
top of Auth, which handles the authentication process just fine.

This extension handles the other mundane processes needed to create a site
passed on authentication.

This does not replace Auth, it just adds to it.


Imho, i think you are mistaken here. If you are building a class(1) that
also can redirect etc, you have a has-a relationship with auth.

In the case where you implement the functions of auth, fe using a
database your class(2) has a is-a relationship with auth.

Giving a class(1) with an has-a relationship to class(2). And
your class(2) has an is-a relationship with pear::auth.

--
Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>
Jul 17 '05 #4
>Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:2i************@uni-berlin.de...
In article <bz*****************@newssvr33.news.prodigy.com> , jsWalter wrote:
Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:2i************@uni-berlin.de...
Perhaps you can log all attempts somewhere, and then count how many
attempts faild. Based on that you can issue a delay...


This count is kept in the session. And if you try to log in before the
"timeout" length is done, you get the same message (or jumo to "your"
message page)


I suggested to do the counting per account and global on the
server-side. Because, i don't think a hacker will be nice enough to
store your cookie :o)


mm, yes. Another example of my limited knowledge of sessions.

I tried the "standard" Auth example page (I made) with cookies off.

It never got off the login page. I tried hitting a secondary page, it jumped
to login page, and never left it.

I tried the same process with my Auth extension. Same result.

The login limit was never triggered. So, I need to "add" a server side
tracker as well.

thanks for the idea.
An Authentication class does not need to know about pages. All it
has to do is authenticate users.


Exactly correct, thus this "extension" to the PEAR::Auth Class. This sits on top of Auth, which handles the authentication process just fine.

This extension handles the other mundane processes needed to create a site passed on authentication.

This does not replace Auth, it just adds to it.


Imho, i think you are mistaken here. If you are building a class(1) that
also can redirect etc, you have a has-a relationship with auth.


Sorry, you lost me here.

"you have a has-a relationship"

Sorry, I can't grok what this means.

I am building a class that can redirect, check login count (once I fix it),
and will have user access privilege features (soon).

In the case where you implement the functions of auth, fe using a
database your class(2) has a is-a relationship with auth.
My class is built on top of Auth, so Auth can take care of all the
authentication issues and I can focus on the other things.

My current examples use a DB, but, by using Auth, it can handle other
"containers" as well.

Giving a class(1) with an has-a relationship to class(2). And
your class(2) has an is-a relationship with pear::auth.


Ok, I really don't follow this. Sorry.

Thanks for your ideas.

Walter
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
2
by: sam | last post by:
Hi, I've written the following static class definition : #ifndef __AUTH__ #define __AUTH__ #include <iostream> #include <string> #include <fstream>
0
by: dex | last post by:
Hi, I'm trying use a webservice with PHP5 soap extension in WSDL mode. I generated the php classes using wsdl2php. The problem is that 'auth' member of loginRequest (witch is a complex type)...
4
by: stroudg2 | last post by:
Situation: I have been tasked to provide a non-intrusive solution to allow .NET web services to grab an incoming SOAP header and process the credentials stored within in such a way that a...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.