Checks user authentication using HTTP Basic Auth.
(user, passwd)
| 257 | |
| 258 | |
| 259 | def check_basic_auth(user, passwd): |
| 260 | """Checks user authentication using HTTP Basic Auth.""" |
| 261 | |
| 262 | auth = request.authorization |
| 263 | return auth and auth.username == user and auth.password == passwd |
| 264 | |
| 265 | |
| 266 |
no outgoing calls
no test coverage detected
searching dependent graphs…