lwestenberg / homeassistant_bold

Home Assistant integration for Bold Smart Lock
MIT License
37 stars 10 forks source link

Installation OAuth not working #30

Closed ReneReneB closed 3 months ago

ReneReneB commented 3 months ago

Hello everyone,

I had already installed the integration. However, the lock has not been supported for the last 2 weeks.

I have therefore decided to delete the integration and reinstall it.

However, I encountered a problem with the OAUth verification. Unfortunately, there are no instructions in the documentation on how to proceed. What do I have to do here?

Bold 2 Bold 1

Thanks and best regards René

tim427 commented 3 months ago

@ReneReneB could you try to login from a full desktop browser?

My guess, the Bold App, is opening the OAuth request and is handled differently in comparison with the normal OAuth flow.

ReneReneB commented 3 months ago

I tried the desktop browser first. I was redirected to the Bold website, entered my email, password and the pin sent to me. But I got an error message there too

tim427 commented 3 months ago

More info regarding the "an error message"? Screenshot?

ReneReneB commented 3 months ago

thats the link to the bold website: https://auth.boldsmartlock.com/verify/email?mode=login image

tim427 commented 3 months ago

@ReneReneB are you 100% sure you are using this OAuth flow, starting with HomeAssistant??

I've just tested it, multiple times, and it works flawless.

I'm highly in doubt, because your URL contains client_id=Bold+OAuth -> this integration uses a different client_id=HomeAssistant...

On this stage, I would expect something like; https://auth.boldsmartlock.com/integration?client_id=HomeAssistant&response_type=code&redirect_uri=https%3A%2F%2Faccount-link.nabucasa.com%2Fauthorize_callback&state=<CUT>

ReneReneB commented 3 months ago

no I´m not 100% sure that I´m using the correct OAuth flow. I did not find any instructions and tried to make it myself. In the first step, I added new application credentials: image image

Integration: Bold OAuth Client ID: self-created text OAuth Client ID: self-created text

I entered this information in the bold login window under “Add integration”

tim427 commented 3 months ago

You are trying to add manually "Application credentials"?

That's not the way...

Please, just add "Bold" as an integration (After you've installed the integation via HACS or manually adding bold to the config/custom_components/ folder), by pressing that big blue button "Integation Hinzufugen", find Bold and follow the steps.

ReneReneB commented 3 months ago

But what do I have to enter here? image I don't know what OAuth Client ID and OAuth Client Secret is and what I should insert This window pops After I press the blue button " Integration hinzufügen" and Chose bold integration

ReneReneB commented 3 months ago

I have not only restarted Home Assistant but also my PC. The login page looked different now. For whatever reason. But I was able to install the integration successfully.