wxWebAuthChallenge Class Reference | wxWidgets

| Version: 3.2.11

Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
wxWebAuthChallenge Class Reference

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.2/wxWidgets3.2-3.2.11-1.x86_64/src/wxWidgets-3.2.11/interface/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);
}
wxSecretValue
Represents the value of a secret in wxSecretStore.
Definition secretstore.h:58
wxWebCredentials
Simple class containing the username and password to use for authenticating.
Definition webrequest.h:515
wxWebRequest::State_Unauthorized
@ State_Unauthorized
The request is currently unauthorized.
Definition webrequest.h:149

## Public Types
enum | Source { Source_Server , Source_Proxy }

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

## Member Enumeration Documentation

## ◆ Source

enum wxWebAuthChallenge::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