AuthManager

class AuthManager(pointer: <Error class: unknown class><<Error class: unknown class>>) : SessionFeature

HTTP client-side authentication handler.

#SoupAuthManager is the iface@SessionFeature that handles HTTP authentication for a class@Session.

A #SoupAuthManager is added to the session by default, and normally you don't need to worry about it at all. However, if you want to disable HTTP authentication, you can remove the feature from the session with method@Session.remove_feature_by_type or disable it on individual requests with method@Message.disable_feature.

You can use this with method@Session.remove_feature_by_type or method@Message.disable_feature.

(Although this type has only been publicly visible since libsoup 2.42, it has always existed in the background, and you can use g_type_from_name ("SoupAuthManager") to get its alias@GObject.Type in earlier releases.)

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val soupAuthManagerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val soupSessionFeaturePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Clear all credentials cached by @manager.

Link copied to clipboard
fun useAuth(uri: <Error class: unknown class>, auth: Auth)

Records that @auth is to be used under @uri, as though a WWW-Authenticate header had been received at that URI.