Swiftpack.co - CharlesJS/CSAuthSample as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift and ObjC-based library to assist with implementing a privileged helper tool in a macOS application.
.package(url: "https://github.com/CharlesJS/CSAuthSample.git", from: "3.0.2")


This is a set of libraries that will assist in writing privileged helper tools for macOS applications. It is intended to be a little more up to date and easier to use than Apple's aging EvenBetterAuthorizationSample. Pacifist has been using it for some time.

CSAuthSample began as a port of Nathan de Vries’ SMJobBlessXPC, although it has been rewritten so many times that I doubt any of the original code remains. At some point it was rewritten around Apple’s BetterAuthorizationSample. More recently it has been rewritten around Apple's EvenBetterAuthorizationSample. This latest rewrite uses NSXPCConnection, and thus requires the helper to be written in either Objective-C or Swift. For users that require the helper to be in straight C, the older code using libxpc is available in the 'c-helper' branch.

The current code assumes the front-end application will be written in Swift. Either Objective-C or Swift can be used to write the helper tool. If you wish to use Swift for the full stack, a Swift package is available. For your convenience, there is an example app project included that will show you how to write a Swift-based helper app and corresponding client app.

CSAuthSample is free to use under the terms of the MIT license.



Stars: 7
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics