Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

URI forward error #91

Open
gryg427 opened this issue Sep 30, 2020 · 3 comments
Open

URI forward error #91

gryg427 opened this issue Sep 30, 2020 · 3 comments

Comments

@gryg427
Copy link

gryg427 commented Sep 30, 2020

Hi folks,
I'm little bit stucked (actually for few days :-)) within authorization process.
I've installed duckdns and nginx add-ons a week ago, and my router port forwarding is set from outer duckdns 8088 to 443 inside. HTTPS approach to hass is going pretty well.

In Azure environment I set URI address as a https://:8088/api/o365, and in a configuration.yaml I'd set http: row only according this https://help.konnected.io/support/solutions/articles/32000023964-set-up-hass-io-with-secure-remote-access-using-duckdns-and-nginx-proxy (without any basic_url).

I'm not able (like a newbie) to find what is wrong, in every try there is only one answer - invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.

Can anybody help me? Some suggestion or hint? Probably there is a problem between a chair and a keyboard I suppose.
Really appreciated any hint ...
Thanks

@vania137
Copy link

Hi, im stucked too, but maybe this could help

https://github.com/PTST/O365-HomeAssistant

The reply URL specified in the request does not match the reply URLs configured for the application.

Please ensure that you have configured base_url in your http config https://www.home-assistant.io/integrations/http/#base_url and that you have added the correct reply url to your Azure app

@vania137
Copy link

vania137 commented Jan 23, 2021

Hi, im stucked too, but maybe this could help

https://github.com/PTST/O365-HomeAssistant

The reply URL specified in the request does not match the reply URLs configured for the application.

Please ensure that you have configured base_url in your http config https://www.home-assistant.io/integrations/http/#base_url and that you have added the correct reply url to your Azure app

I have found a solution

You have to set in configuration.yaml file

o365:
alt_auth_flow: true

Then redirect uri in your Azure app set to "https://login.microsoftonline.com/common/oauth2/nativeclient"

And finally open the notification in HA to login to your account

NOTE: in my case I was using the ID secret thats why i cannot finish the configurtation, if thats your case use the VALUE string instead

@GinjNinj
Copy link

GinjNinj commented Feb 7, 2021

@vania137 Thank you so much for this! LEGEND!

Been stuck for hours on this and your comment to use alt_auth_flow had it working in 2 mins haha

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants