Soup.Auth.get_authorization

### Method

# Soup Authget_authorization

#### Declaration [src]

    char*
    soup_auth_get_authorization (
      SoupAuth* auth,
      SoupMessage* msg
    )

#### Description [src]

Generates an appropriate “Authorization” header for `msg`.

(The session will only call this if `soup_auth_is_authenticated()` returned `TRUE`.).

#### Parameters

`msg`

  Type: `SoupMessage`

  The `SoupMessage` to be authorized.

  The data is owned by the caller of the method.

#### Return value

Type: `char*`

The “Authorization” header, which must be freed.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.