Auth#
- class lumen.dashboard.Auth(**params)#
Auth allows specifying a spec that is validated against panel.state.user_info.
To enable Auth you must configure an OAuth provider when deploying an application with panel.serve.
Parameters#
case_sensitive
type: bool
default: False
Whether auth validation is case-sensitive or not.
name
type: str
default: 'Auth'
String identifier for this object.
spec
type: dict
default: {}
Dictionary of keys and values to match the pn.state.user_infoagainst.
Methods#
- Auth.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any] #
Exports the full specification to reconstruct this component.
- Parameters:
context (Dict[str, Any]) – Context contains the specification of all previously serialized components, e.g. to allow resolving of references.
- Return type:
Declarative specification of this component.