Lasso Soft Inc. > Home

[ auth_group ]


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

The method requires one parameter which is the name of a group in Lasso security. If the current user belongs to that group then the page continues serving normally. Otherwise, the visitor is prompted with an authentication dialog. They will not be able to see the page 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_Group] method will usually be one of the first methods in a file. The group can alternately be specified as an array. If the current user belongs to any one of the groups listed then they will be allowed to view the page. If the group parameter is omitted then a user who belongs to any group other than "Any User" will be allowed to view the page.

  • Syntax

auth_group(array('group1', 'group2'))

	-realm = string, 
	-BASIC = boolean, 
	-nonce = string, 
	-opaque = string, 
	-stale = boolean, 
	-transparent = boolean, 
	-noabort = boolean, 
	-errorresponse = string, 
	-noresponse = boolean
  • Beginner

To restrict a page to users in a specific Lasso group:

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



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