I want to identify users accessing my API even if they clear the cookies
or localstorage
wherever I am storing the current session information. I see that browser fingerprinting
is one of the ways to achieve this up to some accuracy. I am working on an angular2
project for the frontend. I have the following questions:
- Are there any libraries available for angular2 which creates the browser fingerprint? (I have seen ng2-device-detector. This doesn't give much info and also no hashed fingerprint. So, do I have to hash it myself? )
- Have seen fingerprintjs2 this does take a lot of info but has no implementation for
angular2
, but I wonder how would the hashed fingerprint actually matter? For a Request in my API, I will check if the payload contained afingerprint
which already existed in any of the existing sessions? (Really payload? It will just be aPOST
request. The user can simply send a random long string as the hashedfingerprint
and the API will treat the request as if it came from a different person.) - I guess then I will have to use some API which not only generates a
hashed fingerprint
in thefrontend
but also validates after the request has reached the API, something likeGoogle's reCaptcha
. Are there any APIs like such? - If there aren't any APIs as such then I guess I will have to implement such functionality in my API itself?
Please write your suggestions.