summaryrefslogtreecommitdiff
path: root/internal/oauth/token.go
AgeCommit message (Collapse)Author
2024-02-19Util + OAuth: Delete internal OAuth implementationjwijenbergh
Preparing to move to github.com/jwijenbergh/eduoauth-go
2023-09-25OAuth: Implement the Public() method for tokensjwijenbergh
2023-09-25OAuth: Pass a context aroundjwijenbergh
2023-04-18OAuth Token: Set previous refresh token if new refresh token is emptyjwijenbergh
This is for 2.x servers that return an empty refresh token after refreshing
2023-03-01Format: Run black and gofumptjwijenbergh
2023-02-28API + OAuth: Add some debug logging for tokensjwijenbergh
2023-01-03Format: Run gofumptjwijenbergh
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.