Hi Arjun Jayasimha,
Step1: Generate a token in server side to access.
Step2: Append the token stored in the database with external URL. Only authenticated users can access the URL where generated token and database token are same.
I hope this helps you to solve your problem.