Skip to content
Permalink
Browse files
Upgrade to Eclipse Microprofile 1.1 and minor things
  • Loading branch information
jeanouii committed Jun 2, 2018
1 parent e128053 commit 708a0c0e060e1c092faa5922c61f4d63ce5c1a2f
Showing 7 changed files with 24 additions and 13 deletions.
@@ -17,8 +17,6 @@ IMPORTANT: you can also use the eclipse bundle.

=== Implementation

IMPORTANT: you can also use the eclipse bundle.

[source,xml]
----
<parent>
@@ -77,10 +75,10 @@ geronimo.jwt-auth.kids.key.mapping = \
kid1 = /publicKey.pem
----

== OpenWebBeans
== Apache OpenWebBeans

For this specification to work on OpenWebBeans you need to configure a few key (until 2.0.4).
For that register a `META-INF/openwebbeans/openwebbeans.properties`:
For this specification to work on Apache OpenWebBeans you need to configure a few keys (until 2.0.4).
For that, register a `META-INF/openwebbeans/openwebbeans.properties`:

[source,properties]
----
@@ -108,4 +106,4 @@ public class MySecurityService extends SimpleSecurityService {
}
----

IMPORTANT: in any case it is not recommanded to use CDI `Principal` API, always prefer `JsonWebToken` one.
IMPORTANT: in any case it is not recommended to use CDI `Principal` API, always prefer `JsonWebToken` one.
@@ -27,8 +27,6 @@
<name>Geronimo JWT Auth :: Impl</name>

<properties>
<tck.version>1.1-SNAPSHOT</tck.version>

<geronimo.jpms.name>org.apache.geronimo.microprofile.jwtauth</geronimo.jpms.name>
</properties>

@@ -397,7 +397,7 @@ public Claims standard() {

@Override
public String toString() {
return super.toString().replace(", ", ", ");
return super.toString();
}
}
}
@@ -40,8 +40,6 @@
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.ProviderInjectionTest" />
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.RolesAllowedTest" />
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.InvalidTokenTest" />
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.PrimitiveInjectionTest" />
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.PrincipalInjectionTest" />
</classes>
</test>
</suite>
@@ -25,7 +25,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>geronimo-microprofile-jwt-auth-spec</artifactId>
<name>Geronimo JWT Auth :: Spec 1.1</name>
<name>Geronimo JWT Auth :: Spec ${tck.version}</name>

<properties>
<!-- undefined? -->
@@ -25,7 +25,20 @@
* @param <TYPE> the expected type of the value.
*/
public interface ClaimValue<TYPE> extends Principal {

/**
* This is the name of the claim we need an injection for.
* Check out org.eclipse.microprofile.jwt.Claims for a list of well known claims.
*
* @return name of the claim
*/
@Override
String getName();

/**
* The value of the claim extracted from the JWT for the key defined above.
*
* @return the value of the claim
*/
TYPE getValue();
}
@@ -46,6 +46,10 @@
<module>geronimo-jwt-auth-impl</module>
</modules>

<properties>
<tck.version>1.1</tck.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
@@ -123,7 +127,7 @@
<url>http://www.apache.org/</url>
</organization>

<inceptionYear>2017</inceptionYear>
<inceptionYear>2018</inceptionYear>

<licenses>
<license>

0 comments on commit 708a0c0

Please sign in to comment.