Return-Path: X-Original-To: apmail-oltu-dev-archive@www.apache.org Delivered-To: apmail-oltu-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C92D8F590 for ; Thu, 18 Apr 2013 17:01:21 +0000 (UTC) Received: (qmail 30007 invoked by uid 500); 18 Apr 2013 17:01:21 -0000 Delivered-To: apmail-oltu-dev-archive@oltu.apache.org Received: (qmail 29880 invoked by uid 500); 18 Apr 2013 17:01:19 -0000 Mailing-List: contact dev-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oltu.apache.org Delivered-To: mailing list dev@oltu.apache.org Received: (qmail 29431 invoked by uid 99); 18 Apr 2013 17:01:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 17:01:18 +0000 Date: Thu, 18 Apr 2013 17:01:17 +0000 (UTC) From: "Sam Gorial (JIRA)" To: dev@oltu.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OLTU-96) Improve client API in order to support known Provider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OLTU-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Gorial updated OLTU-96: --------------------------- Attachment: OLTU-96.patch Hi Antonio. I've attached an implementation for this. I've updated OAuthClientTest to use the new FB provider. > Improve client API in order to support known Provider > ----------------------------------------------------- > > Key: OLTU-96 > URL: https://issues.apache.org/jira/browse/OLTU-96 > Project: Apache Oltu > Issue Type: Task > Components: oauth2-client > Reporter: Antonio Sanso > Attachments: OLTU-96.patch > > > According to the Oltu documentation [0] when using Oltu library client side is always needed to specify the authorization and token location e.g. > OAuthClientRequest request = OAuthClientRequest > .authorizationLocation("https://graph.facebook.com/oauth/authorize") > .setClientId("your-facebook-application-client-id") > .setRedirectURI("http://www.example.com/redirect") > .buildQueryMessage(); > even for well known Provider e.g. Facebook, Google etc. > Given that they should not change really often it would be nice to have preconfigured providers > [0] https://cwiki.apache.org/confluence/display/OLTU/OAuth+2.0+Client+Quickstart -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira