rails_sso 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39b9384c709844f28c0a6f73f53f0b1594a3ccb9
4
- data.tar.gz: 785a2bd6519efa6d71c0c46585c3a8e5d6662f17
3
+ metadata.gz: 2a71320053757dea17ec2641a78828a7764056b4
4
+ data.tar.gz: c8945a577b31c91c88fade5ec21e84e31dc9644e
5
5
  SHA512:
6
- metadata.gz: 18d89b72bd4e8b97af70b37ba9a2fc084e2e85b69ee1ed6650f5d4b78f78b8fccbab8f45cb232f6f65418115dff9104f9cb077805e0c9c4c59b516b4f5f15bf9
7
- data.tar.gz: c5a86cdb05bb28ed31611144140201f724efd590229a591feb6e2358ca5a3941be6079176d8fb704155e8e35db67b7a53616a446ab9cd14066da2cb0cd289a01
6
+ metadata.gz: 71e3687535df92540c736a9f157e294e3b6df5cd8546fab254dd6740dede4ec157c03d4733f01026b76ffce6d9cb0b9da136ccf965e30e5bef4f09ae8fab7157
7
+ data.tar.gz: 6cc6a4eec9b345afbb6957f8f2edc606cec845887b81ae5a6c5140a15abefd92623732fa0182a010cba74e44596a3f1b15b9c104fef1cfdca89f8994f244f0ab
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # SSO client Rails Engine
2
2
 
3
+ [![Join the chat at https://gitter.im/monterail/rails_sso](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/monterail/rails_sso?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
3
5
  [![Circle CI](https://circleci.com/gh/monterail/rails_sso/tree/master.svg?style=shield&circle-token=237c44548fb2c2597bcd0bc7b1dd99c81329e574)](https://circleci.com/gh/monterail/rails_sso/tree/master)
4
6
  [![Dependency Status](https://gemnasium.com/monterail/rails_sso.svg)](https://gemnasium.com/monterail/rails_sso)
5
7
  [![Gem Version](https://badge.fury.io/rb/rails_sso.svg)](http://badge.fury.io/rb/rails_sso)
@@ -54,7 +54,7 @@ module RailsSso
54
54
  end
55
55
 
56
56
  def oauth2_strategy_class
57
- "OmniAuth::Strategies::#{RailsSso.provider_name.camelize}".constantize
57
+ OmniAuth::Strategies.const_get("#{OmniAuth::Utils.camelize(RailsSso.provider_name.to_s)}")
58
58
  end
59
59
 
60
60
  def provider_client
@@ -1,3 +1,3 @@
1
1
  module RailsSso
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -3928,3 +3928,67 @@ SsoRoutesTest: test_should_route_/:provider/callback
3928
3928
  ------------------------------------------
3929
3929
  SsoRoutesTest: test_should_route_/sign_out
3930
3930
  ------------------------------------------
3931
+ -------------------------------------------------------------------------------------
3932
+ RailsSso::HelpersTest: test_#current_user_data_will_return_user_data_if_authenticated
3933
+ -------------------------------------------------------------------------------------
3934
+ -------------------------------------------------------------------------------
3935
+ RailsSso::HelpersTest: test_#user_signed_in?_returns_false_if_not_authenticated
3936
+ -------------------------------------------------------------------------------
3937
+ -------------------------------------------------------------------------------------------------
3938
+ RailsSso::HelpersTest: test_#invalidate_access_token!_will_call_Single_Sign-Out_with_access_token
3939
+ -------------------------------------------------------------------------------------------------
3940
+ ----------------------------------------------------------------------------------
3941
+ RailsSso::HelpersTest: test_#access_token_returns_a_new_OAuth2::AccessToken_object
3942
+ ----------------------------------------------------------------------------------
3943
+ --------------------------------------------------------------------------------------------
3944
+ RailsSso::HelpersTest: test_save_access_token!_will_copy_access_and_refresh_token_to_session
3945
+ --------------------------------------------------------------------------------------------
3946
+ --------------------------------------------------------------------------
3947
+ RailsSso::HelpersTest: test_#user_signed_in?_returns_true_if_authenticated
3948
+ --------------------------------------------------------------------------
3949
+ -----------------------------------------------------------------------------------
3950
+ RailsSso::HelpersTest: test_#current_user_data_will_return_nil_if_not_authenticated
3951
+ -----------------------------------------------------------------------------------
3952
+ -----------------------------------------------------------------------------------------
3953
+ RailsSso::HelpersTest: test_#refresh_access_token!_will_refresh_token_and_copy_new_values
3954
+ -----------------------------------------------------------------------------------------
3955
+ -----------------------------------------------------------------------------------------------------
3956
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
3957
+ -----------------------------------------------------------------------------------------------------
3958
+ -------------------------------------------------------------
3959
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
3960
+ -------------------------------------------------------------
3961
+ ---------------------------------------------------------------------
3962
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
3963
+ ---------------------------------------------------------------------
3964
+ -------------------------------------------------------------------------------------------------------
3965
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
3966
+ -------------------------------------------------------------------------------------------------------
3967
+ Processing by RailsSso::SessionsController#destroy as HTML
3968
+ Redirected to http://test.host/
3969
+ Completed 302 Found in 0ms
3970
+ ------------------------------------------------------------------------------------------------
3971
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
3972
+ ------------------------------------------------------------------------------------------------
3973
+ Processing by RailsSso::SessionsController#create as HTML
3974
+ Parameters: {"provider"=>"developer"}
3975
+ Redirected to http://test.host/
3976
+ Completed 302 Found in 0ms
3977
+ ----------------------------------------------------
3978
+ SsoRoutesTest: test_should_route_/:provider/callback
3979
+ ----------------------------------------------------
3980
+ ------------------------------------------
3981
+ SsoRoutesTest: test_should_route_/sign_out
3982
+ ------------------------------------------
3983
+ ------------------------
3984
+ RailsSsoTest: test_truth
3985
+ ------------------------
3986
+ ----------------------------------------------------
3987
+ RailsSso::ResponseErrorTest: test_assigns_error_code
3988
+ ----------------------------------------------------
3989
+ ----------------------------------------------------------------------------
3990
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
3991
+ ----------------------------------------------------------------------------
3992
+ ------------------------------------------------------------------------------------
3993
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
3994
+ ------------------------------------------------------------------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Dudulski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails