OTP based SSO login

Dear Fyers Support,

Please refer:

https://fyers.in/notice-board?p=478

Have you changed anything in API flow? Why do we have test using preprod? Isn’t that verification to be done by your team itself???

2FA is already followed by API users as it uses security tokens. So the recent NSE circular is relevant for Web and Mobile users only. API users should NOT be impacted at all.

Kindly clarify.

The existing system is both knowledge factors So we have removed passwords entirely, now you can log in with -
—Possession factor: OTP
—Knowledge factor: PIN/Biometric

Therefore, to make the transition seamless for all API users we have released a sandbox environment to test the new login flow with their respective applications as there’re users who’ve automated their login flow and existing production API services will switch to the new flow by September 30.

In this case, A security token is a physical or digital device that provides two-factor authentication (2FA) for a user to prove their identity in a login process. Alternatives are OTP (Sms) TOTP ( google authenticator, authy) i.e. Possession factor, which means the user needs to enter these.

But, I get your concern, our APIs are OAuth 2 specifications to that effect we are in the process of implementing refresh_tokens on successful login which means Access_tokens have a validity of 1 day Refresh_tokens have a validity of 15 days when the access_token expires you can use the refresh_token to get a new access token for the next 15 days. We will be releasing this feature on Tuesday But The user will have to log in once every 15 days with a complete 2-factor authentication flow.

Fyers Team, How can i access sandbox to test out new login through API, Right now I use username password and PIN to generate access token.

I am hoping Tuesday onwards we would be able to get refresh token with expiry details for the new login thru API.

Please provide link to the sandbox. Please answer with a Yes or No. Does the prior method of login work. If not have you updated the Fyers API version 2 with how to implement the new login flow.

Hi,

Great to know that a refresh_token feature will be available. Will the API V2 documentation be updated once the refresh_token feature is available?

Thank you.

I have successfully developed an 100% automated solution in Python for this new circular. If anyone is interested DM me.

While enabling TOPT in My Account > Manage Account, Just copy your auth code (instead of scanning) and keep it safe forever. When you require OTP pass it in the following url like this. Example below

Request - http://35.85.61.158:9898/otp/MVERQSTLXFX3L3I7G7P3L5PZCSPGLTVH

Json response - {“success”: true, “otp”: 707573}

Note : Replace the last param (in bold) in the request url with your auth code.