Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Issue with customer state in redirect uri

    General Discussion
    1
    1
    6
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Savart last edited by

      Hello team,

      We have been trying to integrate Angel one into our advisory app so that our customers can directly place orders from our app to angel one.

      In the publisher login, the url takes custom state as per the docs:
      https://smartapi.angelone.in/publisher-login?api_key=xxx&state=statevariable

      but when the redirect uri is called after the user logs in, the state is not passed back, we are only getting the auth_token key which has client id enoded in it, but the custom state we are passing is missing.

      this is a sample url we generate for the customer to login :
      https://smartapi.angelone.in/publisher-login?api_key=XXXXX&state={"original_state"%3A+""%2C+"login_id"%3A+94%2C+"customer_id"%3A+142}

      I have also tried to just add a simple state like, directly state=random, but no matter what the redirect uri doesn't contain it.

      Please let us know if we are doing something wrong here.
      Also where do we change the configured redirect and postback uri?

      Regards,
      tech@Savart

      1 Reply Last reply Reply Quote 0
      • First post
        Last post