peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

New token fetch method for Huawei. #152

Closed javierdelapuente closed 8 months ago

javierdelapuente commented 1 year ago

This change allows using this library for Huawei OAuth 2.0-based Authentication, which is very similar to Google.

It defines a new config client_credentials that follows the documentation stated in https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/oauth2-0000001212610981, using client_id and client_secret. It also includes by default the Huawei url.