|
92 | 92 | expect(redirect_url).not_to have_query('auth0Client') |
93 | 93 | expect(redirect_url).not_to have_query('connection') |
94 | 94 | expect(redirect_url).not_to have_query('connection_scope') |
| 95 | + expect(redirect_url).not_to have_query('ext-test') |
95 | 96 | expect(redirect_url).not_to have_query('prompt') |
96 | 97 | expect(redirect_url).not_to have_query('screen_hint') |
97 | 98 | expect(redirect_url).not_to have_query('login_hint') |
|
111 | 112 | expect(redirect_url).to have_query('connection', 'abcd') |
112 | 113 | expect(redirect_url).not_to have_query('auth0Client') |
113 | 114 | expect(redirect_url).not_to have_query('connection_scope') |
| 115 | + expect(redirect_url).not_to have_query('ext-test') |
114 | 116 | expect(redirect_url).not_to have_query('prompt') |
115 | 117 | expect(redirect_url).not_to have_query('screen_hint') |
116 | 118 | expect(redirect_url).not_to have_query('login_hint') |
|
139 | 141 | expect(redirect_url).to have_query('prompt', 'login') |
140 | 142 | expect(redirect_url).not_to have_query('auth0Client') |
141 | 143 | expect(redirect_url).not_to have_query('connection') |
| 144 | + expect(redirect_url).not_to have_query('ext-test') |
142 | 145 | expect(redirect_url).not_to have_query('login_hint') |
143 | 146 | expect(redirect_url).not_to have_query('organization') |
144 | 147 | expect(redirect_url).not_to have_query('invitation') |
|
156 | 159 | expect(redirect_url).to have_query('screen_hint', 'signup') |
157 | 160 | expect(redirect_url).not_to have_query('auth0Client') |
158 | 161 | expect(redirect_url).not_to have_query('connection') |
| 162 | + expect(redirect_url).not_to have_query('ext-test') |
159 | 163 | expect(redirect_url).not_to have_query('login_hint') |
160 | 164 | expect(redirect_url).not_to have_query('organization') |
161 | 165 | expect(redirect_url).not_to have_query('invitation') |
|
175 | 179 | expect(redirect_url).not_to have_query('auth0Client') |
176 | 180 | expect(redirect_url).not_to have_query('connection') |
177 | 181 | expect(redirect_url).not_to have_query('connection_scope') |
| 182 | + expect(redirect_url).not_to have_query('ext-test') |
178 | 183 | expect(redirect_url).not_to have_query('prompt') |
179 | 184 | expect(redirect_url).not_to have_query('screen_hint') |
180 | 185 | expect(redirect_url).not_to have_query('login_hint') |
|
193 | 198 | expect(redirect_url).not_to have_query('auth0Client') |
194 | 199 | expect(redirect_url).not_to have_query('connection') |
195 | 200 | expect(redirect_url).not_to have_query('connection_scope') |
| 201 | + expect(redirect_url).not_to have_query('ext-test') |
| 202 | + expect(redirect_url).not_to have_query('prompt') |
| 203 | + expect(redirect_url).not_to have_query('screen_hint') |
| 204 | + expect(redirect_url).not_to have_query('organization') |
| 205 | + expect(redirect_url).not_to have_query('invitation') |
| 206 | + end |
| 207 | + |
| 208 | + it 'redirects to hosted login page with ext-test=testval' do |
| 209 | + get 'auth/auth0?ext-test=testval' |
| 210 | + expect(last_response.status).to eq(302) |
| 211 | + redirect_url = last_response.headers['Location'] |
| 212 | + expect(redirect_url).to start_with('https://samples.auth0.com/authorize') |
| 213 | + expect(redirect_url).to have_query('response_type', 'code') |
| 214 | + expect(redirect_url).to have_query('state') |
| 215 | + expect(redirect_url).to have_query('client_id') |
| 216 | + expect(redirect_url).to have_query('redirect_uri') |
| 217 | + expect(redirect_url).to have_query('ext-test', 'testval') |
| 218 | + expect(redirect_url).not_to have_query('auth0Client') |
| 219 | + expect(redirect_url).not_to have_query('connection') |
| 220 | + expect(redirect_url).not_to have_query('connection_scope') |
| 221 | + expect(redirect_url).not_to have_query('login_hint') |
196 | 222 | expect(redirect_url).not_to have_query('prompt') |
197 | 223 | expect(redirect_url).not_to have_query('screen_hint') |
198 | 224 | expect(redirect_url).not_to have_query('organization') |
|
0 commit comments