Use 2FA without hands
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 4.8k
- Forks
- 182
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
Hi,
I have gone through the entire Xcode installation/uninstallation process except for how to do hands-free 2FA.
This issue is in case someone comes up with something to make it fully automatic.
For now, I do trust device with my local PC and I put the fastlane spaceauth cookie in a Jenkins parameter, and with that it can be done on remote Mac nodes without manual intervention.
But I wanted to see if the manual step can be avoided on the local PC.
I have tested examples with an AppleScript (to interact to get the code):
#!/usr/bin/env osascript
tell application "System Events"
activate
...
end tell
But when I execute this, opens other window with:
"Terminal.app needs obtain access to control System Events.app...."
Then I go back, I don't know how to do via command line to allow Terminal.app access to System Events.app.
When it ends (get the code), I have seen how to remove the permissions: tccutil reset ...
Does anyone know how I could do this?
Regards
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file, test, or entry point is named. Start by reviewing the AppleScript/System Events permission flow and the tccutil behavior described in the issue, then define a supported command-line path for hands-free 2FA and what successful automation would require.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- authentication, cli, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100