summaryrefslogtreecommitdiff
path: root/internal/oauth/token.go
AgeCommit message (Collapse)Author
2022-12-21Exports + OAuth + Server: Forward tokens to getting a configjwijenbergh
2022-12-21OAuth: Use a mutex to protect the token structurejwijenbergh
2022-12-12OAuth: Minor style changesjwijenbergh
2022-11-28Formatting: Run gofumpt -wjwijenbergh
2022-11-28Refactor: Fix revive linter errors by deleting redundant prefixesjwijenbergh
2022-11-28OAuth: Refactor Token getting and do not save them in the configjwijenbergh
This commit refactors getting the tokens into receiver methods. This means that functions do not have to call the cryptic "EnsureTokens" method. The receiver getter then already verifier whether or not the tokens could be obtained (and refreshes too). The downside is that some things are now private, so testing for invalid tokens needs to be done somewhere else. This needs another patch such that clients can save the tokens themselves using a keyring.