-
Notifications
You must be signed in to change notification settings - Fork 28
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
oidc-agent-service does not persist on Mac #341
Comments
For simple starts without any integration (see below), this behavior is expected. When you start the agent the env var is only set in that terminal, it won't be set in other already open terminals. But you can set the For the integration/persistence: The easiest way to achieve persistence / integration throughout terminals is to use On your last point: It is expected that after a restart all loaded accounts are unloaded. The agent is always started with no accounts loaded. |
I see, for some reason it was stored under Perhaps a followup question would be: is there any appetite for adapting
I was a bit confused by this, because there are some features (such as |
I'm not familiar with how these things work on MacOS, so you should know this better. On Linux we are integrated with
Yes there is a simple (technical) reason (well, actually there are two sides on that issue, the other side is privacy/security):
|
As a more general piece of information: We currently have one person working on the windows integration. This will add some minimal GUI. I'm not sure how portable this is going to be, but I could imagine, that the ideas could be taken a step further in porting this to MacOs. |
Ahh I see, that makes sense. Unfortunately that may make running
Thanks that is good to know- would definitely be interested in seeing some improvements there ported to Mac. |
@zachmann revisiting this after a bit- It sounds like natively integrating with launchd will be a pretty big lift, at least more than I have time to commit to right now. I think a reasonable workaround would be just instructing users to add a line such as |
Just append |
If it helps, I can shortly describe my favorite setup on Mac OS. I prefer to use the InstallationI used Homebrew to install brew tap indigo-dc/oidc-agent
brew install oidc-agent Setup a
|
I'm not sure if this is the intended behavior or not, but
oidc-agent
(when launched witheval
oidc-agent-service use``) does not persist when the shell session is restarted on Mac.I haven't fully dug into the
oidc-agent-service
script but I am guessing because it simply sets an env varOIDC_SOCK
that it will never persist between shell sessions.Are there any plans to add support for persisting the agent between shell sessions? Unfortunately for Mac I think it would require integrating with launchd to ensure the process is tied to the user's login session instead of just the terminal session.
Also semi-related, sometimes when restarting
oidc-agent
in a new shell session, accounts are unloaded and need to be manually re-added. Unclear if that is a bug or feature, but I expected accounts to stay loaded even across agent restarts.The text was updated successfully, but these errors were encountered: