Lasso Soft Inc. > Home

[ Auth_Prompt ]

Method

[Auth_Prompt] alters the current HTTP response header with either a Basic or Digest authentication request.

[Auth_Prompt] is used internally by the [Auth], [Auth_Admin], [Auth_Group], [Auth_User], and [Auth_Custom] methods.

The type of authentication can be selected using -Basic=True/False. By default the authentication method selected in Site Administration is used. The realm for either type of authentication can be set using -Realm (defaults to Lasso Security).

If -Basic is false and the default method set in Lasso Administration is Digest, Digest authentication will be used.

Digest authentication has additional parameters:

-Nonce which specifies a one-time value that is passed to the browser and back in the authentication response (defaults to [Lasso_UniqueID]).

-Stale allows the digest authentication to be made stale so the browser re-prompts for authentication.

By default the [Auth_Prompt] method issues an [Abort] after it constructs the new HTTP response header. The -NoAbort keyword instructs the method not to [Abort] so tags that come after it can run.

By default the [Auth_Prompt] method replaces the current HTML response with a simple HTML page saying that authentication has been requested. Most browsers do not display this HTML. The -ErrorResponse parameter allows the built-in response to over-ridden with any HTML.

  • Syntax
Auth_Prompt(
	-Basic=False, 
	-Realm='MyRealm'
)

Auth_Prompt(
	-Realm='MyRealm',
	-Nonce=Lasso_UniqueID, 
	-Stale=True
)

Auth_Prompt(
	-realm = string, 
	-BASIC = boolean, 
	-nonce = string, 
	-opaque = string, 
	-stale = boolean, 
	-transparent = boolean, 
	-noabort = boolean, 
	-errorresponse = string, 
	-noresponse = boolean
)
Examples

No examples found

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