7563 Views    -    6 Replies


Username Post: Login-in with FM8        (Topic#173482)
Your continued generosity and support of FMForums is greatly appreciated.
stuj1026 
journeyman
Posts: 214

Loc: USA
Post Rank (AVG):
            


FMP: 7
OS: Windows XP
Skill: Intermediate



Tweet This! Tweet This Post!
01-26-06 07:19 AM - Post#191812     - Post Rank:             


The new forms based login is great but we have run into a small problem.

In FMP7 when logging into IWP a box used to come up asking for lagin and password. We also had some of our databases that bypassed the login and went directly to the database logging in as a guest.

With FMP8 I cant seem to bypass the login. When clicking the database we want It will always bring me to the form based login screen where I can choose guest.

Is there a way to go directly to the database bypassing the form..

Thanks for all who could help.

Stu











This Post:
Client: 7  OS: Windows XP
cms7912 
newbie
Posts: 1



FMP: 8
OS: Mac OS X Tiger
Skill: Intermediate



Tweet This! Tweet This Post!
   Welcome cms7912's first post!
02-04-06 07:19 PM - Post#193194    
    In response to stuj1026

This may help --

You can deep-link directly to the database from another webpage. When on the IWP opening page it lists the databases. Right-click and copy the link to the database you want. Such as:
http://127.0.0.1/fmi/iwp/cgi?-db=web%20user&-s...

Hope this helps,

CMS










John May - Point In Space 
Kung Fu Master
Posts: 394
John May - Point In Space

Loc: Carrboro, NC
Post Rank (AVG):
            


FMP: 11 Advanced
OS: Mac OS X Snow Leopard

Member: TechNet, FBA
Skill: Expert



Tweet This! Tweet This Post!
02-05-06 08:45 AM - Post#193244     - Post Rank:             
    In response to cms7912

With FMSA8, this now only works if Guest is the only user in the database that has IWP access.

- John
John May : President
Point In Space Internet Solutions
http://www.pointinspace.com/

Professional FileMaker Hosting with MySQL, PHP and Lasso
FBA & TechNet Member / LPA Premiere Partner











Pat Monks 
novice
Posts: 9

Loc: Seattle, WA
Post Rank (AVG):
            


FMP: Server 8
OS: Mac OS X Panther
Skill: Intermediate



Tweet This! Tweet This Post!
   This is Pat Monks's second post.
03-01-06 09:16 PM - Post#196810     - Post Rank:             
    In response to stuj1026

Hi Stu,

I am fighting the same problem that you describe in your post. In IWP 8 you must always face the login dialog UNLESS the Guest account is the ONLY account in the file with IWP privileges. This means that it is not possible to breeze in with a no-login Guest account and then later relogin up to a higher level account with web privileges. This is too bad because that's exactly what is needed for most sites.

I am working to solve this but I have yet to get it to work correctly. Here is my plan:

Create a separate "landing pad" file with the Guest account being the ONLY account with IWP privileges. Make your IWP custom home page simply a redirect to this file. This "landing pad" file will accept a redirected user without an ugly login dialog popping up. Opening this file triggers a script that adds or enables a new "GuestPlus" account with web privileges and then uses the Relogin script step to assume its identity. Using its "GuestPlus" credentials the script transfers into the main solution file which has a range of accounts with various web privileges including the "GuestPlus". Hopefully this all happens within a couple of seconds under script control. After wandering around the public areas of your site as an esteemed "GuestPlus" a qualifed user could enter a more secure area after typing an account name and password into the first login dialog of his visit.

In very rough terms the perform script upon opening this "landing pad" file would do this:

Enable Account [Account Name: "GuestPlus" ; Activate ] ***Add or Activate the new Account***
Re-Login [Account Name: "GuestPlus" ; Password "GuestPlus" ; Nodialog ]
Open File ["MainWebsite"]
Enable Account [Account Name: "GuestPlus" ; Deactivate ] ***Reset for next user to come along***

At present I am not smart enough to actually make this work and I am not so young anymore and can't learn real fast. If you or someone with more smarts than I is able to mock up working files I would appreciate a post knowing how you got it to work.

Thanks for pondering this.
Pat Monks
Seattle, WA
206 343-0942
production@nikkomedia.com











This Post:
Client: 8  OS: Mac OS X Panther
John May - Point In Space 
Kung Fu Master
Posts: 394
John May - Point In Space

Loc: Carrboro, NC
Post Rank (AVG):
            


FMP: 11 Advanced
OS: Mac OS X Snow Leopard

Member: TechNet, FBA
Skill: Expert



Tweet This! Tweet This Post!
03-02-06 04:47 AM - Post#196833     - Post Rank:             
    In response to Pat Monks

Here's another option:


Force-authenticate with guest:

<http://www.yourdomain.com/fmi/iwp/cgi?acct=guest&login=Login&-authdb>

then, modify your IWP home page to detect for www.yourdomain.com
(using JavaScript) and rewrite to the direct address for your
database:

<http://www.yourdomain.com/fmi/iwp/cgi?-db=databasename&-startsession>


You can use separate secondary domains (db1.yourdomain.com,
db2.yourdomain.com...) to detect against if you need to specify
different databases to bounce to.


However, if the forced authentication is used again though, then it
won't normally clear the session first until the browser is
restarted, and instead of properly authenticating the main domain is
just gone to instead.

So, if you use the secondary domain tip above, you can just make an
index.html page that clears the session cookie, then re-visits the
forced authentication URL. Here's how I did it in Lasso:

[cookie_set: 'http-session'='', -expires='-1', -path='/fmi/iwp']
<html><head>
<meta http-equiv="refresh"
content="0;URL=http://www.yourdomain.com/fmi/iwp/cgi?acct=guest&login=Login&-authdb">
</head><body></body></html>


Got it? =)

