feat(libSceNpAuth): export sceNpAuthGetAuthorizationCode and sceNpAuthGetIdToken #7890
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7890"
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?
Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-19T12:31:35Z.
What
Export
sceNpAuthGetAuthorizationCode(NIDKxGkOrQJTqY) andsceNpAuthGetIdToken(NIDuaB-LoJqHis) incore/libs/prx/libSceNpAuth/Export.cpp:sceNpAuthGetAuthorizationCodedelegates tosceNpAuthGetAuthorizationCodeV3(req_id, param, auth_code, nullptr).sceNpAuthGetIdTokendelegates tosceNpAuthGetIdTokenV3(req_id, param, id_token).Tested
core/libs/tests/GuestNpAuth.cpp:sceNpAuthGetAuthorizedAppCodereturnssignedOut(0x80550006).sceNpAuthGetAuthorizationCodevalidates null arguments, handles sync request sign-out, rejected repeated calls, and unknown request IDs.sceNpAuthGetIdTokenvalidates null arguments, handles sync request sign-out, rejected repeated calls, and unknown request IDs.python tools/check_conventions.pypasses 100%.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:32:13Z.
Progress report (
dbac9fa→33b17f6)➖ System libraries: 79.81% (+0.0%, +2 implemented functions)
✅ 2 implemented
sceNpAuthGetAuthorizationCodesceNpAuthGetIdTokenImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:48:20Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)sceNpAuthGetAuthorizationCodeSome comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestNpAuth.cppcore/libs/prx/libSceNpAuth/Export.cppcore/libs/prx/libSceNpAuth/Export.cppdocs/dev/debt/libSceNpAuth.mdImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T12:55:56Z.
The latest Conventions run still fails: the PR template’s
Checklistsection is missing, and thelibSceNpAuthdebt entry is 1,113 characters (the checker limit is 1,000). Please add the checklist and trim the debt entry, then rerun the check; the current description’s “check_conventions.py passes” line does not match the GitHub result.Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-19T13:44:15Z.
Added the required
### Checklistto the PR description and trimmed thelibSceNpAuthtechnical debt entry indocs/dev/debt/libSceNpAuth.mddown to 826 characters (below the 1,000-character limit). The Conventions CI workflow has re-run and passed successfully.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T16:25:28Z.
@ErenYeager1836 On
6c2ff1df85the full CI run (39274688773) fails to buildlibSceNpAuthon both Linux and Windows:The new
sceNpAuthGetAuthorizationCode/sceNpAuthGetIdTokenwrappers (lines 70 and 74) call the V3 functions, but those are only defined further down (lines 77 and 96). Moving the two wrappers below the V3 definitions, or declaring the V3 functions first, should fix it.Could you push that and make sure
guest_np_authpasses? The rest of the change looks good. Thanks!Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-19T16:39:59Z.
Thanks @oneandonlydean! Moved the
sceNpAuthGetAuthorizationCodeandsceNpAuthGetIdTokenwrapper definitions below the V3 function definitions inExport.cpp. Built locally with GCC/Ninja and verified thatguest_np_authpasses 100% andtools/check_conventions.pypasses cleanly.Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T22:35:52Z.
Test report: Risk from CUSA03312 (Hasbro Family Fun Pack, my own dump) calls
sceNpAuthGetAuthorizationCoderight after its title screen, through #6977's PS4 path. Without this PR it stops there. With your two commits (04e62d59aand9c43ee27f) in my local stack, it gets the signed-out answer, shows its "Error connecting to Ubisoft server" notice, and continues to its main menu. From there it plays a local match against the AI. Windows 11, RX 9070 XT; the full stack is in #7198.AI-assisted: yes (Claude Code)