Skip to content

Commit afcef97

Browse files
committed
rm remaining public routes bits
1 parent 88326e6 commit afcef97

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

dash_auth/auth.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ def __init__(self, app: Dash, **obsolete):
99
"""Auth base class for authentication in Dash.
1010
1111
:param app: Dash app
12-
:param public_routes: list of public routes, routes should follow the
13-
Flask route syntax
1412
"""
1513

1614
# Deprecated arguments
@@ -25,9 +23,8 @@ def __init__(self, app: Dash, **obsolete):
2523
def _protect(self):
2624
"""Add a before_request authentication check on all routes.
2725
28-
The authentication check will pass if either
29-
* The endpoint is marked as public via `add_public_routes`
30-
* The request is authorised by `Auth.is_authorised`
26+
The authentication check will pass if the request
27+
is authorised by `Auth.is_authorised`
3128
"""
3229

3330
server = self.app.server

dash_auth/basic_auth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ def __init__(
1111
self,
1212
app: Dash,
1313
username_password_list: Union[list, dict],
14-
public_routes: Optional[list] = None,
1514
):
1615
"""Add basic authentication to Dash.
1716
1817
:param app: Dash app
1918
:param username_password_list: username:password list, either as a
2019
list of tuples or a dict
21-
:param public_routes: list of public routes, routes should follow the
22-
Flask route syntax
2320
"""
24-
Auth.__init__(self, app, public_routes=public_routes)
21+
Auth.__init__(self, app)
2522
self._users = (
2623
username_password_list
2724
if isinstance(username_password_list, dict)

0 commit comments

Comments
 (0)