Skip to content

Commit

Permalink
initial import, wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Rehbein committed Aug 19, 2020
1 parent 09e41fe commit a014d1a
Show file tree
Hide file tree
Showing 14 changed files with 769 additions and 439 deletions.
47 changes: 47 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,47 @@
# v0.3.5 (07.06.2020)

- bugfix: Info from decoded id_token is not exposed into `request.env['omniauth.auth']` [#61](https://github.com/m0n9oose/omniauth_openid_connect/pull/61)
- bugfix: NoMethodError (`undefined method 'count' for #<OpenIDConnect::ResponseObject::IdToken>`) [#60](https://github.com/m0n9oose/omniauth_openid_connect/pull/60)

# v0.3.4 (21.05.2020)

- Try to verify id_token when response_type is code [#44](https://github.com/m0n9oose/omniauth_openid_connect/pull/44)
- Provide more information on error [#49](https://github.com/m0n9oose/omniauth_openid_connect/pull/49)
- Update configuration documentation [#53](https://github.com/m0n9oose/omniauth_openid_connect/pull/53)
- Add documentation about the send_scope_to_token_endpoint config property [#52](https://github.com/m0n9oose/omniauth_openid_connect/pull/52)
- refactor: take uid_field from raw_attributes [#54](https://github.com/m0n9oose/omniauth_openid_connect/pull/54)
- chore(ci): add 2.7, ruby-head and jruby-head [#55](https://github.com/m0n9oose/omniauth_openid_connect/pull/55)

# v0.3.3 (09.11.2019)

- Pass `acr_values` to authorize url [#43](https://github.com/m0n9oose/omniauth_openid_connect/pull/43)
- Add raw info for id token [#42](https://github.com/m0n9oose/omniauth_openid_connect/pull/42)
- Fixed `id_token` verification when `id_token` is not used [#41](https://github.com/m0n9oose/omniauth_openid_connect/pull/41)
- Cast `response_type` to string when checking if it is set in params [#36](https://github.com/m0n9oose/omniauth_openid_connect/pull/36)
- Support both symbol and string version of `response_type` option [#35](https://github.com/m0n9oose/omniauth_openid_connect/pull/35)
- Fix gemspec homepage [#33](https://github.com/m0n9oose/omniauth_openid_connect/pull/33)
- Add support for `response_type` `id_token` [#32](https://github.com/m0n9oose/omniauth_openid_connect/pull/32)

# v0.3.2 (03.08.2019)

- Use response_mode in `authorize_uri` if the option is defined [#30](https://github.com/m0n9oose/omniauth_openid_connect/pull/30)
- Move verification of `id_token` to before accessing tokens [#28](https://github.com/m0n9oose/omniauth_openid_connect/pull/28)
- Update omniauth dependency [#26](https://github.com/m0n9oose/omniauth_openid_connect/pull/26)

# v0.3.1 (08.06.2019)

- Set default OmniAuth name to openid_connect [#23](https://github.com/m0n9oose/omniauth_openid_connect/pull/23)

# v0.3.0 (27.04.2019)

- RP-Initiated Logout phase [#5](https://github.com/m0n9oose/omniauth_openid_connect/pull/5)
- Allows `ui_locales`, `claims_locales` and `login_hint` as request params [#6](https://github.com/m0n9oose/omniauth_openid_connect/pull/6)
- Make uid label configurable [#11](https://github.com/m0n9oose/omniauth_openid_connect/pull/11)
- Allow rails applications to handle state mismatch [#14](https://github.com/m0n9oose/omniauth_openid_connect/pull/14)
- Handle errors when fetching access_token at callback_phase [#17](https://github.com/m0n9oose/omniauth_openid_connect/pull/17)
- Allow state method to receive env [#19](https://github.com/m0n9oose/omniauth_openid_connect/pull/19)

# v0.2.4 (06.01.2019)

- Prompt and login hint [#4](https://github.com/m0n9oose/omniauth_openid_connect/pull/4)
- Bump openid_connect dependency [#9](https://github.com/m0n9oose/omniauth_openid_connect/pull/9)
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,2 +1,4 @@
# frozen_string_literal: true

source 'https://rubygems.org'
gemspec
8 changes: 5 additions & 3 deletions Guardfile
@@ -1,11 +1,13 @@
# frozen_string_literal: true

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'minitest' do
# with Minitest::Unit
watch(%r|^test/(.*)\/(.*)_test\.rb|)
watch(%r|^lib/(.*)\.rb|) { |m| "test/lib/#{m[1]}_test.rb" }
watch(%r|^test/test_helper\.rb|) { "test" }
watch(%r{^test/(.*)\/(.*)_test\.rb})
watch(%r{^lib/(.*)\.rb}) { |m| "test/lib/#{m[1]}_test.rb" }
watch(%r{^test/test_helper\.rb}) { 'test' }
end

guard :bundler do
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -2,7 +2,7 @@ require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new do |t|
t.libs << 'lib/omniauth-openid-connect'
t.libs << 'test'
t.test_files = FileList['test/lib/omniauth/**/*_test.rb']
t.verbose = true
end
Expand Down
1 change: 0 additions & 1 deletion lib/omniauth-openid-connect.rb

This file was deleted.

8 changes: 5 additions & 3 deletions lib/omniauth/openid_connect.rb
@@ -1,3 +1,5 @@
require "omniauth/openid_connect/errors"
require "omniauth/openid_connect/version"
require "omniauth/strategies/openid_connect"
# frozen_string_literal: true

require 'omniauth/openid_connect/errors'
require 'omniauth/openid_connect/version'
require 'omniauth/strategies/openid_connect'
3 changes: 3 additions & 0 deletions lib/omniauth/openid_connect/errors.rb
@@ -1,6 +1,9 @@
# frozen_string_literal: true

module OmniAuth
module OpenIDConnect
class Error < RuntimeError; end
class MissingCodeError < Error; end
class MissingIdTokenError < Error; end
end
end
4 changes: 3 additions & 1 deletion lib/omniauth/openid_connect/version.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true

module OmniAuth
module OpenIDConnect
VERSION = "0.2.2.vn2"
VERSION = '0.3.5.vn1'
end
end
3 changes: 3 additions & 0 deletions lib/omniauth_openid_connect.rb
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require 'omniauth/openid_connect'
48 changes: 24 additions & 24 deletions omniauth-openid-connect.gemspec
@@ -1,35 +1,35 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'omniauth/openid_connect/version'

Gem::Specification.new do |spec|
spec.name = "omniauth-openid-connect"
spec.name = 'omniauth-openid-connect'
spec.version = OmniAuth::OpenIDConnect::VERSION
spec.authors = ["John Bohn"]
spec.email = ["jjbohn@gmail.com"]
spec.summary = %q{OpenID Connect Strategy for OmniAuth}
spec.description = %q{OpenID Connect Strategy for OmniAuth}
spec.homepage = "https://github.com/jjbohn/omniauth-openid-connect"
spec.license = "MIT"
spec.authors = ['John Bohn', 'Ilya Shcherbinin', 'Bryan Rehbein']
spec.email = ['jjbohn@gmail.com', 'm0n9oose@gmail.com', 'bryan.rehbein@venuenext.com']
spec.summary = 'OpenID Connect Strategy for OmniAuth'
spec.description = 'OpenID Connect Strategy for OmniAuth.'
spec.homepage = 'https://github.com/m0n9oose/omniauth_openid_connect'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.require_paths = ['lib']

spec.add_dependency 'omniauth', '~> 1.1'
spec.add_dependency 'openid_connect', '~> 0.12.0'
spec.add_dependency 'addressable', '~> 2.3'
spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "minitest"
spec.add_development_dependency "mocha"
spec.add_development_dependency "guard"
spec.add_development_dependency "guard-minitest"
spec.add_development_dependency "guard-bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "pry"
spec.add_development_dependency "coveralls"
spec.add_development_dependency "faker"
spec.add_dependency 'addressable', '~> 2.5'
spec.add_dependency 'omniauth', '~> 1.9'
spec.add_dependency 'openid_connect', '~> 1.1'
spec.add_development_dependency 'coveralls', '~> 0.8'
spec.add_development_dependency 'faker', '~> 1.6'
spec.add_development_dependency 'guard', '~> 2.14'
spec.add_development_dependency 'guard-bundler', '~> 2.2'
spec.add_development_dependency 'guard-minitest', '~> 2.4'
spec.add_development_dependency 'minitest', '~> 5.1'
spec.add_development_dependency 'mocha', '~> 1.7'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rubocop', '~> 0.63'
spec.add_development_dependency 'simplecov', '~> 0.12'
end
7 changes: 0 additions & 7 deletions test/lib/omniauth/openid_connect/version_test.rb

This file was deleted.

0 comments on commit a014d1a

Please sign in to comment.