Skip to content

Commit

Permalink
added new var in env file and sso login for the endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
immortalcodes committed Sep 20, 2024
1 parent 9a8aa86 commit 0ea5db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ OS_AUTH_URL=http://localhost:8080/auth/v1.0
OS_USERNAME=test:tester
OS_PASSWORD=testing
OS_AUTH_VERSION=1.0
DIRECTORY_API_TOKEN=ADD_DIRECTORY_API_TOKEN_HERE
3 changes: 2 additions & 1 deletion webapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# Local
from webapp.database import db_session
from webapp.decorators import token_required
from webapp.sso import login_required
from webapp.lib.file_helpers import get_mimetype, remove_filename_hash
from webapp.lib.http_helpers import set_headers_for_type
from webapp.lib.processors import ImageProcessor
Expand Down Expand Up @@ -377,7 +378,7 @@ def delete_redirect(redirect_path):
return jsonify({}), 204


@token_required
@login_required
def get_users(username: str):
query = """
query($name: String!) {
Expand Down

0 comments on commit 0ea5db0

Please sign in to comment.