wwPageResponse::Authentication

Generic request for Authentication (HTTP 401 Status) by the server.

By default this creates a bare Status 401 request without any special protocol headers which forces the Web Server to request authentication for the client. This default is used by application based security solutions, such as User Security Authentication.

If llBasicAuth and/or llWindowsAuth are passed as true, the appropriate headers are added for that Basic Authentication or Windows Authentication respectively. You can use both in combination.

This request only generates a request for Authentication - it doesn't handle authentication flow or validation of users. If you need the actual Authentication functionality look into wwProcess::Authenticate().

o.Authentication(tcErrorText, llBasicAuth, llWindowsAuth)

Parameters

tcErrorText
Optional error text embedded into the response content. This ends up getting displayed in the browser. Can be HTML or plain text.

llWindowsAuth
Optional - if .T. adds the www-authenticate: Negotiate and www-authenticate: NTLM headers to request Windows authentication for the request.

llBasicAuth
Optional - if .T. adds the www-authenticate: Basic header to request basic authentication.


See also:

Class wwPageResponse

© West Wind Technologies, 1996-2021 • Updated: 01/09/20
Comment or report problem with topic