rails_sso 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_sso/helpers.rb +1 -1
- data/lib/rails_sso/version.rb +1 -1
- data/test/dummy/log/test.log +356 -0
- data/test/routes/sso_routes_test.rb +25 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 293476ec400ac5ebb791ab9f9cbcd2295d01e615
|
4
|
+
data.tar.gz: 6e7b5864d01cca76d4c9fc042b582fc06f5e75f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1745b2047f5ec91329f88d8a65a0b8ca16b6e0bfbf607fbb74260e6fe1433fc257cc803f7bab2fdc6f7ee5ed06674132c2bcde3c8cb3ea79b1696503552688e
|
7
|
+
data.tar.gz: 83798cf03f473f3425733f420d123f768d2212f6ff59e9ad2be3f34c321e1e3c14315ae9c023ca1177d6405ddedbf10eb12c1fb5dd3feadb542df3d5421cec75
|
data/lib/rails_sso/helpers.rb
CHANGED
data/lib/rails_sso/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -2015,3 +2015,359 @@ RailsSsoTest: test_truth
|
|
2015
2015
|
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2016
2016
|
--------------------------------------------------------------------------------------------
|
2017
2017
|
[1m[35m (0.1ms)[0m rollback transaction
|
2018
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2019
|
+
--------------------------------------------------------------------------------------------
|
2020
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2021
|
+
--------------------------------------------------------------------------------------------
|
2022
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2023
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2024
|
+
--------------------------------------------------------------------------------------------
|
2025
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2026
|
+
--------------------------------------------------------------------------------------------
|
2027
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2029
|
+
------------------------------------------------------------------------------------------------
|
2030
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2031
|
+
------------------------------------------------------------------------------------------------
|
2032
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2033
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2034
|
+
--------------------------------------------
|
2035
|
+
SsoRoutesTest: test_should_route_to_sign_out
|
2036
|
+
--------------------------------------------
|
2037
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2038
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2039
|
+
------------------------------------------------------------------------------------------------
|
2040
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2041
|
+
------------------------------------------------------------------------------------------------
|
2042
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2043
|
+
Parameters: {"provider"=>"developer"}
|
2044
|
+
Redirected to http://test.host/
|
2045
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2046
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2047
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2048
|
+
-------------------------------------------------------------------------------------------------------
|
2049
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2050
|
+
-------------------------------------------------------------------------------------------------------
|
2051
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2052
|
+
Redirected to http://test.host/
|
2053
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2054
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2055
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2056
|
+
------------------------
|
2057
|
+
RailsSsoTest: test_truth
|
2058
|
+
------------------------
|
2059
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2060
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2061
|
+
--------------------------------------------------------------------------------------------
|
2062
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2063
|
+
--------------------------------------------------------------------------------------------
|
2064
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2066
|
+
-------------------------------------------------------------------------------------------------------
|
2067
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2068
|
+
-------------------------------------------------------------------------------------------------------
|
2069
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2070
|
+
Redirected to http://test.host/
|
2071
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2072
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2073
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2074
|
+
------------------------------------------------------------------------------------------------
|
2075
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2076
|
+
------------------------------------------------------------------------------------------------
|
2077
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2078
|
+
Parameters: {"provider"=>"developer"}
|
2079
|
+
Redirected to http://test.host/
|
2080
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2081
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2082
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2083
|
+
------------------------
|
2084
|
+
RailsSsoTest: test_truth
|
2085
|
+
------------------------
|
2086
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2087
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2088
|
+
--------------------------------------------
|
2089
|
+
SsoRoutesTest: test_should_route_to_sign_out
|
2090
|
+
--------------------------------------------
|
2091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2092
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2093
|
+
------------------------------------------------------------------------------------------------
|
2094
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2095
|
+
------------------------------------------------------------------------------------------------
|
2096
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2097
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2098
|
+
--------------------------------------------------------------------------------------------
|
2099
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2100
|
+
--------------------------------------------------------------------------------------------
|
2101
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2102
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2103
|
+
--------------------------------------------
|
2104
|
+
SsoRoutesTest: test_should_route_to_sign_out
|
2105
|
+
--------------------------------------------
|
2106
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2108
|
+
------------------------------------------------------------------------------------------------
|
2109
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2110
|
+
------------------------------------------------------------------------------------------------
|
2111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2113
|
+
--------------------------------------------------------------------------------------------
|
2114
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2115
|
+
--------------------------------------------------------------------------------------------
|
2116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2118
|
+
-------------------------------------------------------------------------------------------------------
|
2119
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2120
|
+
-------------------------------------------------------------------------------------------------------
|
2121
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2122
|
+
Redirected to http://test.host/
|
2123
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2124
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2126
|
+
------------------------------------------------------------------------------------------------
|
2127
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2128
|
+
------------------------------------------------------------------------------------------------
|
2129
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2130
|
+
Parameters: {"provider"=>"developer"}
|
2131
|
+
Redirected to http://test.host/
|
2132
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2133
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2135
|
+
------------------------
|
2136
|
+
RailsSsoTest: test_truth
|
2137
|
+
------------------------
|
2138
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2140
|
+
--------------------------------------------------------------------------------------------
|
2141
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2142
|
+
--------------------------------------------------------------------------------------------
|
2143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2145
|
+
--------------------------------------------------------------------------------------------
|
2146
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2147
|
+
--------------------------------------------------------------------------------------------
|
2148
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2150
|
+
------------------------------------------------------------------------------------------------
|
2151
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2152
|
+
------------------------------------------------------------------------------------------------
|
2153
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2154
|
+
Parameters: {"provider"=>"developer"}
|
2155
|
+
Redirected to http://test.host/
|
2156
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2158
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2159
|
+
-------------------------------------------------------------------------------------------------------
|
2160
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2161
|
+
-------------------------------------------------------------------------------------------------------
|
2162
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2163
|
+
Redirected to http://test.host/
|
2164
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2165
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2167
|
+
--------------------------------------------
|
2168
|
+
SsoRoutesTest: test_should_route_to_sign_out
|
2169
|
+
--------------------------------------------
|
2170
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2172
|
+
------------------------
|
2173
|
+
RailsSsoTest: test_truth
|
2174
|
+
------------------------
|
2175
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2177
|
+
--------------------------------------------------------------------------------------------
|
2178
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2179
|
+
--------------------------------------------------------------------------------------------
|
2180
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2182
|
+
------------------------------------------------------------------------------------------------
|
2183
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2184
|
+
------------------------------------------------------------------------------------------------
|
2185
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2186
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2187
|
+
--------------------------------------------------------------------------------------------
|
2188
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2189
|
+
--------------------------------------------------------------------------------------------
|
2190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2192
|
+
------------------------------------------------------------------------------------------------
|
2193
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2194
|
+
------------------------------------------------------------------------------------------------
|
2195
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2196
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2197
|
+
--------------------------------------------------------------------------------------------
|
2198
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2199
|
+
--------------------------------------------------------------------------------------------
|
2200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2202
|
+
------------------------------------------------------------------------------------------------
|
2203
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2204
|
+
------------------------------------------------------------------------------------------------
|
2205
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2206
|
+
Parameters: {"provider"=>"developer"}
|
2207
|
+
Redirected to http://test.host/
|
2208
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2209
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2211
|
+
-------------------------------------------------------------------------------------------------------
|
2212
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2213
|
+
-------------------------------------------------------------------------------------------------------
|
2214
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2215
|
+
Redirected to http://test.host/
|
2216
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2217
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2219
|
+
--------------------------------------------
|
2220
|
+
SsoRoutesTest: test_should_route_to_sign_out
|
2221
|
+
--------------------------------------------
|
2222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2224
|
+
------------------------
|
2225
|
+
RailsSsoTest: test_truth
|
2226
|
+
------------------------
|
2227
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2228
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2229
|
+
------------------------------------------------------------------------------------------------
|
2230
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2231
|
+
------------------------------------------------------------------------------------------------
|
2232
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2234
|
+
--------------------------------------------------------------------------------------------
|
2235
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2236
|
+
--------------------------------------------------------------------------------------------
|
2237
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2239
|
+
--------------------------------------------------------------------------------------------
|
2240
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2241
|
+
--------------------------------------------------------------------------------------------
|
2242
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2244
|
+
--------------------------------------------------
|
2245
|
+
SsoRoutesTest: test_should_route_/example/callback
|
2246
|
+
--------------------------------------------------
|
2247
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2249
|
+
------------------------------------------
|
2250
|
+
SsoRoutesTest: test_should_route_/sign_out
|
2251
|
+
------------------------------------------
|
2252
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2253
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2254
|
+
------------------------------------------------------------------------------------------------
|
2255
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2256
|
+
------------------------------------------------------------------------------------------------
|
2257
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2258
|
+
Parameters: {"provider"=>"developer"}
|
2259
|
+
Redirected to http://test.host/
|
2260
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
2261
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2262
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2263
|
+
-------------------------------------------------------------------------------------------------------
|
2264
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2265
|
+
-------------------------------------------------------------------------------------------------------
|
2266
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2267
|
+
Redirected to http://test.host/
|
2268
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2269
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2270
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2271
|
+
------------------------
|
2272
|
+
RailsSsoTest: test_truth
|
2273
|
+
------------------------
|
2274
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2276
|
+
------------------------
|
2277
|
+
RailsSsoTest: test_truth
|
2278
|
+
------------------------
|
2279
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2280
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2281
|
+
----------------------------------------------------
|
2282
|
+
SsoRoutesTest: test_should_route_/:provider/callback
|
2283
|
+
----------------------------------------------------
|
2284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2285
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2286
|
+
------------------------------------------
|
2287
|
+
SsoRoutesTest: test_should_route_/sign_out
|
2288
|
+
------------------------------------------
|
2289
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2290
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2291
|
+
-------------------------------------------------------------------------------------------------------
|
2292
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2293
|
+
-------------------------------------------------------------------------------------------------------
|
2294
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2295
|
+
Redirected to http://test.host/
|
2296
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2297
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2299
|
+
------------------------------------------------------------------------------------------------
|
2300
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2301
|
+
------------------------------------------------------------------------------------------------
|
2302
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2303
|
+
Parameters: {"provider"=>"developer"}
|
2304
|
+
Redirected to http://test.host/
|
2305
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2306
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2307
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2308
|
+
------------------------------------------------------------------------------------------------
|
2309
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2310
|
+
------------------------------------------------------------------------------------------------
|
2311
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2312
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2313
|
+
--------------------------------------------------------------------------------------------
|
2314
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2315
|
+
--------------------------------------------------------------------------------------------
|
2316
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2318
|
+
--------------------------------------------------------------------------------------------
|
2319
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2320
|
+
--------------------------------------------------------------------------------------------
|
2321
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2322
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2323
|
+
------------------------------------------
|
2324
|
+
SsoRoutesTest: test_should_route_/sign_out
|
2325
|
+
------------------------------------------
|
2326
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2328
|
+
----------------------------------------------------
|
2329
|
+
SsoRoutesTest: test_should_route_/:provider/callback
|
2330
|
+
----------------------------------------------------
|
2331
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2333
|
+
----------------------------------
|
2334
|
+
SsoRoutesTest: test_should_route_/
|
2335
|
+
----------------------------------
|
2336
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2337
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2338
|
+
------------------------------------------------------------------------------------------------
|
2339
|
+
RailsSso::UpdateUserTest: test_call_should_create_user_if_not_exists_in_repository_and_return_it
|
2340
|
+
------------------------------------------------------------------------------------------------
|
2341
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2342
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2343
|
+
--------------------------------------------------------------------------------------------
|
2344
|
+
RailsSso::UpdateUserTest: test_call_should_update_user_if_exists_in_repository_and_return_it
|
2345
|
+
--------------------------------------------------------------------------------------------
|
2346
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2348
|
+
--------------------------------------------------------------------------------------------
|
2349
|
+
RailsSso::FetchUserTest: test_call_should_fetch_user_with_access_token_and_yield_parsed_data
|
2350
|
+
--------------------------------------------------------------------------------------------
|
2351
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2352
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2353
|
+
------------------------------------------------------------------------------------------------
|
2354
|
+
RailsSso::SessionsControllerTest: test_create_should_save_access_token_and_redirect_to_root_path
|
2355
|
+
------------------------------------------------------------------------------------------------
|
2356
|
+
Processing by RailsSso::SessionsController#create as HTML
|
2357
|
+
Parameters: {"provider"=>"developer"}
|
2358
|
+
Redirected to http://test.host/
|
2359
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2360
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2362
|
+
-------------------------------------------------------------------------------------------------------
|
2363
|
+
RailsSso::SessionsControllerTest: test_destroy_should_invalidate_access_token_and_redirect_to_root_path
|
2364
|
+
-------------------------------------------------------------------------------------------------------
|
2365
|
+
Processing by RailsSso::SessionsController#destroy as HTML
|
2366
|
+
Redirected to http://test.host/
|
2367
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2370
|
+
------------------------
|
2371
|
+
RailsSsoTest: test_truth
|
2372
|
+
------------------------
|
2373
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SsoRoutesTest < ActionController::TestCase
|
4
|
+
def setup
|
5
|
+
@routes = RailsSso::Engine.routes
|
6
|
+
end
|
7
|
+
|
8
|
+
test 'should route /sign_out' do
|
9
|
+
assert_routing({
|
10
|
+
method: 'delete',
|
11
|
+
path: '/sign_out'
|
12
|
+
}, {
|
13
|
+
controller: 'rails_sso/sessions',
|
14
|
+
action: 'destroy'
|
15
|
+
})
|
16
|
+
end
|
17
|
+
|
18
|
+
test 'should route /:provider/callback' do
|
19
|
+
assert_routing('/example/callback', {
|
20
|
+
controller: 'rails_sso/sessions',
|
21
|
+
action: 'create',
|
22
|
+
provider: 'example'
|
23
|
+
})
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Dudulski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- test/dummy/public/500.html
|
155
155
|
- test/dummy/public/favicon.ico
|
156
156
|
- test/rails_sso_test.rb
|
157
|
+
- test/routes/sso_routes_test.rb
|
157
158
|
- test/services/rails_sso/fetch_user_test.rb
|
158
159
|
- test/services/rails_sso/update_user_test.rb
|
159
160
|
- test/test_helper.rb
|
@@ -224,3 +225,4 @@ test_files:
|
|
224
225
|
- test/dummy/app/assets/stylesheets/application.css
|
225
226
|
- test/dummy/log/test.log
|
226
227
|
- test/dummy/Rakefile
|
228
|
+
- test/routes/sso_routes_test.rb
|