Lasso Soft Inc. > Home

[ Auth_User ]

Method

[Auth_User] checks the current authentication values which were sent with the HTTP header.

The method requires one parameter which is the name of a user in Lasso security. If the current user matches the username and password defined in Lasso security then the page continues serving normally. Otherwise, the visitor is prompted with an authentication dialog. They will not be able to see the format file which contains this method unless they provide the specified username and password.

The optional realm parameter will be used by the client's Web browser to identify how the username and password will be used. If the same realm parameter is used on multiple pages the browser will re-transmit the username and password automatically without re-prompting the client. The realm defaults to 'Lasso Security'.

The [Auth_User] method will usually be one of the first methods called in a format file. The user can alternately be specified as an array. If the current user matches any of the users listed then they will be allowed to view the page. If the user parameter is omitted then any defined user in Lasso security will be allowed to view the page.

  • Syntax
Auth_User('username')

Auth_User(array('user1', 'user2'))

Auth_User(
	'username', 
	-realm = string, 
	-BASIC = boolean, 
	-nonce = string, 
	-opaque = string, 
	-stale = boolean, 
	-transparent = boolean, 
	-noabort = boolean, 
	-errorresponse = string, 
	-noresponse = boolean
)
Examples
  • Beginner

To restrict a page to a specific Lasso user:

Use the [Auth_User] method with the name of the desired user as a parameter. Each visitor will need to enter the username and password of the Lasso user specified in order to view the contents of the Web page.

Code

Auth_User('Lasso_User_Name')

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft