Skip to content

Authentication and Authorization example written in ruby on rails

Notifications You must be signed in to change notification settings

helloproclub/Epona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

How to Run

  • install Ruby (atleast v2.0)
  • install Rails (v5 or latest)
  • run command below
$ bundle install
$ rails db:migrade
$ rails server
  • the application will be run on port 3000

Post

/users

body: {
    "username": username,
    "name": name,
    "password": password,
    "password_confirmation": password,
    "email": email,
}

/auth/login

request:

body: {
    "email": email,
    "password": password,
}

Get

/users/

header: {
    "Authorization": _token_
}

About

Authentication and Authorization example written in ruby on rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published