GObject.Object
Soup.AuthDomain
Soup.AuthDomainBasic
Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupAuthDomainBasic |
Class : | AuthDomainBasic |
Extends: | Soup.AuthDomain |
Properties | Defined By | |
---|---|---|
add_path : String
|
Soup.AuthDomain | |
auth_callback : void*
|
Soup.AuthDomainBasic | |
auth_data : void*
|
Soup.AuthDomainBasic | |
filter : void*
|
Soup.AuthDomain | |
filter_data : void*
|
Soup.AuthDomain | |
generic_auth_callback : void*
|
Soup.AuthDomain | |
generic_auth_data : void*
|
Soup.AuthDomain | |
parent : Soup.AuthDomain
read only
|
Soup.AuthDomainBasic | |
proxy : gboolean
|
Soup.AuthDomain | |
realm : String
|
Soup.AuthDomain | |
remove_path : String
|
Soup.AuthDomain |
Method / Constructor | Defined By | |
---|---|---|
new Soup.AuthDomainBasic
(Object properties)
Create a new Soup.AuthDomainBasic
Create a new Soup.AuthDomainBasic
|
||
Checks if msg contains appropriate authorization for domain to
accept it.
Checks if msg contains appropriate authorization for domain to
accept it. Mirroring soup_auth_domain_covers(), this does not check whether or not domain authorized. This is used by SoupServer internally and is probably of no use to anyone else. fact it has authenticated. NULL otherwise.
|
Soup.AuthDomain | |
add_path
(String path)
:
none
Adds path to domain, such that requests under path on domain's
server will require authentication (unless overridden by soup_auth_domain_remove_path() or soup_auth_domain_set_filter()).
Adds path to domain, such that requests under path on domain's
server will require authentication (unless overridden by soup_auth_domain_remove_path() or soup_auth_domain_set_filter()). You can also add paths by setting the SOUP_AUTH_DOMAIN_ADD_PATH property, which can also be used to add one or more paths at construct time.
|
Soup.AuthDomain | |
Sets the callback that domain will use to authenticate incoming
requests.
Sets the callback that domain will use to authenticate incoming
requests. For each request containing authorization, domain will invoke the callback, and then either accept or reject the request based on callback's return value. You can also set the auth callback by setting the SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK and SOUP_AUTH_DOMAIN_BASIC_AUTH_DATA properties, which can also be used to set the callback at construct time.
|
Soup.AuthDomain | |
challenge
(Message msg)
:
none
Adds a "WWW-Authenticate" or "Proxy-Authenticate" header to msg,
requesting that the client authenticate, and sets msg's status accordingly.
Adds a "WWW-Authenticate" or "Proxy-Authenticate" header to msg,
requesting that the client authenticate, and sets msg's status accordingly. This is used by SoupServer internally and is probably of no use to anyone else.
|
Soup.AuthDomain | |
Checks if msg authenticates to domain via username and
SoupAuthDomainGenericAuthCallback.
Checks if msg authenticates to domain via username and
SoupAuthDomainGenericAuthCallback.
|
Soup.AuthDomain | |
Checks if domain requires msg to be authenticated (according to
its paths and filter function).
Checks if domain requires msg to be authenticated (according to
its paths and filter function). This does not actually look at whether msg or not it needs to be. This is used by SoupServer internally and is probably of no use to anyone else.
|
Soup.AuthDomain | |
Sets the callback that domain will use to authenticate incoming
requests.
Sets the callback that domain will use to authenticate incoming
requests. For each request containing authorization, domain will invoke the callback, and then either accept or reject the request based on callback's return value. You can also set the auth callback by setting the SOUP_AUTH_DOMAIN_DIGEST_AUTH_CALLBACK and SOUP_AUTH_DOMAIN_DIGEST_AUTH_DATA properties, which can also be used to set the callback at construct time.
|
Soup.AuthDomain | |
get_realm
()
:
String
Gets the realm name associated with domain
Gets the realm name associated with domain
|
Soup.AuthDomain | |
remove_path
(String path)
:
none
Removes path from domain, such that requests under path on
This is not simply an undo-er for soup_auth_domain_add_path(); it can be used to "carve out" a subtree that does not require authentication inside a hierarchy that does.
Removes path from domain, such that requests under path on
This is not simply an undo-er for soup_auth_domain_add_path(); it can be used to "carve out" a subtree that does not require authentication inside a hierarchy that does. Note also that unlike with soup_auth_domain_add_path(), this cannot be overridden by adding a filter, as filters can only bypass authentication that would otherwise be required, not require it where it would otherwise be unnecessary. You can also remove paths by setting the SOUP_AUTH_DOMAIN_REMOVE_PATH property, which can also be used to remove one or more paths at construct time.
|
Soup.AuthDomain | |
Adds filter as an authentication filter to domain.
Adds filter as an authentication filter to domain. The filter
gets a chance to bypass authentication for certain requests that would otherwise require it. Eg, it might check the message's path in some way that is too complicated to do via the other methods, or it might check the message's method, and allow GETs but not PUTs. The filter function returns TRUE if the request should still require authentication, or FALSE if authentication is unnecessary for this request. To help prevent security holes, your filter should return TRUE by default, and only return FALSE under specifically-tested circumstances, rather than the other way around. Eg, in the example above, where you want to authenticate PUTs but not GETs, you should check if the method is GET and return FALSE in that case, and then return TRUE for all other methods (rather than returning TRUE for PUT and FALSE for all other methods). This way if it turned out (now or later) that some paths supported additional methods besides GET and PUT, those methods would default to being NOT allowed for unauthenticated users. You can also set the filter by setting the SOUP_AUTH_DOMAIN_FILTER and SOUP_AUTH_DOMAIN_FILTER_DATA properties, which can also be used to set the filter at construct time.
|
Soup.AuthDomain | |
Sets auth_callback as an authentication-handling callback for
authenticated via a domain-specific auth callback (eg, SoupAuthDomainDigestAuthCallback), the generic auth callback will be invoked.
Sets auth_callback as an authentication-handling callback for
authenticated via a domain-specific auth callback (eg, SoupAuthDomainDigestAuthCallback), the generic auth callback will be invoked. See SoupAuthDomainGenericAuthCallback for information on what the callback should do.
|
Soup.AuthDomain | |
|
Soup.AuthDomain |
None |