Rest.OAuth2Proxy.new
Description: Reference for Rest.OAuth2Proxy.new

### Constructor

# Rest OAuth2Proxynew

#### Declaration [src]

    RestOAuth2Proxy*
    rest_oauth2_proxy_new (
      const gchar* authurl,
      const gchar* tokenurl,
      const gchar* redirecturl,
      const gchar* client_id,
      const gchar* client_secret,
      const gchar* baseurl
    )

#### Description [src]

Create a new `RestOAuth2Proxy`.

#### Parameters

`authurl` | `const gchar*`
| No description available.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`tokenurl` | `const gchar*`
| No description available.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`redirecturl` | `const gchar*`
| No description available.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`client_id` | `const gchar*`
| No description available.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`client_secret` | `const gchar*`
| No description available.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`baseurl` | `const gchar*`
| No description available.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `RestOAuth2Proxy`
| A newly created `RestOAuth2Proxy`.
| The caller of the function takes ownership of the data, and is responsible for freeing it.