Produce an opaque auth token from a WSGI request environment. Args: environ: A WSGI environment `dict`; see PEP 3333. Returns: A Python object representing an auth token. The representation and semantics depend on the particular `AuthProvider`
(self, environ)
| 21 | """Authentication provider for a specific kind of credential.""" |
| 22 | |
| 23 | def authenticate(self, environ): |
| 24 | """Produce an opaque auth token from a WSGI request environment. |
| 25 | |
| 26 | Args: |
| 27 | environ: A WSGI environment `dict`; see PEP 3333. |
| 28 | |
| 29 | Returns: |
| 30 | A Python object representing an auth token. The representation |
| 31 | and semantics depend on the particular `AuthProvider` |
| 32 | implementation. |
| 33 | |
| 34 | Raises: |
| 35 | Exception: Any error, usually `tensorboard.errors.PublicError` |
| 36 | subclasses (like `PermissionDenied`) but also possibly a |
| 37 | custom error type that should propagate to a WSGI middleware |
| 38 | for effecting a redirect-driven auth flow. |
| 39 | """ |
| 40 | pass |
| 41 | |
| 42 | |
| 43 | class AuthContext: |