Auth
Class
constructor
parent_
class
scheme_
name
strength
name
authenticate
can_
authenticate
get_
authorization
get_
protection_
space
is_
authenticated
is_
ready
update
GJS API Reference
Soup-2.4
Soup
AuthClass
Class AuthClass
Hierarchy
AuthClass
Index
Constructors
constructor
Properties
parent_
class
scheme_
name
strength
name
Methods
authenticate
can_
authenticate
get_
authorization
get_
protection_
space
is_
authenticated
is_
ready
update
Constructors
constructor
new
Auth
Class
(
)
:
Soup
.
AuthClass
Returns
Soup
.
AuthClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
scheme_
name
scheme_
name
:
string
strength
strength
:
number
Static
name
name
:
string
Methods
authenticate
authenticate
(
auth
:
Soup
.
Auth
, username
:
string
, password
:
string
)
:
void
Parameters
auth:
Soup
.
Auth
username:
string
password:
string
Returns
void
can_
authenticate
can_
authenticate
(
auth
:
Soup
.
Auth
)
:
boolean
Parameters
auth:
Soup
.
Auth
Returns
boolean
get_
authorization
get_
authorization
(
auth
:
Soup
.
Auth
, msg
:
Soup
.
Message
)
:
string
Parameters
auth:
Soup
.
Auth
msg:
Soup
.
Message
Returns
string
get_
protection_
space
get_
protection_
space
(
auth
:
Soup
.
Auth
, source_uri
:
Soup
.
URI
)
:
string
[]
Parameters
auth:
Soup
.
Auth
source_uri:
Soup
.
URI
Returns
string
[]
is_
authenticated
is_
authenticated
(
auth
:
Soup
.
Auth
)
:
boolean
Parameters
auth:
Soup
.
Auth
Returns
boolean
is_
ready
is_
ready
(
auth
:
Soup
.
Auth
, msg
:
Soup
.
Message
)
:
boolean
Parameters
auth:
Soup
.
Auth
msg:
Soup
.
Message
Returns
boolean
update
update
(
auth
:
Soup
.
Auth
, msg
:
Soup
.
Message
, auth_header
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
)
:
boolean
Parameters
auth:
Soup
.
Auth
msg:
Soup
.
Message
auth_header:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Returns
boolean
Auth
Class
constructor
parent_
class
scheme_
name
strength
name
authenticate
can_
authenticate
get_
authorization
get_
protection_
space
is_
authenticated
is_
ready
update
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJTb3VwXzJfNC5Tb3VwLkF1dGhDbGFzcy5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiU291cF8yXzQuU291cC5BdXRoQ2xhc3MuaHRtbCNwYXJlbnRfY2xhc3MiLCJuYW1lIjoicGFyZW50X2NsYXNzIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiU291cF8yXzQuU291cC5BdXRoQ2xhc3MuaHRtbCNzY2hlbWVfbmFtZSIsIm5hbWUiOiJzY2hlbWVfbmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6IlNvdXBfMl80LlNvdXAuQXV0aENsYXNzLmh0bWwjc3RyZW5ndGgiLCJuYW1lIjoic3RyZW5ndGgiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZ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