Re: [authenticate]
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23673
interpreted = N
texte = >I guess I should be more specific about what I am trying to do.>>My site has a database of bibliographic details about journals, a database>of the articles which comprise the journals and a database of subscribers to>either individual articles or complete journals.>>Each entry in the subscriber database has a username and password,and what's the name of the fields for these values? Username and Password? User and Pass? Somehting else?>the entry>contains data which gives the subscriber access to only those journals and>articles for which they have been granted viewing rights.What kind of 'data'? The sku of each item he has access to?>I had thought that I could use the [authenticate] tag to capture the>username and password,Authenticate looks at the username and password value passed from the browser, but it can never be used anywhere else except inside a showif context, and you also have to remember that unless the showif evaluates to False, the authentication dialog box will come up - every time -- preventing you from doing anything else.>which I could then use in a search context to pull up>list of those journals and articles for which the subscriber has viewing>rights. But when I try to build a template with the [authenticate] tag and a>subsequent search context I get the 'Not authorized' error.The solution could be as simple as changing the field names in the subscriber database, or putting [authenticate] inside a showif context, or using a [search] or a [lookup] instead of [authenticate].Why don't you use the built-in users.db instead of a separate subscriptions dabatase, then use the protect tag in your templates?Sincerely,Ken GromeWebDNA Consultant
Associated Messages, from the most recent to the oldest:
>I guess I should be more specific about what I am trying to do.>>My site has a database of bibliographic details about journals, a database>of the articles which comprise the journals and a database of subscribers to>either individual articles or complete journals.>>Each entry in the subscriber database has a username and password,and what's the name of the fields for these values? Username and Password? User and Pass? Somehting else?>the entry>contains data which gives the subscriber access to only those journals and>articles for which they have been granted viewing rights.What kind of 'data'? The sku of each item he has access to?>I had thought that I could use the
[authenticate] tag to capture the>username and password,Authenticate looks at the username and password value passed from the browser, but it can never be used anywhere else except inside a showif context, and you also have to remember that unless the showif evaluates to False, the authentication dialog box will come up - every time -- preventing you from doing anything else.>which I could then use in a search context to pull up>list of those journals and articles for which the subscriber has viewing>rights. But when I try to build a template with the
[authenticate] tag and a>subsequent search context I get the 'Not authorized' error.The solution could be as simple as changing the field names in the subscriber database, or putting
[authenticate] inside a showif context, or using a
[search] or a
[lookup] instead of
[authenticate].Why don't you use the built-in users.db instead of a separate subscriptions dabatase, then use the protect tag in your templates?Sincerely,Ken GromeWebDNA Consultant
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
PCS Frames (1997)
Make sure I understand this??? (1997)
2.0.1 new commands and contexts (1997)
WebCat2 as a chat server? (1997)
Setting up WebCatalog with Retail Pro data (1996)
Cross-platform file names? (2000)
no template caching (1997)
[protect admin] (1997)
[WebDNA] Sort Direction matches the written to file order (2015)
NT version and O'reily's WebSite (1997)
PIXO support (1997)
Bug in 4.5 - Needs to be fixed ASAP. (2002)
unable to launch acgi in WebCat (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
how to add to triggers.db (1998)
Mass Mail (2000)
Multiple security dbs (1997)
Stumped (1999)
Fun with Dates - finally resolved but.... (1997)
RE: Help name our technology! (1997)