☰
Login
Signup
Home
›
General
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
August 2018
_pr
July 2018
sujith
Feature request: ability to append context in login-url and retrieve in redirect_url
_pr
July 2018
edited July 2018
in
General
I have a use-case when I want to force re-login (receive new request-token) for some of the actions. But I don't find a way to come back to the previous context, as I was in the middle of something (and that action forced me to re-login) and want to continue.
If with login url:
https://kite.trade/connect/login?v=3&api_key=xxx
you can accept an arbitrary query parameter and return the same query parameter appended with static redirect-url. This way user can be returned back to the context.
Ex: The app will redirect user to
https://kite.trade/connect/login?v=3&api_key=xxx&context=mycontext
for login
The successful login will redirect user to the redirect-url, let's say,
https://mywebsite.com/kite-redirect/?request_token=xxxxxxxx&action=login&status=success&context=mycontext
Now kite-redirect module can process the redirect-url and handle the context.
Tagged:
login
Redirect URL
webapp
sujith
July 2018
You can use something like this
https://kite.trade/connect/login?v=3&api_key=xxx&redirect_params=params
.
The params have to be URL encoded query params like params = encodeURL(key1=value&key2=value).
sujith
July 2018
After successful redirect you will receive these params.
_pr
August 2018
Thanks a lot, this helps. The discussion can be closed now.
This discussion has been closed.
The params have to be URL encoded query params like params = encodeURL(key1=value&key2=value).