Create an auth context with no registered providers. Returns: A new `AuthContext` value for which any call to `get` will fail with a `KeyError`.
(cls)
| 62 | |
| 63 | @classmethod |
| 64 | def empty(cls): |
| 65 | """Create an auth context with no registered providers. |
| 66 | |
| 67 | Returns: |
| 68 | A new `AuthContext` value for which any call to `get` will |
| 69 | fail with a `KeyError`. |
| 70 | """ |
| 71 | # Use an empty dict for the environ. This is not a valid WSGI |
| 72 | # environment, but it doesn't matter because it's never used. |
| 73 | return cls({}, {}) |
| 74 | |
| 75 | def get(self, provider_key): |
| 76 | """Get an auth token from the auth provider with the given key. |
no outgoing calls
no test coverage detected