pdobsan / oama

OAuth credential Manager
Other
138 stars 10 forks source link

It doesn't work with root account #57

Closed simonbcn closed 5 months ago

simonbcn commented 5 months ago
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.6-200.fc40.x86_64 (64-bit)

oama version 0.14

I have created a configuration for my gmail account to be able to send email notifications from different services in my system. The problem is that all those services send the mails using the root account and therefore it is no use that I have executed oama authorize google .... from my user. I have to run it from the root user. But when I run the same thing with the root account it fails.:

$ sudo oama authorize google xxxxx@gmail.com
Authorization to grant OAuth2 access to xxxxx@gmail.com started ...
Visit http://localhost:57093/start in your browser ...
secret-tool: Could not connect: No such file or directory
ExitFailure 1
simonbcn commented 5 months ago

My fault. In case of root it is necessary to use an encrypted file with gnupg.