OAuth1Authorizer.for_authorization_domains


Description:

[ CCode ( has_construct_function = false ) ]
public OAuth1Authorizer.for_authorization_domains (string? application_name, List<AuthorizationDomain> authorization_domains)

Creates a new OAuth1Authorizer.

This function is intended to be used only when the default authorization domain list for a single Service, as used by OAuth1Authorizer, isn't suitable. For example, this could be because the OAuth1Authorizer will be used with multiple Service subclasses, or because the client requires a specific set of authorization domains.

The specified AuthorizationDomains are the ones the user will be requested to authorize access to on the page at the URI returned by request_authentication_uri.

The given application_name will set the value of application_name and will be displayed to the user on authentication pages returned by Google. If null is provided, the value of get_application_name will be used as a fallback.

Parameters:

application_name

a human-readable, translated application name to use on authentication pages, or null

authorization_domains

a non-empty list of AuthorizationDomains to be authorized against by the OAuth1Authorizer

Returns:

a new OAuth1Authorizer; unref with unref