Lasso Soft Inc. > Home

[ web_request->httpAuthorization ]

Method

The [web_request->httpAuthorization] method returns a map of the all the authorization parameters and their values sent by the client to the web server.

  • Syntax
web_request->httpAuthorization
Examples
  • Beginner

Check for HTTP authentication

The code below will display "Success" if a user is authenticated to any of the web servers realms and "Access Denied" if they are not.

Code

if(web_request->httpAuthorization->find('username') == 'Anonymous') => {^
    'Access Denied'
else
    'Success'
^}

Result

Access Denied

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