Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better abstraction for authentication #8

Open
sagikazarmark opened this issue Jul 9, 2024 · 0 comments
Open

Better abstraction for authentication #8

sagikazarmark opened this issue Jul 9, 2024 · 0 comments

Comments

@sagikazarmark
Copy link

The current auth implementation makes it nearly impossible to implement transparent token renewal.

I came up with an alternative structure here: https://github.com/sagikazarmark/go-infisical

It allows implementing authentication (and token renewal) in a transparent way using an Authenticator interface.

As a bonus, it doesn't require the client to be mutable (which is not a great practice anyway).

Would you be interested in something like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant