prepare_refresh_token_form


Description:

public abstract void prepare_refresh_token_form (Source source, string refresh_token, HashTable<string,string> form)

Sets additional form parameters to be used in the POST request when requesting to refresh an access token.

The default implementation sets some values too, namely "refresh_token", "client_id", "client_secret" 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

refresh_token

a refresh token to be used

form

form parameters to be used in the POST request