Skip to content

Commit

Permalink
Update README and gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed May 29, 2020
1 parent 0cc9c09 commit 35e747f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "doorkeeper", "~> 5.2"
gem "rails", "~> 5.2"
gem "rails", "~> 6.0"
gem "sqlite3"

gemspec
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Doorkeeper - Assertion Grant Extension

[![Travis CI](https://img.shields.io/travis/doorkeeper-gem/doorkeeper-grants_assertion/master.svg)](https://travis-ci.org/doorkeeper-gem/doorkeeper-grants_assertion)
[![Gem Version](https://badge.fury.io/rb/doorkeeper-grants_assertion.svg)](https://rubygems.org/gems/doorkeeper-grants_assertion)

Assertion grant extension for Doorkeeper. Born from:
https://github.com/doorkeeper-gem/doorkeeper/pull/249
Expand Down Expand Up @@ -96,9 +97,10 @@ If you want to ensure that resource owners can only receive access tokens scoped
Doorkeeper.configure do
resource_owner_from_assertion do
Doorkeeper::Application.find_by!(uid: params[:client_id]) #will raise an exception if not found
facebook = URI.parse('https://graph.facebook.com/me?access_token=' +
params[:assertion])
....continue with authentication lookup....
facebook = URI.parse('https://graph.facebook.com/me?access_token=' + params[:assertion])
# ....continue with authentication lookup....
end
end
```
More complete examples, also for other providers may be found in the [wiki](https://github.com/doorkeeper-gem/doorkeeper-grants_assertion/wiki).
___
Expand All @@ -107,7 +109,7 @@ IETF standard: http://tools.ietf.org/html/rfc7521

## Supported versions

Assertion grant extension for Doorkeeper is tested with Rails 4.2 and 5.0.
Assertion grant extension for Doorkeeper is tested with Rails 4.2, 5.x and 6.0.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions doorkeeper-grants_assertion.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require "doorkeeper/grants_assertion/version"
Gem::Specification.new do |s|
s.name = 'doorkeeper-grants_assertion'
s.version = Doorkeeper::GrantsAssertion::VERSION
s.authors = ['Tute Costa']
s.email = ['[email protected]']
s.authors = ['Tute Costa', 'Nikita Bulai']
s.email = ['[email protected]', '[email protected]']
s.homepage = "https://github.com/doorkeeper-gem/doorkeeper-grants-assertion"
s.summary = "Assertion grant extension for Doorkeeper."
s.description = "Assertion grant extension for Doorkeeper."
Expand Down

0 comments on commit 35e747f

Please sign in to comment.