Skip to content

Better abstraction for authentication #8

@sagikazarmark

Description

@sagikazarmark

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions