google-calendar-layer icon indicating copy to clipboard operation
google-calendar-layer copied to clipboard

Add instructions for storing auth info elsewhere?

Open JonathanReeve opened this issue 8 years ago • 2 comments

I keep my ~/.spacemacs file, along with my other dotfiles, on GitHub. I'd prefer not to sign up as a Google developer and then share that secret with the world. As an emacs novice, I don't know how to have emacs source this info from an external file. Could you add instructions for how to do that?

JonathanReeve avatar Apr 30 '17 14:04 JonathanReeve

I am in no way familiar with best practices but I've been using password store for quite some time. It is compatible with spacemacs using the password-store layer (add it dotspacemacs-additional-packages).

Then you can simply invoke it in your configuration. For google-calendar-layer, you can use something like:

    (setq org-gcal-client-id (password-store-get "secrets/org-gcal-client-id")
          org-gcal-client-secret (password-store-get "secrets/org-gcal-client-secret"))

jeromegrosse avatar Mar 26 '18 19:03 jeromegrosse

found some instructions here for using authinfo

wminshew avatar Jun 04 '20 04:06 wminshew