"Invalid IP address detected:

173 views
Skip to first unread message

Shradha Aditya Gandhi

unread,
Mar 24, 2023, 2:41:46 AM3/24/23
to FatSecret Platform API
we have added IP address at console as you mentioned in doc
after adding it still shows me the same error
how to fix this??

seba...@fatsecret.com

unread,
Mar 24, 2023, 9:01:57 AM3/24/23
to FatSecret Platform API
Hi Shradha,

Thanks for reaching out. 

To better secure OAuth 2.0 we implemented IP Restrictions.
This restrictions 'white list' IP Addresses for a given client Key/Secret.

We block requests to FatSecret API for a Key/Secret if the source IP is not white listed.Before releasing IP ranges we allowed only 15 specific IP addressesThe new 'ranges' allows users to white list up to 15 ranges of IP addresses.

Example: 0.0.0.0/0 => is a range that allows any IPV4 https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

For Mobile apps we would recommend using an API proxy server to avoid Mobile Apps communicating directly with FatSecret APIs.


This proxy should be responsible for:

-          Manage the validity / renewal of your OAuth 2.0 access tokens
-          Forward any FatSecret related requests to FatSecret APIs
 
We would like to ask you to avoid having your client’s credentials part of your Mobile App source code / configuration.

For further technical assistance, please consult with our dedicated group forum.

Kind regards,
The FatSecret Platform API Team

Reply all
Reply to author
Forward
0 new messages