wasteofauth is pretty simple. Begin by navigating the user to: https://wasteofauth.lindsey.studio/auth
, and include the below parameters:
The auth url accepts 2 url parameters:
name
: This parameter is the name of your site, URI encoded. This parameter is required.
redirect
: This parameter is the url it should redirect to after authenticating. It should be URI encoded.
The complete auth url should look like: https://wasteofauth.lindsey.studio/auth?name=yourname&redirect=yoururl
Once you have authenticated, it will redirect to the specified redirect url. It will also add at least one url parameter to that url:
success
: This parameter is a boolean, specifying whether the authentication was successful.
username
: If success is true
, then this parameter will also be included. It is the username of the user who authenticated.
id
: If success is true
, then this parameter will also be included. It is the id of the authentication session. It is used to verify that the authentication was real, not spoofed. See below:
To confirm that the user has been truly authenticated, perform a get request to this url: https://wasteofauth.lindsey.studio/auth/verify/ID
ID should be the authentication id (See above)