I this possible on hass.io? I have a valid refresh token and following the dev doc but I still get “unsupported_grant_type”.
Any ideas, or how this is supposed to work? thanks.
(this is a test with postman for example)
I this possible on hass.io? I have a valid refresh token and following the dev doc but I still get “unsupported_grant_type”.
Any ideas, or how this is supposed to work? thanks.
(this is a test with postman for example)
grant type
Is probably Bearer
Have a look at this
https://requests-oauthlib.readthedocs.io/en/latest/oauth2_workflow.html
this is the dev doc i’m refering to but it isn’t working for me, not sure if it’s home assistant only and not hass.io
grant_type=refresh_token&
refresh_token=IJKLMNOPQRST&
client_id=https%3A%2F%2Fhass-auth-demo.glitch.me
From your Postman screenshot it appears you are passing the parameters in the query string and not the body. Try this:
bingo! thanks I really appreciate your help with this @Steven_Rollason
I’m using the browser hassConnection object for my extension, and as it always runs in the content of the user having the brower open I didn’t want to deal with long lived access tokens, though I may try websockets for my next extension.