Skip to content
New issue

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

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

Already on GitHub? # to your account

oidc-agent-service does not persist on Ubuntu 22.04.2 LTS #489

Closed
vrbanecd opened this issue Mar 16, 2023 · 2 comments
Closed

oidc-agent-service does not persist on Ubuntu 22.04.2 LTS #489

vrbanecd opened this issue Mar 16, 2023 · 2 comments

Comments

@vrbanecd
Copy link

vrbanecd commented Mar 16, 2023

I see that a similar issue was raised for Mac. I went through proposed solutions in that ticket and I have run eval oidc-agent-service use and it sets the socket and I can use the agent in multiple terminal windows. I also added export OIDC_SOCK=/tmp/oidc-agent-service/1000/oidc-agent.sock to my .bashrc. However, when restarting my computer the oidc-agent doesn't work, instead I need to evaluate it again.

@zachmann
Copy link
Member

Thanks for your issue.

How did you install the agent? If you used our ubuntu packages it should have installed Xsession integration, so it automatically starts at system startup and also enables the availability throughout the session.
However, this requires the oidc-agent-desktop package which is automatically installed when installing oidc-agent, but not if you only install oidc-agent-cli.

This XSession integration is not present on MacOS, that's why the workarounds are required there.

If the Xsession integration does really not work on ubuntu 22.04 I have to investigate a bit more.

Regarding your solution: The problem there is that the agent is not automatically started at startup. Just add

eval `oidc-agent-service use`

to your .bashrc - You can replace the existing export statement with this line.

@vrbanecd
Copy link
Author

Thanks! That worked! :)

I have downloaded the repository following the steps mentioned at http://repo.data.kit.edu/ and then installed with sudo apt-get install oidc-agent.

@vrbanecd vrbanecd closed this as completed May 2, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants