You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iam using github.com/xenitab/go-oidc-middleware and github.com/xenitab/go-oidc-middleware/oidcechojwt in my golang project. With the latest go-module update I got this entries in my go.mod file:
# github.com/xenitab/go-oidc-middleware/oidcechojwt
../../vendor/github.com/xenitab/go-oidc-middleware/oidcechojwt/echo_jwt.go:26:16: cannot use description (variable of type options.ErrorDescription) as context.Context value in argument to errorHandler: options.ErrorDescription does not implement context.Context (missing method Deadline)
../../vendor/github.com/xenitab/go-oidc-middleware/oidcechojwt/echo_jwt.go:26:29: cannot use err (variable of type error) as *options.OidcError value in argument to errorHandler
I believe this is a product of #256 (and #260). The new oidcecho package should be a drop-in replacement. However, I see that I did not update the README properly to say that we retired the old module. We should have some migration instructions here https://github.com/XenitAB/go-oidc-middleware#echo-jwt-parsetokenfunc (and stop talking about the parsetokenfunc).
Hi,
Iam using github.com/xenitab/go-oidc-middleware and github.com/xenitab/go-oidc-middleware/oidcechojwt in my golang project. With the latest go-module update I got this entries in my go.mod file:
This versions leads to compiler errors.
This is because type ErrorHandler in https://github.com/XenitAB/go-oidc-middleware/blob/0d8f58d70ec482f8255a41ef1d41b4cb74cdc6f0/options/options.go#L50C73-L50C73 has changed since version 0.42 to
type ErrorHandler func(ctx context.Context, oidcErr *OidcError) *Response
To solve this isssue please provide a new tagged version v0.0.43 for github.com/xenitab/go-oidc-middleware/oidcechojwt.
Thanks in advance.
Kind regards,
Michael
The text was updated successfully, but these errors were encountered: