If you are trying to set a way to automatically log in (or similar) to the second site, and you manage this site, you really only have one option (maybe I donβt know more).
- Create nonce and save to db
- Associate the current date / time and user agent with it
- Attach it to the link to the second site via GET
Now that the second site receives an inbound link with this GET parameter, it should
- Check if exists
- Verify that the user agent has not changed
- Make sure that the time between created and requested was not too long (I go with 10 minutes).
- Remove nonce
Be warned
This session can be captured, for example, by some person in the middle. But the person who captures him must do all this.
- View outgoing nonce
- Copy it and go to the site before .
- Enter the same user agent string
Remember this.
You can also check if the IP is permanent, but this can cause some people to not be authenticated if their IP address changes, and this will not help multiple users to use the same external IP address.
source share