rails_sso 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 170c6345095e886214afff31d808cdbbba60d2c0
4
- data.tar.gz: 3647503ec6439121f4a86b6279c191add1d55d69
3
+ metadata.gz: 711196df82c0e207ee6a15b7e1c5257d76696c31
4
+ data.tar.gz: e0510629d812f29863ea37916eb683dc4dbdae7c
5
5
  SHA512:
6
- metadata.gz: fb0ff27da239e77ef5918f73af3d43be096280bf2eaa0d94208f758099ec37854cd014778f18929fefd6af9a04f2d44ff10e78a0fe812613be379d53b0836776
7
- data.tar.gz: 39c3f78d9edb3d289e8dad0b365df98cc9fb51b2423b2704f82fd3f5c8b30dbdf72e48c417beec21c31f1161df433112927aa2c2f7628f43c2e9bcf7f0f18eea
6
+ metadata.gz: bf61f7908cbb6212e8385fc548df7493026dd141e8b234070fcc1e10c2e97a5bec053648906854f1c0c9b59e2d25a4405f3a3507f189e4be367e379db3115675
7
+ data.tar.gz: d2d8d79b4b85b6ce91c52cd6c679671f720919b7e0a4065fbe0d329947fae8cda0fdaa5226d942a8aa5e3c70c9d3a42ed94e81ac9c64ddc93afe8b857cc5cfe2
@@ -7,14 +7,15 @@ module RailsSso
7
7
  end
8
8
 
9
9
  def current_user_data
10
- warden.user
10
+ @current_user_data ||= warden.authenticate
11
11
  end
12
12
 
13
13
  def authenticate_user!
14
14
  unless user_signed_in?
15
15
  session[:rails_sso_return_path] = request.path
16
- warden.authenticate!
17
16
  end
17
+
18
+ warden.authenticate!
18
19
  end
19
20
 
20
21
  def user_signed_in?
@@ -1,3 +1,3 @@
1
1
  module RailsSso
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -811,3 +811,1358 @@ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
811
811
  -------------------------------------------------------------------------
812
812
  RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
813
813
  -------------------------------------------------------------------------
