pdobsan / oama

OAuth credential Manager
Other
138 stars 10 forks source link

Specifying auth_scope for services (caldav, carddav) #45

Closed dezeroku closed 6 months ago

dezeroku commented 6 months ago

Hi, first of all thanks for all the work you've put into this project!

I've recently switched from mailctl to oama and I am struggling with defining caldav and carddav scopes to be authed with. With mailctl it was possible to create services.yml, such as:

google:
  ...
  auth_scope: https://mail.google.com/ https://www.googleapis.com/auth/carddav https://www.googleapis.com/auth/calendar

and then use the obtained tokens with utils like vdirsyncer.

In oama the scope seems to be hardcoded in config. Or maybe it can already be set via the config file but I missed how to do it?

pdobsan commented 6 months ago

in oama the scope seems to be hardcoded in config. Or maybe it can already be set via the config file but I missed how to do it?

Yes, the services are hardcoded at the moment. I can make some fields configurable again as reasonable needs arises. auth_scope seems to be one, I'll look into it.

pdobsan commented 6 months ago

I believe that oama 0.11 release solves your problem.

dezeroku commented 6 months ago

Indeed, I can set the auth_scope with the version 0.11. Thanks a lot for the quick help!

pdobsan commented 6 months ago

Close as solved.