This looks like a problem with your guice module. Can you share it? On Nov 27, 2013 3:09 PM, <[email protected]> wrote:
> I am using Apache Wink and want to secure calls using Shiro. I have set
> up apache wink in the web.xml by setting up a servlet
> (org.apache.wink.guice.server.internal.servlet.GuiceRestServlet) and
> defining the mapping. (I wasn’t able to get that part in guice).
>
>
>
> I followed several guides in the guice website to get things working to
> the point where an annotation (@RequiresAuthentication) can prevent access
> to the method being called. However, I can’t figure out how to get a user
> authenticated. I am sure I am missing a configuration to wire in the piece
> that actually does the authentication. In the guice guide it looks like
> this
>
>
>
> addFilterChain("/**", AUTHC_BASIC);
>
>
>
> However, when I attempt to use the guice-servlet I get an error on startup
>
> 1) Binding to null instances is not allowed. Use
> toProvider(Providers.of(null)) if this is your intended behaviour.
>
>
>
> I could use some advice on how to get the authentication working. What
> code snippets would be useful to help?
>
>
>
>
>
>
>
> [image: Description: High 5 Games] <http://www.high5games.com/>
>
> *Scott Smith* | Software Developer
>
> [email protected] | 212.604.3441
>
> www.high5games.com
>
> Play High 5 Casino <https://apps.facebook.com/highfivecasino/>
>
> Follow us on: Facebook <http://www.facebook.com/high5games>,
> Twitter<https://twitter.com/High5Games>
> , YouTube <http://www.youtube.com/High5Games>,
> Linkedin<http://www.linkedin.com/company/1072533?trk=tyah>
>
> *This message and any attachments may contain confidential or privileged
> information and are only for the use of the intended recipient of this
> message. If you are not the intended recipient, please notify the sender by
> return email, and delete or destroy this and all copies of this message and
> all attachments. Any unauthorized disclosure, use, distribution, or
> reproduction of this message or any attachments is prohibited and may be
> unlawful.*
>
>
>
>
>
<<image001.jpg>>
