<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Redirect to google home app when user disagree on consent page (authorization code flow) in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Redirect-to-google-home-app-when-user-disagree-on-consent-page/m-p/630285#M7372</link>
    <description>&lt;P&gt;I have created the a oauth&amp;nbsp; web page UI that works with &lt;STRONG&gt;authroization code&lt;/STRONG&gt; flow&lt;BR /&gt;First&amp;nbsp; as soon as user clicks on works with google on google home app, I opens up my authorize url&amp;nbsp; displaying my UI.&lt;BR /&gt;In UI im showing a consent popup which has agree and cancel button.&lt;BR /&gt;when user click on Agree he will allowed to enter phone number and proceed with flow. Im using one redirect uri to share authorization code.&lt;BR /&gt;But when user click &lt;STRONG&gt;cancel&lt;/STRONG&gt; how can i redirect user back to the google home app ?&lt;BR /&gt;Does google provide any redirection link to redirect user back google home app ?&lt;BR /&gt;&lt;BR /&gt;I have refer documention i couldnt find one that elaborates on this.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 16:21:26 GMT</pubDate>
    <dc:creator>MrTest444555</dc:creator>
    <dc:date>2024-07-09T16:21:26Z</dc:date>
    <item>
      <title>Redirect to google home app when user disagree on consent page (authorization code flow)</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Redirect-to-google-home-app-when-user-disagree-on-consent-page/m-p/630285#M7372</link>
      <description>&lt;P&gt;I have created the a oauth&amp;nbsp; web page UI that works with &lt;STRONG&gt;authroization code&lt;/STRONG&gt; flow&lt;BR /&gt;First&amp;nbsp; as soon as user clicks on works with google on google home app, I opens up my authorize url&amp;nbsp; displaying my UI.&lt;BR /&gt;In UI im showing a consent popup which has agree and cancel button.&lt;BR /&gt;when user click on Agree he will allowed to enter phone number and proceed with flow. Im using one redirect uri to share authorization code.&lt;BR /&gt;But when user click &lt;STRONG&gt;cancel&lt;/STRONG&gt; how can i redirect user back to the google home app ?&lt;BR /&gt;Does google provide any redirection link to redirect user back google home app ?&lt;BR /&gt;&lt;BR /&gt;I have refer documention i couldnt find one that elaborates on this.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:21:26 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Redirect-to-google-home-app-when-user-disagree-on-consent-page/m-p/630285#M7372</guid>
      <dc:creator>MrTest444555</dc:creator>
      <dc:date>2024-07-09T16:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect to google home app when user disagree on consent page (authorization code flow)</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Redirect-to-google-home-app-when-user-disagree-on-consent-page/m-p/631373#M7392</link>
      <description>&lt;P&gt;Google Home app does not provide a specific redirection link for navigating back to the Google Home app after a user cancels during the OAuth consent flow. However, you can handle both success and cancellation scenarios using your &lt;CODE&gt;redirect_uri&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;When the user clicks "cancel" in your consent popup, you can redirect them back to the specified &lt;CODE&gt;redirect_uri&lt;/CODE&gt; with a query parameter indicating that the action was canceled. This way, your system can detect the cancellation and respond appropriately.&lt;/P&gt;
&lt;P&gt;Moreover, instead of providing a "cancel" button, consider just adding text that informs the user about the implications of signing in. For example:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;"By signing in, you are authorizing Google to control your devices."&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This approach helps streamline the user experience and ensures they are aware of the consequences of their actions without needing an explicit cancel option.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 16:32:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Redirect-to-google-home-app-when-user-disagree-on-consent-page/m-p/631373#M7392</guid>
      <dc:creator>arm_dpe</dc:creator>
      <dc:date>2024-07-15T16:32:18Z</dc:date>
    </item>
  </channel>
</rss>

