Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halogenandtoast/oath-generators
Rails generators for the oath authentication library
https://github.com/halogenandtoast/oath-generators
Last synced: 3 months ago
JSON representation
Rails generators for the oath authentication library
- Host: GitHub
- URL: https://github.com/halogenandtoast/oath-generators
- Owner: halogenandtoast
- License: mit
- Created: 2014-05-05T13:29:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-08T07:08:32.000Z (almost 5 years ago)
- Last Synced: 2024-09-18T08:13:41.289Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 16
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Oath::Generators
Rails generators for adding in authentication components, using the
[Oath](https://github.com/halogenandtoast/oath) authentication library.## Installation
Add this line to your application's Gemfile:
gem 'oath-generators'
And then execute:
$ bundle
## Generators
Currently these are the generators available:
### Scaffold
You can generate a basic starting point for any oath app by running the following:
rails g oath:scaffold
### Password Reset
If you'd like to generate basic password reset for your app, you can run:
rails g oath:password_reset
This will generate the necessary files for an implementation of resetting
a user's password. It will ask you for host names for development, test
and production environments in order to make the mailer work.### Google Oauth 2
If you'd like setup basic google oauth authentication, you can run:
rails g oath:google_oauth2
This will generate the necessary files for an implementation of allowing users
to sign in either with an email/password or by using google oauth2.## Contributing
1. [Fork it](http://github.com/halogenandtoast/oath-generators/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request