Skip to content

Commit

Permalink
release 1.0.3 (#49)
Browse files Browse the repository at this point in the history
* gem version up

* SAMLの設定が行われていない場合にSamlSettingNotFoundのエラーを発生させる (#48)

* release 1.0.1 (#37)

* add authors

* Change title

* Add generator descriptions

* Add routing descripiton

* Add controller templates info

* Add view templates info

* Add model and migration templates info

* Fix Style/WordArray

* Add logo

* Add h1

* Add br

* center

* Tweak

* Add gem ber

* Fix shields

* Add other sheilds

* Add license

* Remove pre sheilds

* Add br

* tweak

* Add setting relation

* tweak

* Add migrate description

* Fix path

* Add emoji

* Change headers

* Bump rails from 6.1.3.2 to 6.1.4

Bumps [rails](https://github.com/rails/rails) from 6.1.3.2 to 6.1.4.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](rails/rails@v6.1.3.2...v6.1.4)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* tweak

* Update readme

* アプリ導入の際に必要になった機能の追加 (#36)

* アプリ導入の際に必要になった機能の追加

* setupメソッドを複数回呼び出せる様にする

* 修正もれの対応

* saml_responseとsign_in時のユーザー検索で別カラムを別々に設定できる様に修正

* バグ修正

Co-authored-by: yonetani <[email protected]>

* Fix typo

Co-authored-by: yonetani <[email protected]>
Co-authored-by: psyashes <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* gem version up (#47)

* saml_settingがない場合にエラーを発生させる様に修正

* version up

Co-authored-by: psyashes <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: psyashes <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 5, 2021
1 parent 2edfcc9 commit 6acdc28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
sp-rails-saml (1.0.2)
sp-rails-saml (1.0.3)
ruby-saml

GEM
Expand Down
1 change: 1 addition & 0 deletions app/controllers/saml/sessions_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def create
user = setting.user_class.find_by!(setting.user_find_key => params[:email])
account = user.send(setting.account_class.to_s.downcase.to_sym)

raise SpRailsSaml::SamlSettingNotFound if account.saml_setting.blank?
raise SpRailsSaml::SamlLoginForbidden if account.saml_setting.password_only?

if user.blank?
Expand Down
1 change: 1 addition & 0 deletions app/controllers/saml/ssos_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def consume
setting = SpRailsSaml::Settings.instance
account = setting.account_class.find_by!(setting.account_find_key => params[setting.account_find_key])

raise SpRailsSaml::SamlSettingNotFound if account.saml_setting.blank?
raise SpRailsSaml::SamlLoginForbidden if account.saml_setting.password_only?

saml_setting = account.saml_setting
Expand Down
2 changes: 2 additions & 0 deletions lib/sp-rails-saml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class LoginUserNotFound < Error; end

class SamlResponseInvalid < Error; end

class SamlSettingNotFound < Error; end

autoload :Authnrequest, File.expand_path('./sp-rails-saml/authnrequest', __dir__)
autoload :SamlResponse, File.expand_path('./sp-rails-saml/saml_response', __dir__)
autoload :Metadata, File.expand_path('./sp-rails-saml/metadata', __dir__)
Expand Down
2 changes: 1 addition & 1 deletion lib/sp-rails-saml/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SpRailsSaml
VERSION = '1.0.2'.freeze
VERSION = '1.0.3'.freeze
end

0 comments on commit 6acdc28

Please sign in to comment.