Skip to content

Commit

Permalink
remove commented out orcid_cookie_test
Browse files Browse the repository at this point in the history
  • Loading branch information
PeopleMakeCulture committed Jan 20, 2024
1 parent 43c5d6a commit 54eb0f8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions nmdc_runtime/api/endpoints/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@
router = APIRouter()


# @router.get("/orcid_cookie_test", include_in_schema=False)
# def orcid_cookie_test():
# return HTMLResponse(
# '<img src="/static/ORCIDiD_icon128x128.png" />'
# f'<a href="https://orcid.org/oauth/authorize?client_id={ORCID_CLIENT_ID}'
# "&response_type=code&scope=openid&"
# f'redirect_uri={BASE_URL_EXTERNAL}/orcid_code">Login with ORCiD</a>'
# )


# {{GLOBALS_orcid_authorize_url}}&state={{request.url.path}}


@router.get("/orcid_code", response_class=RedirectResponse)
async def receive_orcid_code(request: Request, code: str, state: str | None = None):
rv = requests.post(
Expand Down

0 comments on commit 54eb0f8

Please sign in to comment.