Thank you so much!

So like Richard, you're running Apache anonymously and off-loading authentication to the app stack. I'm starting to see a pattern. :D



-----Original Message-----
From: B Stone [mailto:bvstone@xxxxxxxxx]
Sent: Friday, January 31, 2020 9:32 AM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WEB400] Apache authentication efficiency

How I do it...

1. Set up user in a validation list (*VLDL) with user and password. This is usually validated through email and their account isn't active until the click a link with a token (and IP, etc) in it to check against.
2. When they log on, validate against the validation list.
3. If it's good, generate a unique session ID/token and an expiration.
Store it in a file (with IP, and other info) in a file to match it to the ID. Put the token in a cookie.
4. Each request is validated against the token from the cookie (and IP address, etc).

Don't forget to set up a "forgot my password" link. Validation lists you can't retrieve the password, you can only validate against it to see if the one entered is correct.

If you wanted to use OSS (node, etc) I bet there are built in token/oauth features you could use.

You've signed up for things before online, no doubt (like this list, FB, Linked in, etc) , so you should be pretty familiar with the high level process.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #15 <https://www.bvstools.com/mailtool.html>: The ability to add a Footer to each email sent using an IFS stream file.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.