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
I'm trying to implement a Verifier that doesn't actually call the Zitadel instance for testing purposes. As it looks to me now, this is either hard to do or even impossible due to the use of generics. I'm also kinda new to the use of generics so maybe I do lack some knowledge here.
My current approach is to create two different Authorizers, but when I pass that as function argument to my middleware / interceptor, I obviously need to declare the type of the function argument, which is either *authorization.Authorizer[*oauth.IntrospectionContext] or *authorization.Authorizer[*authz.ZitadelMockIntrospectionContext], which is my own implementation of authorization.Ctx
Can you tell me if it is possible to do what I'm trying to do, and if so give me a hint what I'm doing wrong?
Thanks @livio-a, currently I do not have time to implement it, but I'll link this issue in my own issue. I'll close this issue for now as it seems to be solved.
When I have time to work on this again and a question arises, I'll reopen it.
Version: v3.0.0-next.2
I'm trying to implement a Verifier that doesn't actually call the Zitadel instance for testing purposes. As it looks to me now, this is either hard to do or even impossible due to the use of generics. I'm also kinda new to the use of generics so maybe I do lack some knowledge here.
My current approach is to create two different Authorizers, but when I pass that as function argument to my middleware / interceptor, I obviously need to declare the type of the function argument, which is either
*authorization.Authorizer[*oauth.IntrospectionContext]
or*authorization.Authorizer[*authz.ZitadelMockIntrospectionContext]
, which is my own implementation ofauthorization.Ctx
Can you tell me if it is possible to do what I'm trying to do, and if so give me a hint what I'm doing wrong?
Tasks
The text was updated successfully, but these errors were encountered: