Skip to content
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

Fix #1648 - ignore authorization in RestInterfaceClient #1649

Closed
wants to merge 1 commit into from

Conversation

tchaloupka
Copy link
Contributor

Not sure if this is the acceptable way to handle REST API with @requiresAuth on the client side, but it seems to solve the problem for me - server side still requires authorization and rest client just ignores this attribute.

@s-ludwig
Copy link
Member

Thanks, I missed the case where the authorization attributes are placed in the interface instead of in the class. But for documentation purposes it would actually be quite nice to place them there. In the long run it would also be nice to extend @requiresAuth to also work in a meaningful way for the client, but for now just allowing this case seems like a good idea.

s-ludwig added a commit that referenced this pull request Feb 2, 2017
@s-ludwig s-ludwig closed this Feb 2, 2017
@s-ludwig
Copy link
Member

s-ludwig commented Feb 2, 2017

I commited this now with the mentioned change regarding the if statement and with an additional test.

s-ludwig added a commit that referenced this pull request Feb 2, 2017
@tchaloupka tchaloupka deleted the fix_#1648 branch April 8, 2017 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants