<commit_before># Doorkeeper - awesome oauth provider for your Rails app.

[![Build Status](https://secure.travis-ci.org/applicake/doorkeeper.png)](http://travis-ci.org/applicake/doorkeeper)

Doorkeeper is a gem that makes it easy to introduce OAuth 2 provider functionality to your application.

The gem is under constant development. It is based in the [version 22 of the OAuth specification](http://tools.ietf.org/html/draft-ietf-oauth-v2-22) and it still does not support all OAuth features.

For more information about the supported features, check out the related [page in the wiki](https://github.com/applicake/doorkeeper/wiki/Supported-Features). For more information about OAuth 2 go to [OAuth 2 Specs (Draft)](http://tools.ietf.org/html/draft-ietf-oauth-v2-22).

## Installation

Put this in your Gemfile:

``` ruby
gem 'doorkeeper', '~> 0.3.0'
```

Run the installation generator with:

    rails generate doorkeeper:install

This will generate the doorkeeper initializer and the OAuth tables migration. Don't forget to run the migration in your application:

    rake db:migrate

## Configuration

The installation script will automatically add the Doorkeeper routes into your app, like this:

``` ruby
Rails.application.routes.draw do
  mount Doorkeeper::Engine => "/oauth"
  # your routes<commit_msg>Add Gemnasium status image to README<commit_after># Doorkeeper - awesome oauth provider for your Rails app.

[![Build Status](https://secure.travis-ci.org/applicake/doorkeeper.png)](http://travis-ci.org/applicake/doorkeeper)
[![Dependency Status](https://gemnasium.com/applicake/doorkeeper.png)](https://gemnasium.com/applicake/doorkeeper)

Doorkeeper is a gem that makes it easy to introduce OAuth 2 provider functionality to your application.

The gem is under constant development. It is based in the [version 22 of the OAuth specification](http://tools.ietf.org/html/draft-ietf-oauth-v2-22) and it still does not support all OAuth features.

For more information about the supported features, check out the related [page in the wiki](https://github.com/applicake/doorkeeper/wiki/Supported-Features). For more information about OAuth 2 go to [OAuth 2 Specs (Draft)](http://tools.ietf.org/html/draft-ietf-oauth-v2-22).

## Installation

Put this in your Gemfile:

``` ruby
gem 'doorkeeper', '~> 0.3.0'
```

Run the installation generator with:

    rails generate doorkeeper:install

This will generate the doorkeeper initializer and the OAuth tables migration. Don't forget to run the migration in your application:

    rake db:migrate

## Configuration

The installation script will automatically add the Doorkeeper routes into your app, like this:

``` ruby
Rails.application.routes.draw do
  mount Doorkeeper::Engine => "/oauth"
  # your routes
{'fraction_non_alphanumeric': 0.09768451519536903, 'fraction_numerical': 0.010130246020260492, 'mean_word_length': 4.677618069815195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834375', 'n_tokens_mistral': 828, 'n_tokens_neox': 783, 'n_words': 294}