<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Find Answers For ... - Recent questions tagged authentication</title>
<link>https://find4answers.com/tag/authentication</link>
<description>Powered by Question2Answer</description>
<item>
<title>Jersey JAX-RS, Tomcat, Basic Auth and Security Annotations</title>
<link>https://find4answers.com/62/jersey-jax-rs-tomcat-basic-auth-and-security-annotations</link>
<description>&lt;p&gt;
	I need to secure a simple jersey RESTful API in a Tomcat 6.0.24 container. I&#039;d like to keep the authentication with Basic Authentication using the tomcat-users.xml file to define the users and roles (this is for now, like I said its small).&lt;/p&gt;
&lt;p&gt;
	Now, for authorization I&#039;d like to be able to use the JSR 250 annotations like @RolesAllowed, @PermitAll, @DenyAll, etc.&lt;/p&gt;
&lt;p&gt;
	I cannot for the life of me figure out how to wire this all up together.&lt;/p&gt;
&lt;p&gt;
	I really don&#039;t want to go spring-security route, since I need something very simple at the current time.&lt;/p&gt;
&lt;p&gt;
	Can someone point me in the right direction.&lt;/p&gt;
&lt;p&gt;
	In short,&amp;nbsp;&amp;nbsp;how best to wire up a &lt;strong&gt;&lt;em&gt;simple security&lt;/em&gt;&lt;/strong&gt; mechanism for:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;
		Jersey JAX-RS.&lt;/li&gt;
	&lt;li&gt;
		Tomcat.&lt;/li&gt;
	&lt;li&gt;
		Basic Authentication.&lt;/li&gt;
	&lt;li&gt;
		JSR 250 Annotations such as @RolesAllowed.&lt;/li&gt;
&lt;/ol&gt;</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/62/jersey-jax-rs-tomcat-basic-auth-and-security-annotations</guid>
<pubDate>Fri, 06 Jan 2012 06:03:47 +0000</pubDate>
</item>
<item>
<title>User authentication on a Jersey REST service</title>
<link>https://find4answers.com/59/user-authentication-on-a-jersey-rest-service</link>
<description>&lt;p&gt;
	I am currently developing a REST application, which is using the Jersey framework. I would like to know a way that I can control user authentication. I have search a lot of places, and the closest article I have found is this: &lt;a href=&quot;http://weblogs.java.net/blog/2008/03/07/authentication-jersey&quot; rel=&quot;nofollow&quot;&gt;http://weblogs.java.net/blog/2008/03/07/authentication-jersey&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
	However this article can only be used whith a GlassFish server and a attached database. Is there anyway that I can implement an interface in Jersey and use it as a filter before reaching the requested REST resource?&lt;/p&gt;
&lt;p&gt;
	I want to use basic authentication right now, but it should be flexible enough such that I can change that at a later time.&lt;/p&gt;
&lt;p&gt;
	Thanks in Advance Stefan.&lt;/p&gt;</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/59/user-authentication-on-a-jersey-rest-service</guid>
<pubDate>Fri, 06 Jan 2012 05:46:16 +0000</pubDate>
</item>
<item>
<title>How to write an authentication filter using Jersey</title>
<link>https://find4answers.com/57/how-to-write-an-authentication-filter-using-jersey</link>
<description>Can anyone provide an example or a way to achive the authentication filter using jersey REST frame Work</description>
<category>Java/J2EE</category>
<guid isPermaLink="true">https://find4answers.com/57/how-to-write-an-authentication-filter-using-jersey</guid>
<pubDate>Fri, 06 Jan 2012 04:37:40 +0000</pubDate>
</item>
</channel>
</rss>