Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Authentication form

$
0
0
Re: Authentication form
Web Connection 5.0
Re: Authentication form
03/06/2012
01:15:40 PM
3G60SF99P Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None

Not sure I follow what you're trying to do.

Process.Authenticate() will force an authentication dialog if you're not logged in and you've set up requirements for logging in. Those requirements need to be set up in your Process class, not your form in order for Process.Authenticate to work.

+++ Rick ---



Dear Rick,
I would like to show an authentication form by loading a web page. About authentication, your help says "The form is self-contained and keeps the current URL alive", but unfortunately I am able to show an authentication form.
I tried your example on a webpage with an lblMessage, but nothing happens.
Please could you explain?
Thank you very much

<code="vfp">
*** Basic UserSecurity
cAuthenticationMode = "UserSecurity"

*** Class used for UserSecurity style authentication
cAuthenticationUserSecurityClass = "wwUserSecurity"

*** A user object for the authenticated user
oUserSecurity = null

*** The name of the user that was authenticated
cAuthenticatedUser = ""

*****************************************************************
* OnLoad (empy form)
****************************************
FUNCTION OnLoad()

IF !Process.Authenticate()
RETURN
ENDIF

this.lblMessage.Text = Process.cAuthenticatedUser + " " + ;
Process.oUserSecurity.oUser.Fullname


ENDFUNC
* Onload



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles