Skip to content

jwt-uuid-apikey token authorization system using mariadb

Notifications You must be signed in to change notification settings

PedroRuiz/auth-mysql.v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth-mysql v2.0.0

By @pedroruizhidalg


Abstract

This is a very effective and complete application to manage users of a given application. You can even manage more than one application, each with respective users. A user, identified by email, can appear in several applications, but as different users.

Routes

Routes Method Request Successfull result
/apps/create POST { name } {apikey: apiKey, expiration_time, active:true, affectedRows : newApp.affectedRows}
/application/:appkey GET void if app is active: {apikey,name,create_time,end_time,active}
/application/getuuid/:apikey GET void {uuid}
/apps/application/delete DELETE {appkey,uuid} {"affectedRows: 1,message: "All users of this application was deleted too"}
/signup POST {applicationkey,username,email,password,enddate} {uuid,token}
/signin POST {appkey,uuid} {uuid,token}
/signwithemailpassword POST {appkey,email,password} {uuid,token}
/checktoken POST {token} {checktoken: true}

Headers

Headers management is very simple: Each one must contain:

Content-Type: application/json

Copyleft 2020 Pedro Ruiz-Hidalgo, Twitter: @pedroruizhidalg

About

jwt-uuid-apikey token authorization system using mariadb

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published