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

Persistent Login is ignored on MacOS #1306

Open
Maddog0057 opened this issue Oct 17, 2024 · 5 comments
Open

Persistent Login is ignored on MacOS #1306

Maddog0057 opened this issue Oct 17, 2024 · 5 comments

Comments

@Maddog0057
Copy link

I am using Commander (16.11.15 installed via PKG) on MacOS 14.5 with an M2 CPU. I have Persistent Login set and my device timeout is 14 days, however, I am prompted to perform SSO authentication after every command.

I have a second machine running Ubuntu 24.04 and Commander 16.11.14 (installed via pip) that does not exhibit the same behavior and seems to respect the device timeout.

I am also unable to install Commander via pip on the Mac as it runs into dependency issues with libav.

Please let me know what additional information I can provide.

@sk-keeper
Copy link
Collaborator

sk-keeper commented Oct 17, 2024

I have Persistent Login set and my device timeout is 14 days, however, I am prompted to perform SSO authentication after every command.

this-device command displays account/device settings. Some settings (persistent login ON/OFF, and logout timeout) may be controlled by Keeper Administrator.

Commander 16.11.14 (installed via pip) that does not exhibit the same behavior and seems to respect the device timeout
Do you use the same account to login?

The configuration file config.json cannot be shared between multiple Commander instances if persistent login setting is ON. Make sure that every instance/installation of the Commander uses its own copy of the configuration file. (device_token property of the config.json file should be unique)

I am also unable to install Commander via pip on the Mac as it runs into dependency issues with libav.

The Commander is expected to be installed in its own Python virtual environment.
It is really hard to tell what the other Python package the Commander conflicts with.

@Maddog0057
Copy link
Author

I am not sharing the config.json between the two machines, they were configured separately as I use them for different functions, I have no issues with Commander on the Linux box.

The pip install is done using pipx so it does have it's own venv.

@sk-keeper
Copy link
Collaborator

Do you use the same account on your MacOS and Linux boxes?
What is the this-device command output on the MacOS box?

pipx may install Python packages globally
https://pipx.pypa.io/stable/installation/#-global-argument
Here is the list of packages the Commander depends on:
https://github.com/Keeper-Security/Commander/blob/master/requirements.txt
libav is a part of aiortc package.
Can you install aiortc package separately?

@Maddog0057
Copy link
Author

I do use the same account on both machines.

I managed to get the python package installed, I needed to install ffmpeg6 (which got me libav) as well as Python 3.12 as I had issues with the newer versions.

Persistent login is still an issue, however, here is the output of my this-device:

                     Device Name: Commander CLI on macOS
                     Data Key Present: YES
                     IP Auto Approve: ON
                     Persistent Login: ON
                     Security Key No PIN: OFF
                     Device Logout Timeout: 14 days
                     Is SSO User: True

I still cannot run more than one command without having to authenticate every time.

@sk-keeper
Copy link
Collaborator

Is it possible that config.json file is read-only?
You can see the file location by typing

v -v

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

2 participants