Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do I have to enter a keychain value everytime when I connect wifi? #11

Closed
you6878 opened this issue Nov 25, 2019 · 3 comments
Closed

Do I have to enter a keychain value everytime when I connect wifi? #11

you6878 opened this issue Nov 25, 2019 · 3 comments

Comments

@you6878
Copy link

you6878 commented Nov 25, 2019

Screen Shot 2019-11-26 at 1 28 04 AM

Screen Shot 2019-11-26 at 1 23 52 AM

Thank you. I'm glad I'm using it.
Do I have to enter a keychain value everytime when I connect wifi?
Can't I enter a keychain value automatically?

@jpuris
Copy link
Contributor

jpuris commented Nov 25, 2019

+1 can reproduce.

@mrodalgaard
Copy link
Owner

Hi,

The problem is that to join an access point from the terminal / bash you need the wifi password (using networksetup -setairportnetwork ). And to get the wifi password of a known access point you need the administration permissions. The application is actually fetching the wifi password from your keychain once you give it the rights to do so. See https://github.com/mrodalgaard/alfred-network-workflow/blob/master/src/ap.sh#L13 which is causing the popup you are showing in your issue.

There is however a workaround shortly described by forgetfuljames at https://superuser.com/a/1046481/439307 and in more details by Allan Odgaard at https://macromates.com/blog/2006/keychain-access-from-shell/ . To summarise; you can add the security application as an allowed application to the specific wifi password in your keychain. Thereby security is allowed to fetch the wifi password as mentioned above without prompting for administration permissions.

If you think this will be helpful for others, I will add instructions to the README.

@mrodalgaard
Copy link
Owner

For now I will note this in the README and link to the above quick fix. I do not want this Alfred extension to be responsible for storing the users access point passwords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants