Skip to content

Commit

Permalink
Fix handling of oauth_provider argument to panel.io.server.serve
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 31, 2022
1 parent 51b8950 commit ee4cdaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions panel/io/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,11 +736,10 @@ def get_server(panel, port=0, address=None, websocket_origin=None,

# Configure OAuth
from ..config import config
if config.oauth_provider:
from ..auth import OAuthProvider
opts['auth_provider'] = OAuthProvider()
if oauth_provider:
from ..auth import OAuthProvider
config.oauth_provider = oauth_provider
opts['auth_provider'] = OAuthProvider()
if oauth_key:
config.oauth_key = oauth_key
if oauth_extra_params:
Expand Down

0 comments on commit ee4cdaa

Please sign in to comment.