<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OAuth on WebNotes</title><link>https://v2.webnotes.in/tags/oauth/</link><description>Recent content in OAuth on WebNotes</description><generator>Hugo</generator><language>en-IN</language><lastBuildDate>Fri, 19 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://v2.webnotes.in/tags/oauth/index.xml" rel="self" type="application/rss+xml"/><item><title>How to fix mobile browser issue with Kite Connect login</title><link>https://v2.webnotes.in/how-to-fix-mobile-browser-issue-with-kite-connect-login/</link><pubDate>Wed, 20 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-fix-mobile-browser-issue-with-kite-connect-login/</guid><description>&lt;p&gt;If Kite Connect OAuth login fails on mobile browser:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Conflict-of-interest disclosure.&lt;/strong&gt; This guide is published by the WebNotes Editorial Team for informational purposes and is written independently. WebNotes operates a Zerodha account-opening referral programme, disclosed on the pages that carry the referral link; this guide does not carry it and earns no referral commission from the procedure described here.&lt;/p&gt;
&lt;aside class="callout callout--note" role="note"&gt;
 &lt;strong class="callout__label"&gt;Prerequisites&lt;/strong&gt;
 &lt;div class="callout__body"&gt;&lt;ul&gt;
&lt;li&gt;Active Kite Connect subscription with &lt;code&gt;api_key&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;A mobile device with a modern browser&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/aside&gt;

&lt;h2 id="step-by-step-procedure"&gt;Step-by-step procedure&lt;/h2&gt;
&lt;p&gt;Five steps per the procedure infobox.&lt;/p&gt;</description></item><item><title>Kite Connect OAuth login flow</title><link>https://v2.webnotes.in/kite-connect-oauth-login-flow/</link><pubDate>Wed, 20 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/kite-connect-oauth-login-flow/</guid><description>&lt;p&gt;&lt;strong&gt;Kite Connect uses OAuth 2.0&lt;/strong&gt; for authentication. End-to-end flow:&lt;/p&gt;
&lt;h2 id="1-app-registration"&gt;1. App registration&lt;/h2&gt;
&lt;p&gt;Create app at &lt;a href="https://kite.trade/"&gt;kite.trade&lt;/a&gt;
:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set redirect URL.&lt;/li&gt;
&lt;li&gt;Get &lt;code&gt;api_key&lt;/code&gt; and &lt;code&gt;api_secret&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="2-user-authorization"&gt;2. User authorization&lt;/h2&gt;
&lt;p&gt;Redirect user to:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;https://kite.zerodha.com/connect/login?v=3&amp;amp;api_key=&amp;lt;api_key&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;User logs into Zerodha; on success, Zerodha redirects to your &lt;code&gt;redirect_url&lt;/code&gt; with a &lt;code&gt;request_token&lt;/code&gt; query parameter.&lt;/p&gt;
&lt;h2 id="3-exchange-request-token-for-access-token"&gt;3. Exchange request token for access token&lt;/h2&gt;
&lt;p&gt;POST to &lt;code&gt;/session/token&lt;/code&gt; with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;api_key&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;request_token&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;checksum&lt;/code&gt; (SHA-256 of &lt;code&gt;api_key + request_token + api_secret&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Response includes &lt;code&gt;access_token&lt;/code&gt;, valid for the trading day.&lt;/p&gt;</description></item><item><title>How to generate the request_token and access_token on Kite Connect</title><link>https://v2.webnotes.in/how-to-generate-kite-connect-tokens/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-generate-kite-connect-tokens/</guid><description>&lt;p&gt;Every &lt;a href="https://v2.webnotes.in/kite-connect-api/"&gt;Kite Connect API&lt;/a&gt;
 session requires a fresh &lt;code&gt;access_token&lt;/code&gt; that is valid for the current trading day. Generating an &lt;code&gt;access_token&lt;/code&gt; involves a two-step OAuth-style flow: the user logs in through Zerodha&amp;rsquo;s browser-based consent screen to obtain a &lt;code&gt;request_token&lt;/code&gt;, and the server then exchanges that &lt;code&gt;request_token&lt;/code&gt;, along with a cryptographic checksum, for an &lt;code&gt;access_token&lt;/code&gt;. This guide explains both steps using the official &lt;a href="https://v2.webnotes.in/how-to-basic-python-kiteconnect-script/"&gt;kiteconnect Python SDK&lt;/a&gt;
.&lt;/p&gt;
&lt;aside class="callout callout--key" role="note"&gt;
 &lt;strong class="callout__label"&gt;Prerequisites&lt;/strong&gt;
 &lt;div class="callout__body"&gt;&lt;ul&gt;
&lt;li&gt;An active Kite Connect subscription and a valid &lt;code&gt;api_key&lt;/code&gt; and &lt;code&gt;api_secret&lt;/code&gt;. See &lt;a href="https://v2.webnotes.in/how-to-generate-kite-connect-api-key/"&gt;How to generate a Kite Connect API key&lt;/a&gt;
.&lt;/li&gt;
&lt;li&gt;Python 3.8 or later installed.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;kiteconnect&lt;/code&gt; package installed: &lt;code&gt;pip install kiteconnect&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The redirect URL registered in your app configured on the developer console.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/aside&gt;

&lt;aside class="callout callout--info" role="note"&gt;
 &lt;strong class="callout__label"&gt;Conflict-of-interest disclosure&lt;/strong&gt;
 &lt;div class="callout__body"&gt;WebNotes is an independent knowledge base. This guide is not sponsored by Zerodha or any third party.&lt;/div&gt;
&lt;/aside&gt;

&lt;h2 id="how-the-token-flow-works"&gt;How the token flow works&lt;/h2&gt;
&lt;p&gt;Kite Connect&amp;rsquo;s authentication is modelled on OAuth 2.0 with a custom checksum step. The flow has three actors: your application, the user&amp;rsquo;s browser, and Zerodha&amp;rsquo;s API server.&lt;/p&gt;</description></item></channel></rss>