File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 111111
112112 it 'should validate urls with credentials' do
113113 url_with_creds = 'https://user:pass@mycompany.com/myapp.php?foo=1&bar=2'
114- signature = 'CukzLTc1tT5dXEDIHm/tKBanW10 =' # expected hash of the url
114+ signature = 'ZQFR1PTIZXF2MXB8ZnKCvnnA+rI =' # expected hash of the url
115115 expect ( validator . validate ( url_with_creds , params , signature ) ) . to eq ( true )
116116 end
117117
118118 it 'should validate urls with just username' do
119119 url_with_creds = 'https://user@mycompany.com/myapp.php?foo=1&bar=2'
120- signature = '2YRLlVAflCqxaNicjMpJcSTgzSs =' # expected hash of the url
120+ signature = 'aZfj4hyX1MLZhSS6QIL18Vn2/RA =' # expected hash of the url
121121 expect ( validator . validate ( url_with_creds , params , signature ) ) . to eq ( true )
122122 end
123123
You can’t perform that action at this time.
0 commit comments