Migrated from Redmine #606 | Author: Cho Optical Status: Closed | Priority: High, I’m very impatient | Created: 2020-11-16
hi,
When I call getUserToken, then I received an error message: You are not allowed to use this application when HIPAA Plugin is enabled. I enabled HIPAA for setting session timeout, and I have a program to retrieve booking list by using simplybook API. Please help.
When I call getUserToken, then I received an error message: You are not allowed to use this application when HIPAA Plugin is enabled. I enabled HIPAA for setting session timeout, and I have a program to retrieve booking list by using simplybook API. how to set session time out and also need to use API for getBookings? Please help. Thanks!
Yes,
now you will get SMS to your phone. You have to use this code in 2fa step.
You can setup GA and generate code on server.
But what I want to do, is coding a program to get a token then call getBookings, so that I need my program to get SMS and get token by 2fa, so is there any program way to get the SMS code? Thx
We do not have such program. It is 2FA and you have to insert code from SMS.
The second - solution connect Google Authenticator and generate code on server side.
We do not have such program. It is 2FA and you have to insert code from SMS.
The second - solution connect Google Authenticator and generate code on server side.
OK, Thanks for your help. One more question, once I got a token from 2fa, when the token will be expired?
Hi,
You just need to make REST API calls, so you can use any HTTP client for this.
Please use URLs described above and if you have any issues, let us know.
Hi Dmitry, thank you for the quick response. I am already using REST API calls.
How can I get the ‘code’ to be used in the body here.
My REST call is this:
return axios.post(`${BASE_URL_REST}/admin/auth/2fa`, {
company: COMPANY_LOGIN,
session_id: sessionId,
code: 'ga-code-here', <-- how can i get the code to assign here?
type: 'ga',
}, {