ClientLoginAuthorizer.for_authorization_domains


Description:

[ CCode ( has_construct_function = false ) ]
public ClientLoginAuthorizer.for_authorization_domains (string client_id, List<AuthorizationDomain> authorization_domains)

Creates a new ClientLoginAuthorizer.

The client_id must be unique for your application, and as registered with Google. This function is intended to be used only when the default authorization domain list for a single Service, as used by ClientLoginAuthorizer, isn't suitable. For example, this could be because the ClientLoginAuthorizer 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 logged in to using the provided username and password when authenticate is called. Note that the same username and password will be used for all domains.

Parameters:

client_id

your application's client ID

authorization_domains

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

Returns:

a new ClientLoginAuthorizer, or null ; unref with unref