MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / authenticate

Method authenticate

tensorboard/auth.py:23–40  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
43class AuthContext:

Callers 1

getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected