mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-24 23:36:00 +03:00
[PR #3870] feat: Add mocked NpAuth, NpWebApi responses and basic HTTP functionality #3774
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3774
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3870
Author: @mercury501
Created: 12/19/2025
Status: 🔄 Open
Base:
main← Head:http_research📝 Commits (10+)
5811184httplib, np_signaling75695aaWIP sceHttp6fe3bf1sceHttp, sceNpScore8e1377cmocked sceNpWebApiRequestsf4356a2Clang format28c44bdChanged size_t to u64, debug log level, invalid argument errors0fe9a28Added invalid argument to sceNpWebApiGetHttpStatusCode98b9918error handling, added http methods4a1432aFixed http method checkd6fe116Small fixes📊 Changes
17 files changed (+1005 additions, -60 deletions)
View changed files
📝
.gitmodules(+3 -0)📝
CMakeLists.txt(+3 -1)📝
externals/CMakeLists.txt(+4 -0)➕
externals/cpp-httplib(+1 -0)📝
src/common/logging/filter.cpp(+1 -0)📝
src/common/logging/types.h(+1 -0)📝
src/core/libraries/libs.cpp(+2 -0)📝
src/core/libraries/network/http.cpp(+292 -30)📝
src/core/libraries/network/http.h(+326 -9)📝
src/core/libraries/np/np_auth.cpp(+5 -3)📝
src/core/libraries/np/np_error.h(+5 -1)📝
src/core/libraries/np/np_score.cpp(+19 -4)📝
src/core/libraries/np/np_score.h(+2 -1)➕
src/core/libraries/np/np_signaling.cpp(+186 -0)➕
src/core/libraries/np/np_signaling.h(+41 -0)📝
src/core/libraries/np/np_web_api.cpp(+96 -7)📝
src/core/libraries/np/np_web_api.h(+18 -4)📄 Description
Made GetAuthorizationCode from NpAuth return a dummy code (could be exposed in configs to be used for custom authentication like a secret)
Added basic mocked responses to sceNpWebApi for friendList and blockList
Added basic http functionality to sceHttp, for now, every call is redirected to localhost.
Open to suggestions on configs, considerations and enhancements in general.
Cheers!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.