814
+ ----------------------------------------------------------------------------
815
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
816
+ ----------------------------------------------------------------------------
817
+ ------------------------------------------------------------------------------------
818
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
819
+ ------------------------------------------------------------------------------------
820
+ -------------------------------------------------------------------------
821
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
822
+ -------------------------------------------------------------------------
823
+ -------------------------------------------------------------
824
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
825
+ -------------------------------------------------------------
826
+ ----------------------------------------------------
827
+ SsoRoutesTest: test_should_route_/:provider/callback
828
+ ----------------------------------------------------
829
+ ------------------------------------------
830
+ SsoRoutesTest: test_should_route_/sign_out
831
+ ------------------------------------------
832
+ ------------------------------------------------------------------------------------------------
833
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
834
+ ------------------------------------------------------------------------------------------------
835
+ Processing by RailsSso::SessionsController#create as HTML
836
+ Parameters: {"provider"=>"developer"}
837
+ Redirected to http://test.host/
838
+ Completed 302 Found in 0ms
839
+ -------------------------------------------------------------------------------------------------------
840
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
841
+ -------------------------------------------------------------------------------------------------------
842
+ Processing by RailsSso::SessionsController#destroy as HTML
843
+ Redirected to http://test.host/
844
+ Completed 302 Found in 0ms
845
+ ------------------------
846
+ RailsSsoTest: test_truth
847
+ ------------------------
848
+ ----------------------------------------------------------------------------------------------
849
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
850
+ ----------------------------------------------------------------------------------------------
851
+ ------------------------------------------------------------------------------------------
852
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
853
+ ------------------------------------------------------------------------------------------
854
+ ---------------------------------------------------------------------------
855
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
856
+ ---------------------------------------------------------------------------
857
+ -------------------------------------------------------------
858
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
859
+ -------------------------------------------------------------
860
+ -----------------------------------------------------------------------------------------------------
861
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
862
+ -----------------------------------------------------------------------------------------------------
863
+ ---------------------------------------------------------------------
864
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
865
+ ---------------------------------------------------------------------
866
+ ----------------------------------------------------------------------------
867
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
868
+ ----------------------------------------------------------------------------
869
+ ----------------------------------------------------
870
+ RailsSso::ResponseErrorTest: test_assigns_error_code
871
+ ----------------------------------------------------
872
+ ------------------------------------------------------------------------------------
873
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
874
+ ------------------------------------------------------------------------------------
875
+ ---------------------------------------------------------------------------------
876
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
877
+ ---------------------------------------------------------------------------------
878
+ --------------------------------------------------------------------------------------
879
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
880
+ --------------------------------------------------------------------------------------
881
+ ------------------------------------------------------------------------
882
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
883
+ ------------------------------------------------------------------------
884
+ ----------------------------------------------
885
+ RailsSso::SsoStrategyTest: test_does_not_store
886
+ ----------------------------------------------
887
+ --------------------------------------------------------------------------------------
888
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
889
+ --------------------------------------------------------------------------------------
890
+ -----------------------------------------------------------------------------------------
891
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
892
+ -----------------------------------------------------------------------------------------
893
+ ---------------------------------------------------------------------
894
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
895
+ ---------------------------------------------------------------------
896
+ -------------------------------------------------------------
897
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
898
+ -------------------------------------------------------------
899
+ --------------------------------------------------------------------------------------
900
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
901
+ --------------------------------------------------------------------------------------
902
+ ------------------------------------------------------------------------
903
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
904
+ ------------------------------------------------------------------------
905
+ --------------------------------------------------------------------------------------
906
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
907
+ --------------------------------------------------------------------------------------
908
+ ----------------------------------------------
909
+ RailsSso::SsoStrategyTest: test_does_not_store
910
+ ----------------------------------------------
911
+ ---------------------------------------------------------------------------------
912
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
913
+ ---------------------------------------------------------------------------------
914
+ ---------------------------------------------------------------------
915
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
916
+ ---------------------------------------------------------------------
917
+ -----------------------------------------------------------------------------------------
918
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
919
+ -----------------------------------------------------------------------------------------
920
+ ----------------------------------------------------
921
+ RailsSso::ResponseErrorTest: test_assigns_error_code
922
+ ----------------------------------------------------
923
+ ------------------------------------------------------------------------------------
924
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
925
+ ------------------------------------------------------------------------------------
926
+ ----------------------------------------------------------------------------
927
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
928
+ ----------------------------------------------------------------------------
929
+ ------------------------------------------------------------------------------------------------
930
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
931
+ ------------------------------------------------------------------------------------------------
932
+ Processing by RailsSso::SessionsController#create as HTML
933
+ Parameters: {"provider"=>"developer"}
934
+ Redirected to http://test.host/
935
+ Completed 302 Found in 1ms
936
+ -------------------------------------------------------------------------------------------------------
937
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
938
+ -------------------------------------------------------------------------------------------------------
939
+ Processing by RailsSso::SessionsController#destroy as HTML
940
+ Completed 500 Internal Server Error in 0ms
941
+ ------------------------
942
+ RailsSsoTest: test_truth
943
+ ------------------------
944
+ ----------------------------------------------------------------------------
945
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
946
+ ----------------------------------------------------------------------------
947
+ ------------------------------------------------------------------------------------
948
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
949
+ ------------------------------------------------------------------------------------
950
+ ----------------------------------------------------
951
+ SsoRoutesTest: test_should_route_/:provider/callback
952
+ ----------------------------------------------------
953
+ ------------------------------------------
954
+ SsoRoutesTest: test_should_route_/sign_out
955
+ ------------------------------------------
956
+ ---------------------------------------------------------------------------
957
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
958
+ ---------------------------------------------------------------------------
959
+ ----------------------------------------------------------------------------------------------
960
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
961
+ ----------------------------------------------------------------------------------------------
962
+ ------------------------------------------------------------------------------------------
963
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
964
+ ------------------------------------------------------------------------------------------
965
+ -------------------------------------------------------------------------
966
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
967
+ -------------------------------------------------------------------------
968
+ -----------------------------------------------------------------------------------------------------
969
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
970
+ -----------------------------------------------------------------------------------------------------
971
+ -------------------------------------------------------------
972
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
973
+ -------------------------------------------------------------
974
+ ---------------------------------------------------------------------
975
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
976
+ ---------------------------------------------------------------------
977
+ ------------------------------------------------------------------------------------------------
978
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
979
+ ------------------------------------------------------------------------------------------------
980
+ Processing by RailsSso::SessionsController#create as HTML
981
+ Parameters: {"provider"=>"developer"}
982
+ Redirected to http://test.host/
983
+ Completed 302 Found in 0ms
984
+ -------------------------------------------------------------------------------------------------------
985
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
986
+ -------------------------------------------------------------------------------------------------------
987
+ Processing by RailsSso::SessionsController#destroy as HTML
988
+ Redirected to http://test.host/
989
+ Completed 302 Found in 0ms
990
+ ----------------------------------------------------
991
+ RailsSso::ResponseErrorTest: test_assigns_error_code
992
+ ----------------------------------------------------
993
+ ------------------------------------------------------------------------------------
994
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
995
+ ------------------------------------------------------------------------------------
996
+ ----------------------------------------------------------------------------
997
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
998
+ ----------------------------------------------------------------------------
999
+ -------------------------------------------------------------------------
1000
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1001
+ -------------------------------------------------------------------------
1002
+ ------------------------
1003
+ RailsSsoTest: test_truth
1004
+ ------------------------
1005
+ -------------------------------------------------------------
1006
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1007
+ -------------------------------------------------------------
1008
+ ----------------------------------------------------------------------------------------------
1009
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1010
+ ----------------------------------------------------------------------------------------------
1011
+ ---------------------------------------------------------------------------
1012
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1013
+ ---------------------------------------------------------------------------
1014
+ ------------------------------------------------------------------------------------------
1015
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1016
+ ------------------------------------------------------------------------------------------
1017
+ ---------------------------------------------------------------------
1018
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1019
+ ---------------------------------------------------------------------
1020
+ ---------------------------------------------------------------------------------
1021
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1022
+ ---------------------------------------------------------------------------------
1023
+ ----------------------------------------------
1024
+ RailsSso::SsoStrategyTest: test_does_not_store
1025
+ ----------------------------------------------
1026
+ --------------------------------------------------------------------------------------
1027
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1028
+ --------------------------------------------------------------------------------------
1029
+ --------------------------------------------------------------------------------------
1030
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1031
+ --------------------------------------------------------------------------------------
1032
+ -----------------------------------------------------------------------------------------
1033
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1034
+ -----------------------------------------------------------------------------------------
1035
+ ------------------------------------------------------------------------
1036
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1037
+ ------------------------------------------------------------------------
1038
+ -------------------------------------------------------------
1039
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1040
+ -------------------------------------------------------------
1041
+ -----------------------------------------------------------------------------------------------------
1042
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1043
+ -----------------------------------------------------------------------------------------------------
1044
+ ---------------------------------------------------------------------
1045
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1046
+ ---------------------------------------------------------------------
1047
+ ----------------------------------------------------
1048
+ SsoRoutesTest: test_should_route_/:provider/callback
1049
+ ----------------------------------------------------
1050
+ ------------------------------------------
1051
+ SsoRoutesTest: test_should_route_/sign_out
1052
+ ------------------------------------------
1053
+ ------------------------------------------------------------------------------------
1054
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1055
+ ------------------------------------------------------------------------------------
1056
+ ----------------------------------------------------------------------------
1057
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1058
+ ----------------------------------------------------------------------------
1059
+ ------------------------------------------------------------------------------------------------
1060
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1061
+ ------------------------------------------------------------------------------------------------
1062
+ Processing by RailsSso::SessionsController#create as HTML
1063
+ Parameters: {"provider"=>"developer"}
1064
+ Redirected to http://test.host/
1065
+ Completed 302 Found in 0ms
1066
+ -------------------------------------------------------------------------------------------------------
1067
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1068
+ -------------------------------------------------------------------------------------------------------
1069
+ Processing by RailsSso::SessionsController#destroy as HTML
1070
+ Redirected to http://test.host/
1071
+ Completed 302 Found in 0ms
1072
+ ----------------------------------------------------
1073
+ SsoRoutesTest: test_should_route_/:provider/callback
1074
+ ----------------------------------------------------
1075
+ ------------------------------------------
1076
+ SsoRoutesTest: test_should_route_/sign_out
1077
+ ------------------------------------------
1078
+ -------------------------------------------------------------
1079
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1080
+ -------------------------------------------------------------
1081
+ --------------------------------------------------------------
1082
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1083
+ --------------------------------------------------------------
1084
+ ----------------------------------------------------
1085
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1086
+ ----------------------------------------------------
1087
+ ------------------------------------------------------------------------------------
1088
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1089
+ ------------------------------------------------------------------------------------
1090
+ ----------------------------------------------------------------------------
1091
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1092
+ ----------------------------------------------------------------------------
1093
+ ------------------------
1094
+ RailsSsoTest: test_truth
1095
+ ------------------------
1096
+ --------------------------------------------------------------------------------------
1097
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1098
+ --------------------------------------------------------------------------------------
1099
+ --------------------------------------------------------------------------------------
1100
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1101
+ --------------------------------------------------------------------------------------
1102
+ ----------------------------------------------
1103
+ RailsSso::SsoStrategyTest: test_does_not_store
1104
+ ----------------------------------------------
1105
+ ------------------------------------------------------------------------
1106
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1107
+ ------------------------------------------------------------------------
1108
+ ---------------------------------------------------------------------------------
1109
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1110
+ ---------------------------------------------------------------------------------
1111
+ ---------------------------------------------------------------------
1112
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1113
+ ---------------------------------------------------------------------
1114
+ -----------------------------------------------------------------------------------------
1115
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1116
+ -----------------------------------------------------------------------------------------
1117
+ -------------------------------------------------------------------------
1118
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1119
+ -------------------------------------------------------------------------
1120
+ -------------------------------------------------------------
1121
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1122
+ -------------------------------------------------------------
1123
+ -----------------------------------------------------------------------------------------------------
1124
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1125
+ -----------------------------------------------------------------------------------------------------
1126
+ ---------------------------------------------------------------------
1127
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1128
+ ---------------------------------------------------------------------
1129
+ ---------------------------------------------------------------------------
1130
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1131
+ ---------------------------------------------------------------------------
1132
+ ----------------------------------------------------------------------------------------------
1133
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1134
+ ----------------------------------------------------------------------------------------------
1135
+ ------------------------------------------------------------------------------------------
1136
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1137
+ ------------------------------------------------------------------------------------------
1138
+ ----------------------------------------------------------------------------
1139
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1140
+ ----------------------------------------------------------------------------
1141
+ ------------------------------------------------------------------------------------
1142
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1143
+ ------------------------------------------------------------------------------------
1144
+ -------------------------------------------------------------
1145
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1146
+ -------------------------------------------------------------
1147
+ ---------------------------------------------------------------------
1148
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1149
+ ---------------------------------------------------------------------
1150
+ -----------------------------------------------------------------------------------------------------
1151
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1152
+ -----------------------------------------------------------------------------------------------------
1153
+ ----------------------------------------------------
1154
+ SsoRoutesTest: test_should_route_/:provider/callback
1155
+ ----------------------------------------------------
1156
+ ------------------------------------------
1157
+ SsoRoutesTest: test_should_route_/sign_out
1158
+ ------------------------------------------
1159
+ ------------------------------------------------------------------------
1160
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1161
+ ------------------------------------------------------------------------
1162
+ ---------------------------------------------------------------------------------
1163
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1164
+ ---------------------------------------------------------------------------------
1165
+ ----------------------------------------------
1166
+ RailsSso::SsoStrategyTest: test_does_not_store
1167
+ ----------------------------------------------
1168
+ --------------------------------------------------------------------------------------
1169
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1170
+ --------------------------------------------------------------------------------------
1171
+ --------------------------------------------------------------------------------------
1172
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1173
+ --------------------------------------------------------------------------------------
1174
+ ---------------------------------------------------------------------
1175
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1176
+ ---------------------------------------------------------------------
1177
+ -----------------------------------------------------------------------------------------
1178
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1179
+ -----------------------------------------------------------------------------------------
1180
+ ----------------------------------------------------------------------------------------------
1181
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1182
+ ----------------------------------------------------------------------------------------------
1183
+ ------------------------------------------------------------------------------------------
1184
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1185
+ ------------------------------------------------------------------------------------------
1186
+ ---------------------------------------------------------------------------
1187
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1188
+ ---------------------------------------------------------------------------
1189
+ ----------------------------------------------------------------------------
1190
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1191
+ ----------------------------------------------------------------------------
1192
+ ------------------------------------------------------------------------------------
1193
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1194
+ ------------------------------------------------------------------------------------
1195
+ -------------------------------------------------------------
1196
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1197
+ -------------------------------------------------------------
1198
+ -------------------------------------------------------------------
1199
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1200
+ -------------------------------------------------------------------
1201
+ --------------------------------------------------------------
1202
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1203
+ --------------------------------------------------------------
1204
+ ----------------------------------------------------
1205
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1206
+ ----------------------------------------------------
1207
+ ------------------------------------------------------------------------------------
1208
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1209
+ ------------------------------------------------------------------------------------
1210
+ ----------------------------------------------------------------------------
1211
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1212
+ ----------------------------------------------------------------------------
1213
+ -------------------------------------------------------------------------
1214
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1215
+ -------------------------------------------------------------------------
1216
+ ------------------------------------------------------------------------------------------------
1217
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1218
+ ------------------------------------------------------------------------------------------------
1219
+ Processing by RailsSso::SessionsController#create as HTML
1220
+ Parameters: {"provider"=>"developer"}
1221
+ Redirected to http://test.host/
1222
+ Completed 302 Found in 0ms
1223
+ -------------------------------------------------------------------------------------------------------
1224
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1225
+ -------------------------------------------------------------------------------------------------------
1226
+ Processing by RailsSso::SessionsController#destroy as HTML
1227
+ Redirected to http://test.host/
1228
+ Completed 302 Found in 0ms
1229
+ ------------------------
1230
+ RailsSsoTest: test_truth
1231
+ ------------------------
1232
+ -----------------------------------------------------------------------------------------------------
1233
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1234
+ -----------------------------------------------------------------------------------------------------
1235
+ ---------------------------------------------------------------------
1236
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1237
+ ---------------------------------------------------------------------
1238
+ -------------------------------------------------------------
1239
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1240
+ -------------------------------------------------------------
1241
+ ---------------------------------------------------------------------
1242
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1243
+ ---------------------------------------------------------------------
1244
+ -------------------------------------------------------------
1245
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1246
+ -------------------------------------------------------------
1247
+ -------------------------------------------------------------------
1248
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1249
+ -------------------------------------------------------------------
1250
+ --------------------------------------------------------------
1251
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1252
+ --------------------------------------------------------------
1253
+ -------------------------------------------------------------------------
1254
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1255
+ -------------------------------------------------------------------------
1256
+ ----------------------------------------------------
1257
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1258
+ ----------------------------------------------------
1259
+ ------------------------------------------------------------------------------------
1260
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1261
+ ------------------------------------------------------------------------------------
1262
+ ----------------------------------------------------------------------------
1263
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1264
+ ----------------------------------------------------------------------------
1265
+ ------------------------------------------------------------------------------------
1266
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1267
+ ------------------------------------------------------------------------------------
1268
+ ----------------------------------------------------------------------------
1269
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1270
+ ----------------------------------------------------------------------------
1271
+ ------------------------
1272
+ RailsSsoTest: test_truth
1273
+ ------------------------
1274
+ ------------------------------------------------------------------------------------------------
1275
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1276
+ ------------------------------------------------------------------------------------------------
1277
+ Processing by RailsSso::SessionsController#create as HTML
1278
+ Parameters: {"provider"=>"developer"}
1279
+ Redirected to http://test.host/
1280
+ Completed 302 Found in 0ms
1281
+ -------------------------------------------------------------------------------------------------------
1282
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1283
+ -------------------------------------------------------------------------------------------------------
1284
+ Processing by RailsSso::SessionsController#destroy as HTML
1285
+ Redirected to http://test.host/
1286
+ Completed 302 Found in 0ms
1287
+ ---------------------------------------------------------------------------
1288
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1289
+ ---------------------------------------------------------------------------
1290
+ ----------------------------------------------------------------------------------------------
1291
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1292
+ ----------------------------------------------------------------------------------------------
1293
+ ------------------------------------------------------------------------------------------
1294
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1295
+ ------------------------------------------------------------------------------------------
1296
+ ----------------------------------------------
1297
+ RailsSso::SsoStrategyTest: test_does_not_store
1298
+ ----------------------------------------------
1299
+ --------------------------------------------------------------------------------------
1300
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1301
+ --------------------------------------------------------------------------------------
1302
+ ---------------------------------------------------------------------
1303
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1304
+ ---------------------------------------------------------------------
1305
+ --------------------------------------------------------------------------------------
1306
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1307
+ --------------------------------------------------------------------------------------
1308
+ -----------------------------------------------------------------------------------------
1309
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1310
+ -----------------------------------------------------------------------------------------
1311
+ ------------------------------------------------------------------------
1312
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1313
+ ------------------------------------------------------------------------
1314
+ ---------------------------------------------------------------------------------
1315
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1316
+ ---------------------------------------------------------------------------------
1317
+ ----------------------------------------------------
1318
+ SsoRoutesTest: test_should_route_/:provider/callback
1319
+ ----------------------------------------------------
1320
+ ------------------------------------------
1321
+ SsoRoutesTest: test_should_route_/sign_out
1322
+ ------------------------------------------
1323
+ ------------------------
1324
+ RailsSsoTest: test_truth
1325
+ ------------------------
1326
+ ------------------------------------------------------------------------------------------------
1327
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1328
+ ------------------------------------------------------------------------------------------------
1329
+ Processing by RailsSso::SessionsController#create as HTML
1330
+ Parameters: {"provider"=>"developer"}
1331
+ Redirected to http://test.host/
1332
+ Completed 302 Found in 0ms
1333
+ -------------------------------------------------------------------------------------------------------
1334
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1335
+ -------------------------------------------------------------------------------------------------------
1336
+ Processing by RailsSso::SessionsController#destroy as HTML
1337
+ Redirected to http://test.host/
1338
+ Completed 302 Found in 0ms
1339
+ -----------------------------------------------------------------------------------------------------
1340
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1341
+ -----------------------------------------------------------------------------------------------------
1342
+ ---------------------------------------------------------------------
1343
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1344
+ ---------------------------------------------------------------------
1345
+ -------------------------------------------------------------
1346
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1347
+ -------------------------------------------------------------
1348
+ -----------------------------------------------------------------------------------------
1349
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1350
+ -----------------------------------------------------------------------------------------
1351
+ ---------------------------------------------------------------------
1352
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1353
+ ---------------------------------------------------------------------
1354
+ --------------------------------------------------------------------------------------
1355
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1356
+ --------------------------------------------------------------------------------------
1357
+ --------------------------------------------------------------------------------------
1358
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1359
+ --------------------------------------------------------------------------------------
1360
+ ---------------------------------------------------------------------------------
1361
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1362
+ ---------------------------------------------------------------------------------
1363
+ ------------------------------------------------------------------------
1364
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1365
+ ------------------------------------------------------------------------
1366
+ ----------------------------------------------
1367
+ RailsSso::SsoStrategyTest: test_does_not_store
1368
+ ----------------------------------------------
1369
+ ----------------------------------------------------------------------------
1370
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1371
+ ----------------------------------------------------------------------------
1372
+ ------------------------------------------------------------------------------------
1373
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1374
+ ------------------------------------------------------------------------------------
1375
+ ----------------------------------------------------------------------------------------------
1376
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1377
+ ----------------------------------------------------------------------------------------------
1378
+ ------------------------------------------------------------------------------------------
1379
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1380
+ ------------------------------------------------------------------------------------------
1381
+ ---------------------------------------------------------------------------
1382
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1383
+ ---------------------------------------------------------------------------
1384
+ ---------------------------------------------------------------------
1385
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1386
+ ---------------------------------------------------------------------
1387
+ -------------------------------------------------------------------
1388
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1389
+ -------------------------------------------------------------------
1390
+ -------------------------------------------------------------
1391
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1392
+ -------------------------------------------------------------
1393
+ ---------------------------------------------------------------------
1394
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1395
+ ---------------------------------------------------------------------
1396
+ --------------------------------------------------------------
1397
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1398
+ --------------------------------------------------------------
1399
+ ------------------------------------------------------------------------------------
1400
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1401
+ ------------------------------------------------------------------------------------
1402
+ ----------------------------------------------------
1403
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1404
+ ----------------------------------------------------
1405
+ ----------------------------------------------------------------------------
1406
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1407
+ ----------------------------------------------------------------------------
1408
+ ----------------------------------------------------
1409
+ SsoRoutesTest: test_should_route_/:provider/callback
1410
+ ----------------------------------------------------
1411
+ ------------------------------------------
1412
+ SsoRoutesTest: test_should_route_/sign_out
1413
+ ------------------------------------------
1414
+ -------------------------------------------------------------------------
1415
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1416
+ -------------------------------------------------------------------------
1417
+ ------------------------------------------
1418
+ SsoRoutesTest: test_should_route_/sign_out
1419
+ ------------------------------------------
1420
+ ----------------------------------------------------
1421
+ SsoRoutesTest: test_should_route_/:provider/callback
1422
+ ----------------------------------------------------
1423
+ ----------------------------------------------------------------------------
1424
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1425
+ ----------------------------------------------------------------------------
1426
+ ------------------------------------------------------------------------------------
1427
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1428
+ ------------------------------------------------------------------------------------
1429
+ -----------------------------------------------------------------------------------------
1430
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1431
+ -----------------------------------------------------------------------------------------
1432
+ ------------------------------------------------------------------------
1433
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1434
+ ------------------------------------------------------------------------
1435
+ --------------------------------------------------------------------------------------
1436
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1437
+ --------------------------------------------------------------------------------------
1438
+ ---------------------------------------------------------------------
1439
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1440
+ ---------------------------------------------------------------------
1441
+ --------------------------------------------------------------------------------------
1442
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1443
+ --------------------------------------------------------------------------------------
1444
+ ---------------------------------------------------------------------------------
1445
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1446
+ ---------------------------------------------------------------------------------
1447
+ ----------------------------------------------
1448
+ RailsSso::SsoStrategyTest: test_does_not_store
1449
+ ----------------------------------------------
1450
+ ------------------------
1451
+ RailsSsoTest: test_truth
1452
+ ------------------------
1453
+ --------------------------------------------------------------
1454
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1455
+ --------------------------------------------------------------
1456
+ ---------------------------------------------------------------------
1457
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1458
+ ---------------------------------------------------------------------
1459
+ ---------------------------------------------------------------------
1460
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1461
+ ---------------------------------------------------------------------
1462
+ -------------------------------------------------------------
1463
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1464
+ -------------------------------------------------------------
1465
+ -------------------------------------------------------------------
1466
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1467
+ -------------------------------------------------------------------
1468
+ -------------------------------------------------------------
1469
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1470
+ -------------------------------------------------------------
1471
+ ---------------------------------------------------------------------
1472
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1473
+ ---------------------------------------------------------------------
1474
+ -----------------------------------------------------------------------------------------------------
1475
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1476
+ -----------------------------------------------------------------------------------------------------
1477
+ ---------------------------------------------------------------------------
1478
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1479
+ ---------------------------------------------------------------------------
1480
+ ------------------------------------------------------------------------------------------
1481
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1482
+ ------------------------------------------------------------------------------------------
1483
+ ----------------------------------------------------------------------------------------------
1484
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1485
+ ----------------------------------------------------------------------------------------------
1486
+ ------------------------------------------------------------------------------------
1487
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1488
+ ------------------------------------------------------------------------------------
1489
+ ----------------------------------------------------------------------------
1490
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1491
+ ----------------------------------------------------------------------------
1492
+ ----------------------------------------------------
1493
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1494
+ ----------------------------------------------------
1495
+ -------------------------------------------------------------------------------------------------------
1496
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1497
+ -------------------------------------------------------------------------------------------------------
1498
+ Processing by RailsSso::SessionsController#destroy as HTML
1499
+ Redirected to http://test.host/
1500
+ Completed 302 Found in 0ms
1501
+ ------------------------------------------------------------------------------------------------
1502
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1503
+ ------------------------------------------------------------------------------------------------
1504
+ Processing by RailsSso::SessionsController#create as HTML
1505
+ Parameters: {"provider"=>"developer"}
1506
+ Redirected to http://test.host/
1507
+ Completed 302 Found in 0ms
1508
+ -------------------------------------------------------------------------
1509
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1510
+ -------------------------------------------------------------------------
1511
+ ------------------------------------------------------------------------------------
1512
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1513
+ ------------------------------------------------------------------------------------
1514
+ ----------------------------------------------------
1515
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1516
+ ----------------------------------------------------
1517
+ ----------------------------------------------------------------------------
1518
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1519
+ ----------------------------------------------------------------------------
1520
+ -------------------------------------------------------------------------
1521
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1522
+ -------------------------------------------------------------------------
1523
+ ----------------------------------------------------
1524
+ SsoRoutesTest: test_should_route_/:provider/callback
1525
+ ----------------------------------------------------
1526
+ ------------------------------------------
1527
+ SsoRoutesTest: test_should_route_/sign_out
1528
+ ------------------------------------------
1529
+ --------------------------------------------------------------------------------------
1530
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1531
+ --------------------------------------------------------------------------------------
1532
+ --------------------------------------------------------------------------------------
1533
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1534
+ --------------------------------------------------------------------------------------
1535
+ ---------------------------------------------------------------------------------
1536
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1537
+ ---------------------------------------------------------------------------------
1538
+ -----------------------------------------------------------------------------------------
1539
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1540
+ -----------------------------------------------------------------------------------------
1541
+ ------------------------------------------------------------------------
1542
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1543
+ ------------------------------------------------------------------------
1544
+ ---------------------------------------------------------------------
1545
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1546
+ ---------------------------------------------------------------------
1547
+ ----------------------------------------------
1548
+ RailsSso::SsoStrategyTest: test_does_not_store
1549
+ ----------------------------------------------
1550
+ ------------------------------------------------------------------------------------
1551
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1552
+ ------------------------------------------------------------------------------------
1553
+ ----------------------------------------------------------------------------
1554
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1555
+ ----------------------------------------------------------------------------
1556
+ ------------------------
1557
+ RailsSsoTest: test_truth
1558
+ ------------------------
1559
+ ---------------------------------------------------------------------------
1560
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1561
+ ---------------------------------------------------------------------------
1562
+ ----------------------------------------------------------------------------------------------
1563
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1564
+ ----------------------------------------------------------------------------------------------
1565
+ ------------------------------------------------------------------------------------------
1566
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1567
+ ------------------------------------------------------------------------------------------
1568
+ ---------------------------------------------------------------------
1569
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1570
+ ---------------------------------------------------------------------
1571
+ ---------------------------------------------------------------------
1572
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1573
+ ---------------------------------------------------------------------
1574
+ -------------------------------------------------------------------
1575
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1576
+ -------------------------------------------------------------------
1577
+ --------------------------------------------------------------
1578
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1579
+ --------------------------------------------------------------
1580
+ -------------------------------------------------------------
1581
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1582
+ -------------------------------------------------------------
1583
+ -------------------------------------------------------------
1584
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1585
+ -------------------------------------------------------------
1586
+ -----------------------------------------------------------------------------------------------------
1587
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1588
+ -----------------------------------------------------------------------------------------------------
1589
+ ---------------------------------------------------------------------
1590
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1591
+ ---------------------------------------------------------------------
1592
+ ------------------------------------------------------------------------------------------------
1593
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1594
+ ------------------------------------------------------------------------------------------------
1595
+ Processing by RailsSso::SessionsController#create as HTML
1596
+ Parameters: {"provider"=>"developer"}
1597
+ Redirected to http://test.host/
1598
+ Completed 302 Found in 1ms
1599
+ -------------------------------------------------------------------------------------------------------
1600
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1601
+ -------------------------------------------------------------------------------------------------------
1602
+ Processing by RailsSso::SessionsController#destroy as HTML
1603
+ Redirected to http://test.host/
1604
+ Completed 302 Found in 0ms
1605
+ -------------------------------------------------------------------------
1606
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1607
+ -------------------------------------------------------------------------
1608
+ -----------------------------------------------------------------------------------------------------
1609
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1610
+ -----------------------------------------------------------------------------------------------------
1611
+ ---------------------------------------------------------------------
1612
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1613
+ ---------------------------------------------------------------------
1614
+ -------------------------------------------------------------
1615
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1616
+ -------------------------------------------------------------
1617
+ ---------------------------------------------------------------------------
1618
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1619
+ ---------------------------------------------------------------------------
1620
+ ----------------------------------------------------------------------------------------------
1621
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1622
+ ----------------------------------------------------------------------------------------------
1623
+ ------------------------------------------------------------------------------------------
1624
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1625
+ ------------------------------------------------------------------------------------------
1626
+ ------------------------------------------------------------------------------------
1627
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1628
+ ------------------------------------------------------------------------------------
1629
+ ----------------------------------------------------------------------------
1630
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1631
+ ----------------------------------------------------------------------------
1632
+ ----------------------------------------------------
1633
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1634
+ ----------------------------------------------------
1635
+ ------------------------------------------------------------------------------------
1636
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1637
+ ------------------------------------------------------------------------------------
1638
+ ----------------------------------------------------------------------------
1639
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1640
+ ----------------------------------------------------------------------------
1641
+ ----------------------------------------------------
1642
+ SsoRoutesTest: test_should_route_/:provider/callback
1643
+ ----------------------------------------------------
1644
+ ------------------------------------------
1645
+ SsoRoutesTest: test_should_route_/sign_out
1646
+ ------------------------------------------
1647
+ ------------------------------------------------------------------------------------------------
1648
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1649
+ ------------------------------------------------------------------------------------------------
1650
+ Processing by RailsSso::SessionsController#create as HTML
1651
+ Parameters: {"provider"=>"developer"}
1652
+ Redirected to http://test.host/
1653
+ Completed 302 Found in 0ms
1654
+ -------------------------------------------------------------------------------------------------------
1655
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1656
+ -------------------------------------------------------------------------------------------------------
1657
+ Processing by RailsSso::SessionsController#destroy as HTML
1658
+ Redirected to http://test.host/
1659
+ Completed 302 Found in 1ms
1660
+ ----------------------------------------------
1661
+ RailsSso::SsoStrategyTest: test_does_not_store
1662
+ ----------------------------------------------
1663
+ -----------------------------------------------------------------------------------------
1664
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1665
+ -----------------------------------------------------------------------------------------
1666
+ ------------------------------------------------------------------------
1667
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1668
+ ------------------------------------------------------------------------
1669
+ --------------------------------------------------------------------------------------
1670
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1671
+ --------------------------------------------------------------------------------------
1672
+ ---------------------------------------------------------------------
1673
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1674
+ ---------------------------------------------------------------------
1675
+ --------------------------------------------------------------------------------------
1676
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1677
+ --------------------------------------------------------------------------------------
1678
+ ---------------------------------------------------------------------------------
1679
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1680
+ ---------------------------------------------------------------------------------
1681
+ -------------------------------------------------------------
1682
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1683
+ -------------------------------------------------------------
1684
+ ---------------------------------------------------------------------
1685
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1686
+ ---------------------------------------------------------------------
1687
+ ---------------------------------------------------------------------
1688
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1689
+ ---------------------------------------------------------------------
1690
+ --------------------------------------------------------------
1691
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1692
+ --------------------------------------------------------------
1693
+ -------------------------------------------------------------------
1694
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1695
+ -------------------------------------------------------------------
1696
+ ------------------------
1697
+ RailsSsoTest: test_truth
1698
+ ------------------------
1699
+ -----------------------------------------------------------------------------------------------------
1700
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1701
+ -----------------------------------------------------------------------------------------------------
1702
+ ---------------------------------------------------------------------
1703
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1704
+ ---------------------------------------------------------------------
1705
+ -------------------------------------------------------------
1706
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1707
+ -------------------------------------------------------------
1708
+ ------------------------------------------------------------------------------------------------
1709
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1710
+ ------------------------------------------------------------------------------------------------
1711
+ Processing by RailsSso::SessionsController#create as HTML
1712
+ Parameters: {"provider"=>"developer"}
1713
+ Redirected to http://test.host/
1714
+ Completed 302 Found in 0ms
1715
+ -------------------------------------------------------------------------------------------------------
1716
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1717
+ -------------------------------------------------------------------------------------------------------
1718
+ Processing by RailsSso::SessionsController#destroy as HTML
1719
+ Redirected to http://test.host/
1720
+ Completed 302 Found in 0ms
1721
+ ----------------------------------------------------
1722
+ SsoRoutesTest: test_should_route_/:provider/callback
1723
+ ----------------------------------------------------
1724
+ ------------------------------------------
1725
+ SsoRoutesTest: test_should_route_/sign_out
1726
+ ------------------------------------------
1727
+ ----------------------------------------------------
1728
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1729
+ ----------------------------------------------------
1730
+ ------------------------------------------------------------------------------------
1731
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1732
+ ------------------------------------------------------------------------------------
1733
+ ----------------------------------------------------------------------------
1734
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1735
+ ----------------------------------------------------------------------------
1736
+ ----------------------------------------------------------------------------
1737
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1738
+ ----------------------------------------------------------------------------
1739
+ ------------------------------------------------------------------------------------
1740
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1741
+ ------------------------------------------------------------------------------------
1742
+ ---------------------------------------------------------------------------
1743
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1744
+ ---------------------------------------------------------------------------
1745
+ ------------------------------------------------------------------------------------------
1746
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1747
+ ------------------------------------------------------------------------------------------
1748
+ ----------------------------------------------------------------------------------------------
1749
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1750
+ ----------------------------------------------------------------------------------------------
1751
+ ---------------------------------------------------------------------
1752
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1753
+ ---------------------------------------------------------------------
1754
+ -------------------------------------------------------------
1755
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1756
+ -------------------------------------------------------------
1757
+ -------------------------------------------------------------------
1758
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1759
+ -------------------------------------------------------------------
1760
+ --------------------------------------------------------------
1761
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1762
+ --------------------------------------------------------------
1763
+ ---------------------------------------------------------------------
1764
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1765
+ ---------------------------------------------------------------------
1766
+ -----------------------------------------------------------------------------------------
1767
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1768
+ -----------------------------------------------------------------------------------------
1769
+ --------------------------------------------------------------------------------------
1770
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1771
+ --------------------------------------------------------------------------------------
1772
+ --------------------------------------------------------------------------------------
1773
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1774
+ --------------------------------------------------------------------------------------
1775
+ ------------------------------------------------------------------------
1776
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1777
+ ------------------------------------------------------------------------
1778
+ ----------------------------------------------
1779
+ RailsSso::SsoStrategyTest: test_does_not_store
1780
+ ----------------------------------------------
1781
+ ---------------------------------------------------------------------
1782
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1783
+ ---------------------------------------------------------------------
1784
+ ---------------------------------------------------------------------------------
1785
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1786
+ ---------------------------------------------------------------------------------
1787
+ -------------------------------------------------------------------------
1788
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1789
+ -------------------------------------------------------------------------
1790
+ ------------------------
1791
+ RailsSsoTest: test_truth
1792
+ ------------------------
1793
+ ----------------------------------------------------------------------------
1794
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1795
+ ----------------------------------------------------------------------------
1796
+ ------------------------------------------------------------------------------------
1797
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1798
+ ------------------------------------------------------------------------------------
1799
+ ----------------------------------------------------
1800
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1801
+ ----------------------------------------------------
1802
+ ------------------------------------------------------------------------------------
1803
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1804
+ ------------------------------------------------------------------------------------
1805
+ ----------------------------------------------------------------------------
1806
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1807
+ ----------------------------------------------------------------------------
1808
+ -------------------------------------------------------------
1809
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1810
+ -------------------------------------------------------------
1811
+ ---------------------------------------------------------------------
1812
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1813
+ ---------------------------------------------------------------------
1814
+ -----------------------------------------------------------------------------------------------------
1815
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1816
+ -----------------------------------------------------------------------------------------------------
1817
+ ----------------------------------------------------------------------------------------------
1818
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1819
+ ----------------------------------------------------------------------------------------------
1820
+ ---------------------------------------------------------------------------
1821
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1822
+ ---------------------------------------------------------------------------
1823
+ ------------------------------------------------------------------------------------------
1824
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1825
+ ------------------------------------------------------------------------------------------
1826
+ -----------------------------------------------------------------------------------------
1827
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1828
+ -----------------------------------------------------------------------------------------
1829
+ ---------------------------------------------------------------------------------
1830
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1831
+ ---------------------------------------------------------------------------------
1832
+ ----------------------------------------------
1833
+ RailsSso::SsoStrategyTest: test_does_not_store
1834
+ ----------------------------------------------
1835
+ ------------------------------------------------------------------------
1836
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1837
+ ------------------------------------------------------------------------
1838
+ --------------------------------------------------------------------------------------
1839
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1840
+ --------------------------------------------------------------------------------------
1841
+ --------------------------------------------------------------------------------------
1842
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1843
+ --------------------------------------------------------------------------------------
1844
+ ---------------------------------------------------------------------
1845
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1846
+ ---------------------------------------------------------------------
1847
+ ---------------------------------------------------------------------
1848
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1849
+ ---------------------------------------------------------------------
1850
+ -------------------------------------------------------------------
1851
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1852
+ -------------------------------------------------------------------
1853
+ ---------------------------------------------------------------------
1854
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1855
+ ---------------------------------------------------------------------
1856
+ -------------------------------------------------------------
1857
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1858
+ -------------------------------------------------------------
1859
+ --------------------------------------------------------------
1860
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1861
+ --------------------------------------------------------------
1862
+ ----------------------------------------------------
1863
+ SsoRoutesTest: test_should_route_/:provider/callback
1864
+ ----------------------------------------------------
1865
+ ------------------------------------------
1866
+ SsoRoutesTest: test_should_route_/sign_out
1867
+ ------------------------------------------
1868
+ -------------------------------------------------------------------------
1869
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1870
+ -------------------------------------------------------------------------
1871
+ ------------------------
1872
+ RailsSsoTest: test_truth
1873
+ ------------------------
1874
+ ------------------------------------------------------------------------------------------------
1875
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1876
+ ------------------------------------------------------------------------------------------------
1877
+ Processing by RailsSso::SessionsController#create as HTML
1878
+ Parameters: {"provider"=>"developer"}
1879
+ Redirected to http://test.host/
1880
+ Completed 302 Found in 0ms
1881
+ -------------------------------------------------------------------------------------------------------
1882
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1883
+ -------------------------------------------------------------------------------------------------------
1884
+ Processing by RailsSso::SessionsController#destroy as HTML
1885
+ Redirected to http://test.host/
1886
+ Completed 302 Found in 0ms
1887
+ ------------------------------------------------------------------------------------
1888
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
1889
+ ------------------------------------------------------------------------------------
1890
+ ----------------------------------------------------
1891
+ RailsSso::ResponseErrorTest: test_assigns_error_code
1892
+ ----------------------------------------------------
1893
+ ----------------------------------------------------------------------------
1894
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
1895
+ ----------------------------------------------------------------------------
1896
+ ---------------------------------------------------------------------
1897
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1898
+ ---------------------------------------------------------------------
1899
+ --------------------------------------------------------------------------------------
1900
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1901
+ --------------------------------------------------------------------------------------
1902
+ -----------------------------------------------------------------------------------------
1903
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1904
+ -----------------------------------------------------------------------------------------
1905
+ ----------------------------------------------
1906
+ RailsSso::SsoStrategyTest: test_does_not_store
1907
+ ----------------------------------------------
1908
+ ---------------------------------------------------------------------------------
1909
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
1910
+ ---------------------------------------------------------------------------------
1911
+ ------------------------------------------------------------------------
1912
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
1913
+ ------------------------------------------------------------------------
1914
+ --------------------------------------------------------------------------------------
1915
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
1916
+ --------------------------------------------------------------------------------------
1917
+ ----------------------------------------------------------------------------
1918
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1919
+ ----------------------------------------------------------------------------
1920
+ ------------------------------------------------------------------------------------
1921
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1922
+ ------------------------------------------------------------------------------------
1923
+ ------------------------------------------------------------------------------------------
1924
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
1925
+ ------------------------------------------------------------------------------------------
1926
+ ---------------------------------------------------------------------------
1927
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
1928
+ ---------------------------------------------------------------------------
1929
+ ----------------------------------------------------------------------------------------------
1930
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
1931
+ ----------------------------------------------------------------------------------------------
1932
+ -------------------------------------------------------------------------
1933
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1934
+ -------------------------------------------------------------------------
1935
+ ----------------------------------------------------
1936
+ SsoRoutesTest: test_should_route_/:provider/callback
1937
+ ----------------------------------------------------
1938
+ ------------------------------------------
1939
+ SsoRoutesTest: test_should_route_/sign_out
1940
+ ------------------------------------------
1941
+ ---------------------------------------------------------------------
1942
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
1943
+ ---------------------------------------------------------------------
1944
+ -------------------------------------------------------------
1945
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
1946
+ -------------------------------------------------------------
1947
+ -----------------------------------------------------------------------------------------------------
1948
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
1949
+ -----------------------------------------------------------------------------------------------------
1950
+ ------------------------
1951
+ RailsSsoTest: test_truth
1952
+ ------------------------
1953
+ -------------------------------------------------------------------
1954
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
1955
+ -------------------------------------------------------------------
1956
+ --------------------------------------------------------------
1957
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
1958
+ --------------------------------------------------------------
1959
+ ---------------------------------------------------------------------
1960
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
1961
+ ---------------------------------------------------------------------
1962
+ -------------------------------------------------------------
1963
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
1964
+ -------------------------------------------------------------
1965
+ ---------------------------------------------------------------------
1966
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
1967
+ ---------------------------------------------------------------------
1968
+ ------------------------------------------------------------------------------------------------
1969
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
1970
+ ------------------------------------------------------------------------------------------------
1971
+ Processing by RailsSso::SessionsController#create as HTML
1972
+ Parameters: {"provider"=>"developer"}
1973
+ Redirected to http://test.host/
1974
+ Completed 302 Found in 0ms
1975
+ -------------------------------------------------------------------------------------------------------
1976
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
1977
+ -------------------------------------------------------------------------------------------------------
1978
+ Processing by RailsSso::SessionsController#destroy as HTML
1979
+ Redirected to http://test.host/
1980
+ Completed 302 Found in 0ms
1981
+ ----------------------------------------------------------------------------
1982
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
1983
+ ----------------------------------------------------------------------------
1984
+ ------------------------------------------------------------------------------------
1985
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
1986
+ ------------------------------------------------------------------------------------
1987
+ -------------------------------------------------------------------------
1988
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
1989
+ -------------------------------------------------------------------------
1990
+ --------------------------------------------------------------------------------------
1991
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
1992
+ --------------------------------------------------------------------------------------
1993
+ -----------------------------------------------------------------------------------------
1994
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
1995
+ -----------------------------------------------------------------------------------------
1996
+ ---------------------------------------------------------------------
1997
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
1998
+ ---------------------------------------------------------------------
1999
+ ----------------------------------------------
2000
+ RailsSso::SsoStrategyTest: test_does_not_store
2001
+ ----------------------------------------------
2002
+ ------------------------------------------------------------------------
2003
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
2004
+ ------------------------------------------------------------------------
2005
+ ---------------------------------------------------------------------------------
2006
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
2007
+ ---------------------------------------------------------------------------------
2008
+ --------------------------------------------------------------------------------------
2009
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
2010
+ --------------------------------------------------------------------------------------
2011
+ ---------------------------------------------------------------------------
2012
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
2013
+ ---------------------------------------------------------------------------
2014
+ ------------------------------------------------------------------------------------------
2015
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
2016
+ ------------------------------------------------------------------------------------------
2017
+ ----------------------------------------------------------------------------------------------
2018
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
2019
+ ----------------------------------------------------------------------------------------------
2020
+ ------------------------
2021
+ RailsSsoTest: test_truth
2022
+ ------------------------
2023
+ ----------------------------------------------------
2024
+ SsoRoutesTest: test_should_route_/:provider/callback
2025
+ ----------------------------------------------------
2026
+ ------------------------------------------
2027
+ SsoRoutesTest: test_should_route_/sign_out
2028
+ ------------------------------------------
2029
+ ---------------------------------------------------------------------
2030
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
2031
+ ---------------------------------------------------------------------
2032
+ -----------------------------------------------------------------------------------------------------
2033
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
2034
+ -----------------------------------------------------------------------------------------------------
2035
+ -------------------------------------------------------------
2036
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
2037
+ -------------------------------------------------------------
2038
+ -------------------------------------------------------------------------------------------------------
2039
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
2040
+ -------------------------------------------------------------------------------------------------------
2041
+ Processing by RailsSso::SessionsController#destroy as HTML
2042
+ Redirected to http://test.host/
2043
+ Completed 302 Found in 0ms
2044
+ ------------------------------------------------------------------------------------------------
2045
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
2046
+ ------------------------------------------------------------------------------------------------
2047
+ Processing by RailsSso::SessionsController#create as HTML
2048
+ Parameters: {"provider"=>"developer"}
2049
+ Redirected to http://test.host/
2050
+ Completed 302 Found in 0ms
2051
+ ----------------------------------------------------------------------------
2052
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
2053
+ ----------------------------------------------------------------------------
2054
+ ----------------------------------------------------
2055
+ RailsSso::ResponseErrorTest: test_assigns_error_code
2056
+ ----------------------------------------------------
2057
+ ------------------------------------------------------------------------------------
2058
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
2059
+ ------------------------------------------------------------------------------------
2060
+ -------------------------------------------------------------
2061
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
2062
+ -------------------------------------------------------------
2063
+ -------------------------------------------------------------------
2064
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
2065
+ -------------------------------------------------------------------
2066
+ ---------------------------------------------------------------------
2067
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
2068
+ ---------------------------------------------------------------------
2069
+ --------------------------------------------------------------
2070
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
2071
+ --------------------------------------------------------------
2072
+ ---------------------------------------------------------------------
2073
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
2074
+ ---------------------------------------------------------------------
2075
+ ----------------------------------------------------
2076
+ RailsSso::ResponseErrorTest: test_assigns_error_code
2077
+ ----------------------------------------------------
2078
+ ----------------------------------------------------------------------------
2079
+ RailsSso::ResponseErrorTest: test_assigns_unknown_error_message_from_locales
2080
+ ----------------------------------------------------------------------------
2081
+ ------------------------------------------------------------------------------------
2082
+ RailsSso::ResponseErrorTest: test_assigns_unauthenticated_error_message_from_locales
2083
+ ------------------------------------------------------------------------------------
2084
+ -----------------------------------------------------------------------------------------------------
2085
+ RailsSso::FetchUserTest: test_success_call_should_fetch_user_with_access_token_and_return_parsed_data
2086
+ -----------------------------------------------------------------------------------------------------
2087
+ ---------------------------------------------------------------------
2088
+ RailsSso::FetchUserTest: test_unauthenticated_call_should_raise_error
2089
+ ---------------------------------------------------------------------
2090
+ -------------------------------------------------------------
2091
+ RailsSso::FetchUserTest: test_unknown_call_should_raise_error
2092
+ -------------------------------------------------------------
2093
+ --------------------------------------------------------------
2094
+ RailsSso::HelpersTest: test_proxy_signed_in?_to_authenticated?
2095
+ --------------------------------------------------------------
2096
+ ---------------------------------------------------------------------
2097
+ RailsSso::HelpersTest: test_proxy_authenticate_user!_to_authenticate!
2098
+ ---------------------------------------------------------------------
2099
+ -------------------------------------------------------------
2100
+ RailsSso::HelpersTest: test_provide_access_to_warden_instance
2101
+ -------------------------------------------------------------
2102
+ ---------------------------------------------------------------------
2103
+ RailsSso::HelpersTest: test_keep_current_path_on_authentication_start
2104
+ ---------------------------------------------------------------------
2105
+ -------------------------------------------------------------------
2106
+ RailsSso::HelpersTest: test_proxy_current_user_data_to_authenticate
2107
+ -------------------------------------------------------------------
2108
+ ----------------------------------------------------
2109
+ SsoRoutesTest: test_should_route_/:provider/callback
2110
+ ----------------------------------------------------
2111
+ ------------------------------------------
2112
+ SsoRoutesTest: test_should_route_/sign_out
2113
+ ------------------------------------------
2114
+ ----------------------------------------------------------------------------
2115
+ RailsSso::FailureAppTest: test_json_call_runs_respond_action_and_renders_401
2116
+ ----------------------------------------------------------------------------
2117
+ ------------------------------------------------------------------------------------
2118
+ RailsSso::FailureAppTest: test_regular_call_runs_respond_action_and_redirects_to_sso
2119
+ ------------------------------------------------------------------------------------
2120
+ -----------------------------------------------------------------------------------------
2121
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:failure_when_sso_cannot_fetch_user
2122
+ -----------------------------------------------------------------------------------------
2123
+ --------------------------------------------------------------------------------------
2124
+ RailsSso::SsoStrategyTest: test_is_invalid_when_in_test_mode_without_access_token_mock
2125
+ --------------------------------------------------------------------------------------
2126
+ --------------------------------------------------------------------------------------
2127
+ RailsSso::SsoStrategyTest: test_authenticate!_returns_:success_when_sso_can_fetch_user
2128
+ --------------------------------------------------------------------------------------
2129
+ ------------------------------------------------------------------------
2130
+ RailsSso::SsoStrategyTest: test_is_invalid_when_access_token_not_present
2131
+ ------------------------------------------------------------------------
2132
+ ----------------------------------------------
2133
+ RailsSso::SsoStrategyTest: test_does_not_store
2134
+ ----------------------------------------------
2135
+ ---------------------------------------------------------------------
2136
+ RailsSso::SsoStrategyTest: test_is_valid_when_access_token_is_present
2137
+ ---------------------------------------------------------------------
2138
+ ---------------------------------------------------------------------------------
2139
+ RailsSso::SsoStrategyTest: test_is_valid_when_in_test_mode_with_access_token_mock
2140
+ ---------------------------------------------------------------------------------
2141
+ -------------------------------------------------------------------------------------------------------
2142
+ RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
2143
+ -------------------------------------------------------------------------------------------------------
2144
+ Processing by RailsSso::SessionsController#destroy as HTML
2145
+ Redirected to http://test.host/
2146
+ Completed 302 Found in 0ms
2147
+ ------------------------------------------------------------------------------------------------
2148
+ RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
2149
+ ------------------------------------------------------------------------------------------------
2150
+ Processing by RailsSso::SessionsController#create as HTML
2151
+ Parameters: {"provider"=>"developer"}
2152
+ Redirected to http://test.host/
2153
+ Completed 302 Found in 0ms
2154
+ ----------------------------------------------------------------------------------------------
2155
+ RailsSso::AppTest: test_#fetch_user_data_when_invalid_token_returns_nil_and_reset_access_token
2156
+ ----------------------------------------------------------------------------------------------
2157
+ ---------------------------------------------------------------------------
2158
+ RailsSso::AppTest: test_#fetch_user_data_returns_data_based_on_access_token
2159
+ ---------------------------------------------------------------------------
2160
+ ------------------------------------------------------------------------------------------
2161
+ RailsSso::AppTest: test_#fetch_user_data_when_stale_token_refreshes_token_and_returns_data
2162
+ ------------------------------------------------------------------------------------------
2163
+ ------------------------
2164
+ RailsSsoTest: test_truth
2165
+ ------------------------
2166
+ -------------------------------------------------------------------------
2167
+ RailsSso::ConfigurationTest: test_#provider_url_fails_if_not_yet_provided
2168
+ -------------------------------------------------------------------------