OAuth2 to use current request header (#43668)

This commit is contained in:
Paulus Schoutsen 2020-11-27 08:55:34 +01:00 committed by GitHub
parent 69c2818c56
commit f9fa24950b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 258 additions and 90 deletions

View file

@ -90,8 +90,8 @@ class ToonLocalOAuth2Implementation(config_entry_oauth2_flow.LocalOAuth2Implemen
"""Initialize local Toon auth implementation."""
data = {
"grant_type": "authorization_code",
"code": external_data,
"redirect_uri": self.redirect_uri,
"code": external_data["code"],
"redirect_uri": external_data["state"]["redirect_uri"],
"tenant_id": self.tenant_id,
}