kivra/oauth2_client — pull request #2 by mtornwall (2012-12-29 13:43:24+00:00)
Title: Add optional scope parameter for retrieving token.

Added retrieve_access_token/5 that also accepts a Scope parameter
containing the desired scope of the resulting access token.

I haven't been able to test this with the client credentials flow.
It seems to be working both with and without explicit scope when using the password flow.