- John
John May : President
Point In Space Internet Solutions
http://www.pointinspace.com/

Professional FileMaker Hosting with MySQL, PHP and Lasso
FBA & TechNet Member / LPA Premiere Partner











Pat Monks 
novice
Posts: 9

Loc: Seattle, WA
Post Rank (AVG):
            


FMP: Server 8
OS: Mac OS X Panther
Skill: Intermediate



Tweet This! Tweet This Post!
   This is Pat Monks's fourth post.
03-02-06 11:39 AM - Post#196885     - Post Rank:             
    In response to John May - Point In Space

Hi John,

Thank you for your reply outlining the force-authentication approach to logging a guest into an IWP enabled file.

I am not an experienced web developer, so I did not completely understand how to make use of the force-authentication URL that you described in the beginning. Would that sit in the IWP home page as well? Could I supply that to our ISP as the routing for our domain name?

Thanks,
Pat Monks










Your continued generosity and support of FMForums is greatly appreciated.
hony707 
newbie
Posts: 1

Post Rank (AVG):
            


FMP: 4
OS: Windows XP

Member: FBA
Skill: Intermediate

Certified:
     

FUGA

Tweet This! Tweet This Post!
   Welcome hony707's first post!
05-05-10 12:19 AM - Post#355822     - Post Rank:             
    In response to Pat Monks

informative post
642-971 and 642-972 exam guide 642-973 and 642-974











Icon Legend Permissions Topic Options
Print Topic

Email Topic

7563 Views
Welcome Guest...
Enter your username and password to login. If you do not have a username you can register one here

Username

Password

Remember me. Help



Forgot Password...


Quick Links
Recent Posts
Active Topics
No Replies
Recent Files
Functions & Scripts
FileMaker Pro Help
FileMaker on Twitter
FileMaker Marketplace

Custom Search

Find FileMaker Developers

Don't have time to wait,
hire a developer now!

Recent Members
Welcome them to our community!
Find FileMaker Jobs

Want a new career?
Find your new job now!

Joy of Tech
Latest Joy of Tech!

Recent Topics
Recent Hot Topics
Contribute
With your generosity we can make some real magic happen!. Support your favorite online FileMaker community...
FM Forums.com


Click here...


Or a Donation of any amount.


Thanks for your support!

Active Blogs
0 Recent blogs:
People to Post Lately in this Topic
stuj1026
cms7912
John May - Point In Space
Pat Monks
hony707
FM Forums Advertisers


FusionBB™ Version 3.0 FINAL | ©2003-2010 InteractivePHP, Inc.
Execution time: 0.809 seconds.   Total Queries: 94   Zlib Compression is on.
All times are . Current time is 09:00 AM
Content ©1996-2008 Ocean West Consulting, Inc. All Rights Reserved
Ocean West Consulting, Inc. can not and will not be held responsible for any of the contents in this site.
FM Forums™ is a trademark of Ocean West Consulting, Inc an independent entity, not affiliated with FileMaker Inc.
FileMaker® is a registered trademark of FileMaker Inc.
Top