prepare_get_token_form


Description:

public abstract void prepare_get_token_form (Source source, string authorization_code, HashTable<string,string> form)

Sets additional form parameters to be used in the POST request when requesting access token after successfully obtained authorization code.

The default implementation sets some values too, namely "code", "client_id", "client_secret", "redirect_uri" and "grant_type". These parameters are always provided, even when the interface implementer overrides this method.

The form hash table expects both key and value to be newly allocated strings, which will be freed together with the hash table or when the key is replaced.

Parameters:

this

an OAuth2Service

source

an associated Source

authorization_code

authorization code, as returned from extract_authorization_code

form

form parameters to be used in the POST request