rster2002 / Ledgero-API

Work in progress backend for managing personal finance.
GNU Affero General Public License v3.0
0 stars 0 forks source link

Prevent refresh token to be used across multiple ips #18

Open rster2002 opened 1 year ago

rster2002 commented 1 year ago

After the LTT fiasco where a session token was used to access the yt account, it's worth looking into restricting refreshing a token based on ip address. Initial idea: hash ip address when logging in and store it with the grant. The grant can then only be used to refresh if the ip address matches. Should check how mobile networks handle this, because otherwise maybe there should be a location lookup and only allow refreshing within a certain range.