A no-op auth handler.
| 616 | |
| 617 | |
| 618 | class NoopAuthHandler(ServerAuthHandler): |
| 619 | """A no-op auth handler.""" |
| 620 | |
| 621 | def authenticate(self, outgoing, incoming): |
| 622 | """Do nothing.""" |
| 623 | |
| 624 | def is_valid(self, token): |
| 625 | """ |
| 626 | Returning an empty string. |
| 627 | Returning None causes Type error. |
| 628 | """ |
| 629 | return "" |
| 630 | |
| 631 | |
| 632 | def case_insensitive_header_lookup(headers, lookup_key): |