athombv/node-homey-oauth2app

Question: oAuth with credentials

edwinvdpol opened this issue · 0 comments

Hi there,

What is the easiest / preferred way to implement the oAuth2 module with "client_credentials"?

I see in the code that it supports for example getTokenByCredentials, but when and how are these called?
Is there a possibility to use this module with for instance the credentials login pair view, and that this module will take care of the rest?

All it has to do, is fetching the access token with these credentials.
The rest can be the same as the default implementation (auth redirect), with the exception that CLIENT_ID and CLIENT_SECRET aren't needed.

-- Edwin