Version: 3.3.0
wxWebAuthChallenge Class Reference

#include <wx/webrequest.h>

Detailed Description

Authentication challenge information available via wxWebRequest::GetAuthChallenge().

Use SetCredentials() to provide user credentials, e.g.

if ( request.GetState() == wxWebRequest::State_Unauthorized )
{
wxWebCredentials cred("me", wxSecretValue("s3krit"));
request.GetAuthChallenge().SetCredentials(cred);
}
Represents the value of a secret in wxSecretStore.
Definition: secretstore.h:58
Simple class containing the username and password to use for authenticating.
Definition: webrequest.h:524
@ State_Unauthorized
The request is currently unauthorized.
Definition: webrequest.h:158

Public Types

enum  Source {
  Source_Server ,
  Source_Proxy
}
 

Public Member Functions

Source GetSource () const
 Returns which source requested credentials with this challenge. More...
 
void SetCredentials (const wxWebCredentials &cred)
 Used to provide user credentials to the authentication challenge. More...
 

Member Enumeration Documentation

◆ Source

Enumerator
Source_Server 

The server requested authentication.

Source_Proxy 

A proxy requested authentication.

Member Function Documentation

◆ GetSource()

Source wxWebAuthChallenge::GetSource ( ) const

Returns which source requested credentials with this challenge.

◆ SetCredentials()

void wxWebAuthChallenge::SetCredentials ( const wxWebCredentials cred)

Used to provide user credentials to the authentication challenge.

See also
wxWebCredentials