Skip to content

r7kamura/altria-authentication

Repository files navigation

Altria::Authentication

Altria authentication plugin.

Installation

# Gemfile.local
gem "doorkeeper", git: "git@github.com:applicake/doorkeeper.git" # for Rails4 support
gem "altria-authentication", git: "git@github.com:r7kamura/altria-authentication.git"
$ cd /path/to/altria
$ rake db:migrate

Usage

You need to create new User records for your application users. Please do it via rails console.

$ rails c
> User.create(email: "test@example.com", password: "xxxxxxxx")

HTML API

Altria becomes to force users to sign in to access any page.

JSON API

Altria becomes to need an access token to access JSON API. Access token can be passed via Authorization header or params. We are using doorkeeper to provide OAuth2 for Rails.

About

Altria authentication plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages