Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3E143200BF7 for ; Mon, 9 Jan 2017 15:06:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3CBB8160B3E; Mon, 9 Jan 2017 14:06:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5379B160B3B for ; Mon, 9 Jan 2017 15:06:20 +0100 (CET) Received: (qmail 23576 invoked by uid 500); 9 Jan 2017 14:06:19 -0000 Mailing-List: contact commits-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwebbeans.apache.org Delivered-To: mailing list commits@openwebbeans.apache.org Received: (qmail 23565 invoked by uid 99); 9 Jan 2017 14:06:19 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 14:06:19 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id EC91A3A0634 for ; Mon, 9 Jan 2017 14:06:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1004516 - in /websites/staging/openwebbeans/trunk/content: ./ meecrowave/ meecrowave/meecrowave-core/ meecrowave/meecrowave-gradle/ meecrowave/meecrowave-jolokia/ meecrowave/meecrowave-jpa/ meecrowave/meecrowave-jta/ meecrowave/meecrowave-... Date: Mon, 09 Jan 2017 14:06:18 -0000 To: commits@openwebbeans.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170109140618.EC91A3A0634@svn01-us-west.apache.org> archived-at: Mon, 09 Jan 2017 14:06:22 -0000 Author: buildbot Date: Mon Jan 9 14:06:18 2017 New Revision: 1004516 Log: Staging update by buildbot for openwebbeans Added: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/ websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.html websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.pdf (with props) Modified: websites/staging/openwebbeans/trunk/content/ (props changed) websites/staging/openwebbeans/trunk/content/meecrowave/community.pdf websites/staging/openwebbeans/trunk/content/meecrowave/components.html websites/staging/openwebbeans/trunk/content/meecrowave/components.pdf websites/staging/openwebbeans/trunk/content/meecrowave/download.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-core/cli.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-core/configuration.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-gradle/index.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-jolokia/index.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-jpa/index.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-jta/index.pdf websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-maven/index.pdf websites/staging/openwebbeans/trunk/content/meecrowave/start.html websites/staging/openwebbeans/trunk/content/meecrowave/start.pdf websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.pdf Propchange: websites/staging/openwebbeans/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Mon Jan 9 14:06:18 2017 @@ -1 +1 @@ -1777679 +1777965 Modified: websites/staging/openwebbeans/trunk/content/meecrowave/community.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/components.html ============================================================================== --- websites/staging/openwebbeans/trunk/content/meecrowave/components.html (original) +++ websites/staging/openwebbeans/trunk/content/meecrowave/components.html Mon Jan 9 14:06:18 2017 @@ -150,6 +150,18 @@ CDI extension.

+

Meecrowave and OAuth2

+
+
+

This is an experimental module integrating CXF OAuth2 server in Meecrowave +through an embeddable dependency or a directly executable har.

+
+ +
+
+

Going further

Modified: websites/staging/openwebbeans/trunk/content/meecrowave/components.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/download.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-core/cli.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-core/configuration.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-gradle/index.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-jolokia/index.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-jpa/index.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-jta/index.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-maven/index.pdf ============================================================================== Binary files - no diff available. Added: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.html ============================================================================== --- websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.html (added) +++ websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.html Mon Jan 9 14:06:18 2017 @@ -0,0 +1,206 @@ + + + + + + Meecrowave :: the customizable server + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+
+
+
+

Meecrowave OAuth2

+
+ +
+
+
+ + + + + + + + +
+
+

Starting with version 0.3.0.

+
+
+

Coordinates:

+
+
+
+
<dependency>
+  <groupId>org.apache.meecrowave</groupId>
+  <artifactId>meecrowave-oauth2</artifactId>
+  <version>${meecrowave.version}</version>
+</dependency>
+
+
+
+

A small OAuth2 server based on CXF implementation.

+
+ +
+

Here is the current configuration (mainly based on CXF one):

+
+
+

Unresolved directive in <stdin> - include::../../../../../target/generated-doc/OAuth2.adoc[]

+
+
+

These options are available through the CLI or through properties as usually with Meecrowave configuration.

+
+
+

Note that meecrowave also provides a bundle which is an executable jar to run an OAuth2 server.

+
+
+

Here is a sample usage of that bundle:

+
+
+
+
java -jar meecrowave-oauth2-0.3.0-SNAPSHOT-bundle.jar --users test=test --roles test=test
+
+
+
+

Then just test your token endpoint:

+
+
+
+
curl -XPOST http://localhost:8080/oauth2/token -d username=test -d password=test -d grant_type=password
+
+
+
+

And you should get something like:

+
+
+
+
{
+  "access_token":"5e2f211d4b4ccaa36a11d0876597f01e",
+  "token_type":"Bearer",
+  "expires_in":3600,
+  "scope":"refreshToken",
+  "refresh_token":"7ae5dc2e25925e5514b7e2e632cfa6a"
+}
+
+
+
+ + + + + +
+ + +these example use inline users but you should configure a realm for a real usage. +
+
+
+ + + + + +
+ + +this module is interesting if you plan to base your application development +on Meecrowave because it shows how to use CLI configuration and wire it in your application +but also how to use a 3rd party library (CXF there) and build a fatjar. +
+
+
+ + + + +
+
+ + +
+ +
+ + + + + + + + + + + + + + + Added: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.pdf ============================================================================== Binary file - no diff available. Propchange: websites/staging/openwebbeans/trunk/content/meecrowave/meecrowave-oauth2/index.pdf ------------------------------------------------------------------------------ svn:mime-type = application/pdf Modified: websites/staging/openwebbeans/trunk/content/meecrowave/start.html ============================================================================== --- websites/staging/openwebbeans/trunk/content/meecrowave/start.html (original) +++ websites/staging/openwebbeans/trunk/content/meecrowave/start.html Mon Jan 9 14:06:18 2017 @@ -124,7 +124,7 @@ public class HelloKitchen { -this feature will be part of 0.3.0 only. +this feature is supported starting from version 0.3.0 only. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/start.pdf ============================================================================== Binary files - no diff available. Modified: websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html ============================================================================== --- websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html (original) +++ websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html Mon Jan 9 14:06:18 2017 @@ -260,7 +260,7 @@ public class MeecrowaveConfigTest { <property name="ssl">false</property> <property name="sslProtocol"></property> <property name="stopPort">-1</property> - <property name="tempDir">/tmp/meecrowave_285320516734038</property> + <property name="tempDir">/tmp/meecrowave_20782735425048</property> <property name="tomcatAutoSetup">true</property> <property name="tomcatFilter"></property> <property name="tomcatNoJmx">true</property> Modified: websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.pdf ============================================================================== Binary files - no diff available.