SwiftPrivilegedHelper | Example application using a privileged helper tool | Authentication library

 by   erikberglund Swift Version: Current License: MIT

kandi X-RAY | SwiftPrivilegedHelper Summary

kandi X-RAY | SwiftPrivilegedHelper Summary

SwiftPrivilegedHelper is a Swift library typically used in Security, Authentication applications. SwiftPrivilegedHelper has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This is an example application to demonstrate how to use a privileged helper tool with authentication in Swift 4.2. Please undestand the code and improve and customize it to suit your needs and your application.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SwiftPrivilegedHelper has a low active ecosystem.
              It has 129 star(s) with 23 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 13 open issues and 12 have been closed. On average issues are closed in 61 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of SwiftPrivilegedHelper is current.

            kandi-Quality Quality

              SwiftPrivilegedHelper has no bugs reported.

            kandi-Security Security

              SwiftPrivilegedHelper has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              SwiftPrivilegedHelper is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              SwiftPrivilegedHelper releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SwiftPrivilegedHelper
            Get all kandi verified functions for this library.

            SwiftPrivilegedHelper Key Features

            No Key Features are available at this moment for SwiftPrivilegedHelper.

            SwiftPrivilegedHelper Examples and Code Snippets

            No Code Snippets are available at this moment for SwiftPrivilegedHelper.

            Community Discussions

            Trending Discussions on SwiftPrivilegedHelper

            QUESTION

            Verify that a helper tool is installed
            Asked 2019-Jan-29 at 05:35

            I'm writing a macOS app in Swift that needs a privileged helper tool -- wish the elevation wasn't necessary, but it looks like it is.

            I found this excellent example application especially tailored for this scenario. I've managed to port its code to my own app, but I'm stuck at the point where I need to check if the helper tool is installed, and if it isn't, use SMJobBless() and friends to install it.

            When running the example app, if the helper tool is not installed, the app stays stuck at the following screen:

            To be clear, from reading the code, I thought it was supposed to update the label to "Helper Installed: No" at some point, but that doesn't seem to happen.

            If I click "Install Helper", this is the result.

            From now on, unless I manually remove the helper tool, rerunning the app will display this screen with "Helper Installed: Yes".

            This behavior might be OK in this example situation where the user has to manually click on the "Install Helper" button. However, in my app, I would like it to automatically request installation of the helper tool if it's not installed yet. If it's already installed, I don't want to waste the user's time requesting their password again.

            I thought this would be simple enough: if the helper tool is not available, somewhere along the process of connecting to it, an error would happen, which is the trigger for me to request installation of the tool. If no errors happen, it's assumed that the tool was already installed.

            Here is the hacked together code that I wrote for connecting to the helper tool via XPC:

            ...

            ANSWER

            Answered 2019-Jan-19 at 14:02

            I would check the file system if the binary exists (in /Library/PrivilegedHelperTools and if the plist exists in /Library/LaunchDaemons). Then you might contact the XPC service and call kind of a ping function which answers if the service is up and running.

            just my 2 cts,

            Robert

            Source https://stackoverflow.com/questions/54264378

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install SwiftPrivilegedHelper

            To test the project, you need to update it to use your own signing certificate.

            Support

            Use SMJobBlessUtil.py and correct all issues reported until it doesn't show any output.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/erikberglund/SwiftPrivilegedHelper.git

          • CLI

            gh repo clone erikberglund/SwiftPrivilegedHelper

          • sshUrl

            git@github.com:erikberglund/SwiftPrivilegedHelper.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by erikberglund

            Scripts

            by erikberglundShell

            AppleNVRAM

            by erikberglundShell

            AppBlocker

            by erikberglundPython

            ProfileManagerKeyExtractor

            by erikberglundPython

            servermgr_commands

            by erikberglundShell