ifndefJOSH / usurl

GNU General Public License v3.0
1 stars 0 forks source link

Create authenication function for URL shortening #4

Open ifndefJOSH opened 1 year ago

ifndefJOSH commented 1 year ago

In the POST method of the /create endpoint, it would be a good idea to authenticate using some sort of either token, or Oauth. You will need to work with certain members of FSLC leadership in order to actually do this, but basically you should create a function that checks for an authentication token in the body of the HTTP request against some other API (will need requests to do this), and only allows shortened URL creation if success.

You will also need to modify templates/create.html to include a single-sign on (SSO).

Simponic commented 1 year ago

for anyone who does pick this up, you'll want to use https://github.com/USUFSLC/aggie-auth