Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
moonraker595 committed Nov 13, 2024
1 parent c71524d commit 36f49a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from fastapi import Depends, HTTPException
from fastapi import FastAPI, Response
from fastapi.security import HTTPBearer
from opensearchpy import OpenSearch
from prometheus_client import Counter, generate_latest, CONTENT_TYPE_LATEST
from pydantic import BaseModel
Expand All @@ -11,8 +10,6 @@
from api.config import settings
from api.logger import app_logger

# Define the security scheme to expect an Authorization header
security = HTTPBearer()
app = FastAPI(
title="Search API",
description=" Middleware that verifies a JWT, validates it against Scigateway auth, "
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
"
# Available at localhost:8008/verify
# For JWT testing, copy private key from within container and use jwt.io to create a rs256 based jwt with custom payload:
# For JWT testing, copy private key from the test folder and use jwt.io to create a rs256 based jwt with custom payload:
# {
# "sub": "1234567890",
# "user": "user1",
Expand Down

0 comments on commit 36f49a6

Please sign in to comment.