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