https://github.com/tachyons/authentication-service
Authentication microservice written in Rails with JWT
https://github.com/tachyons/authentication-service
jwt rails rsa
Last synced: 2 months ago
JSON representation
Authentication microservice written in Rails with JWT
- Host: GitHub
- URL: https://github.com/tachyons/authentication-service
- Owner: tachyons
- Created: 2018-09-03T19:46:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T08:48:54.000Z (over 3 years ago)
- Last Synced: 2025-03-28T07:18:53.189Z (over 1 year ago)
- Topics: jwt, rails, rsa
- Language: Ruby
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authentication Service
[](https://travis-ci.org/tachyons/authentication-service)
[](https://codeclimate.com/github/tachyons/authentication-service/maintainability)
Authentication microservice written in Rails with JWT.
## Developer Setup
1. Install Ruby 2.5. (It is suggested to use a Ruby version manager such as [rbenv](https://github.com/rbenv/rbenv#installation) and then to [install Ruby 2.5](https://github.com/rbenv/rbenv#installing-ruby-versions)).
1. Install Bundler to manager dependencies: `gem install bundler`
1. Setup the database: `bundle exec rake db:migrate`
1. Setup key pair
```
openssl genrsa -out config/private.pem 2048
openssl rsa -in config/private.pem -outform PEM -pubout -out config/public.pem
```
5. Start the application: `bundle exec rails s`
## Commands
- `bundle exec rubocop` - Run the full suite of linters on the codebase.
## Deployment Instructions
## TODO
## Documentation
[Apiary](https://authservice16.docs.apiary.io)
## Features
* [x] User creation from admin role
* [x] Login using email and password
* [x] Authenticate using auth token
* [x] Endpont for public key
* [ ] Refresh token
* [ ] Revoking refresh token
* [ ] Broadcast auth events like user deletion
* [ ] Support key rotation