Skip to content

newPasswordHandler function add context #173

@XciD

Description

@XciD

Hello,

It's possible to add the context in the PasswordAuthorizationHandler method ?

Current signature:

PasswordAuthorizationHandler func(username, password string) (userID string, err error)

Propose one:

PasswordAuthorizationHandler func(ctx context.Context, username, password string) (userID string, err error)

It's quite usefull to follow request id or tracing.

I'd be glad to propose you a PR.

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