summaryrefslogtreecommitdiffstats
path: root/fikenauth/oauth.go
Commit message (Collapse)AuthorAgeFilesLines
* Share one Fiken login between programsHEADv0.4.0mainSimen A. W. Olsen3 days1-4/+4
| | | | fikenconfig keeps an OAuth app and a grant per account in ~/.config/fiken, and finds the account that reaches a company. Renewing a grant takes a lock, so programs sharing it take turns.
* Fiken API client and OAuth2 for Gov0.1.0Simen A. W. Olsen2026-10-171-0/+246
Extracted from gcbill, where it was internal/fiken and internal/fikenauth, so adaa and sokkel-billing can use the same client instead of each carrying its own. The login command named when a grant cannot be renewed is now injected (Source.LoginCommand): it was hardcoded to gcbill's, which would have sent every other caller's operator to a command that does not exist.