Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Fix HTTPS enforcement in UserInfoHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
vamsii777 committed Feb 13, 2024
1 parent f34798b commit ef6d55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/VaporOAuth/RouteHandlers/UserInfoHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct UserInfoHandler {

// Enforce HTTPS in production environment
if environment == .production {
guard req.url.scheme == "https" else {
guard req.url.scheme != "https" else {
throw Abort(.badRequest, reason: "UserInfo endpoint requires HTTPS")
}
}
Expand Down

0 comments on commit ef6d55c

Please sign in to comment.