Skip to content

A Devise API Authentication with an User Management System

Notifications You must be signed in to change notification settings

urieljuliatti/devise_api

Repository files navigation

README

Welcome to devise_api 😄

This project is a personal challenge that I developed in order to learn and to deal with the authentication library devise_token_auth. Remembering that the application was not configured for production and is intended only for development mode. Any further details can be found at Devise Token Auth Official Documentation

Ruby version 3.0.0
Rails version 6.1.3
Database PostgreSQL

Configuration

Cloning the repo

git clone https://github.com/urieljuliatti/devise_api
cd devise_api

Installing the dependencies

bundle install

Starting the server

rails server

Testing requests

One way to ensure its development is to combine it with the consumption of requests to guarantee the functioning and understanding of how the devise_auth_token works.

Requests necessarily need three key-values in the header, here they are:

devise_auth_token mandatory values

accsss-token: your-token
uid: your User email
client: the-client
Note: These values tend to change according to the session, so it is necessary to change from time to time.

With that in mind, I made a Postman configuration file. You can get my json file from here: devise-api.postman_collection.json.

Running tests

It is very important that you run the tests and verify the project's proficiency safely:

rspec

Contact me

TODO

Seeds

Swagger

About

A Devise API Authentication with an User Management System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages