-
Notifications
You must be signed in to change notification settings - Fork 7
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
@Allow not failing, if no Token is sent by client #71
Comments
Hi @haukec , sure thing but unfortunately I just tried to debug the use case you are mentioning and cannot reproduce this. Your use case is even covered in automated tests on line 140 - Quick note: I think the issue will be in your data client.
I'm gonna have a look into the example project as well and see if I can reproduce it there. |
Hello @haukec , I just tried my gRPC example project and all works fine - please try to have a look at this project and make sure you have everything set up correctly as: |
Hi @majusko, thank you for your quick reply. I have set up a minimal project here. I did not even add a test case, but instead used
Could you take a quick glance on it? Probably, I just made some dump mistake... Kind regards, |
Ok, so I checked your example and found 2 issues. One is configuration error and then there is a bug in the library for this special case as well and the case is not covered in tests 😩. Will explain: First, there is one small issue from your side: you should not use other grpc libraries like this one But the real cause is that you renamed the package name However, you should be able to safely use the library, you just need to keep the package name the same as the project until 1.0.10 will be released. I'm on vacation currently but I believe it will be next week :) I made a PR to your library that will work for you: haukec/demo#1 Thank you for finding this use case :) Mario |
Hi Mario, great, it works 👍! Thanks a lot for your help!
Perfect! I was using
Thanks again, have a great day! Hauke |
Hi there,
I tried to follow your instructions and make a very simple test with it:
@Allow(roles="admin")
I would have expected the call to fail (and therefore, also the test). But instead, it returns, successfully.
Here is an excerpt of the service:
... and here is the test:
Could you guide me here?
Kind regards
Hauke
The text was updated successfully, but these errors were encountered: