wantedly/doorkeeper_assertion_flow

Name: doorkeeper_assertion_flow

Owner: Wantedly, Inc.

Description: OAuth assertion flow patch for doorkeeper

Created: 2018-05-17 02:42:46.0

Updated: 2018-05-17 02:42:48.0

Pushed: 2018-05-17 03:15:39.0

Homepage: http://rubygems.org/gems/doorkeeper_assertion_flow

Size: 7

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Doorkeeper Assertion Flow

Extension of https://tools.ietf.org/html/draft-ietf-oauth-assertions-18 for doorkeeper.

Installation
1. Add the gem to your Gemfile
'doorkeeper'
'doorkeeper_assertion_flow'
2. Include assertion in the grant_flows
t_flows %w[assertion authorization_code implicit password client_credentials]
3. Configure resource_owner_from_assertion
urce_owner_from_assertion do
= params[:assertion] || {}

uth = UserOauth.find_by p.slice(
:provider,
:uid,


 oauth
oauth.refresh_credentials p.slice(
  :token,
  :token_secret,
  :token_expires_at,
)

oauth.user_account if oauth.save
d

License

This project is copyright by Creasty, released under the MIT lisence.
See LICENSE file for details.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.