Skip to content

Commit

Permalink
fix import error when not using oidc_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence committed Feb 15, 2024
1 parent 34b2287 commit f64ce1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cnaas_nms/tools/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def get_oauth_identity() -> str:
get_identity = get_oauth_identity
login_required_all_permitted = oauth_required(scopes=["always_permitted"])
else:
oauth_required = None
login_required = jwt_required
get_identity = get_jwt_identity
login_required_all_permitted = jwt_required

0 comments on commit f64ce1a

Please sign in to comment.