Return-Path: X-Original-To: apmail-oltu-user-archive@www.apache.org Delivered-To: apmail-oltu-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C23B108F3 for ; Mon, 31 Mar 2014 18:58:23 +0000 (UTC) Received: (qmail 23765 invoked by uid 500); 31 Mar 2014 18:58:20 -0000 Delivered-To: apmail-oltu-user-archive@oltu.apache.org Received: (qmail 23483 invoked by uid 500); 31 Mar 2014 18:58:16 -0000 Mailing-List: contact user-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@oltu.apache.org Delivered-To: mailing list user@oltu.apache.org Received: (qmail 23416 invoked by uid 99); 31 Mar 2014 18:58:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 18:58:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jashaj@gmail.com designates 209.85.216.46 as permitted sender) Received: from [209.85.216.46] (HELO mail-qa0-f46.google.com) (209.85.216.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 18:58:10 +0000 Received: by mail-qa0-f46.google.com with SMTP id i13so8385049qae.19 for ; Mon, 31 Mar 2014 11:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=xR7yyfY3EwGo7TQDPgEBYn7a853YFzfO2YOa2I5pGfQ=; b=gCne4Y5SLlMMMKRs66Gje4MnjRRVvGCCsxalv5xUaCFYPQzDKGwfiRHIl7L8uEpLvH u/Dcbv2LB6NgOMXyzSu9D9NhSNVgQpTmjLVDxnrsUDZ9ZTcGbsKbfc0njPbkbSrT5imm 4aQaBqFDEum1LBltDtBYbTGci+6htC16z//ivWwH0rs5D/kBX9nwmWXUM5quJanbnNWR TiTxBXN07SLvlA54qRC3VGhsUYkgSqsxiY/3aKIddIqfcrj5gsoK70fWl/9fAu43g4He 1ilXcFgMeoSJGr2iPUzqpnnNmbTN01G/1jvl4akXEOCtWWmT6t/N/v7cBfpkrLSqt1ST Rjqg== X-Received: by 10.140.48.77 with SMTP id n71mr4567293qga.90.1396292269410; Mon, 31 Mar 2014 11:57:49 -0700 (PDT) MIME-Version: 1.0 Sender: jashaj@gmail.com Received: by 10.140.39.147 with HTTP; Mon, 31 Mar 2014 11:57:29 -0700 (PDT) In-Reply-To: <9BD825F3554FD04AAB3B8BCBA96F192F19E0A788@BLUPRD9201MB018.026d.mgd.msft.net> References: <9BD825F3554FD04AAB3B8BCBA96F192F19E0A788@BLUPRD9201MB018.026d.mgd.msft.net> From: Jasha Joachimsthal Date: Mon, 31 Mar 2014 20:57:29 +0200 X-Google-Sender-Auth: MXz6uP_dycADvisqN4UtFdnVUP8 Message-ID: Subject: Re: Alternative to OAuthProviderType To: user@oltu.apache.org Content-Type: multipart/alternative; boundary=001a11352330b88e5f04f5eba0d7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11352330b88e5f04f5eba0d7 Content-Type: text/plain; charset=ISO-8859-1 Hi Chris, On 31 March 2014 16:47, Harris, Christopher P wrote: > Hi. > > > > I'm trying to use Oltu with Box. Box's RESTful API is relatively new and > uses OAuth 2.0. As expected, Box is not listed within the > OAuthProviderType Enum. > > > > The demo on your Wiki is not clear as to how to create a request without > requiring the OAuthProviderType Enum. > > > > How can I create a request without using that Enum? > You can use OAuthClientRequest.authorizationLocation(AUTHZ_ENDPOINT) and OAuthClientRequest.tokenLocation(TOKEN_ENDPOINT) for OAuth providers that are not a part of the enum. Unfortunately I cannot update the documentation for you. Can someone add this to the documentation please :) > Can you add Box to the Enum? > Can you please create a patch file with the correct endpoints and attach it to a new issue in https://issues.apache.org/jira/browse/OLTU ? > I know the Enum was added for convenience, but it's not a flexible > solution. > The enum is only a convenience for (major) OAuth providers. If a provider is not in the enum, you can use authorizationLocation and tokenLocation with the correct endpoints as String values. > > Oh, and your Wiki lists v0.31 as the version to use for Maven. I noticed > that v1.0 was released to Maven Central. You may want to update your Wiki. > Good point! Is there someone with more karma than me who can fix this? > > Thanks for providing this OAuth 2.0 solution! > > > > - Chris > > The information transmitted is intended only for the person(s) or entity > to which it is addressed and may contain confidential and/or legally > privileged material. Delivery of this message to any person other than the > intended recipient(s) is not intended in any way to waive privilege or > confidentiality. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon, this information by entities > other than the intended recipient is prohibited. If you receive this in > error, please contact the sender and delete the material from any computer. > > For Translation: > > http://www.baxter.com/email_disclaimer > Jasha --001a11352330b88e5f04f5eba0d7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Chris,


On 31 March 2014 16:47, Harris, Christopher P <chri= s_harris@baxter.com> wrote:

Hi.

 

I’m trying to use Oltu with Box.  Box&rsq= uo;s RESTful API is relatively new and uses OAuth 2.0.  As expected, B= ox is not listed within the OAuthProviderType Enum.

 

The demo on your Wiki is not clear as to how to crea= te a request without requiring the OAuthProviderType Enum.

 

How can I create a request without using that Enum?<= /p>


You can use OAuthClientRequ= est.authorizationLocation(AUTHZ_ENDPOINT) and OAuthClientRequest.tokenLocat= ion(TOKEN_ENDPOINT) for OAuth providers that are not a part of the enum. Un= fortunately I cannot update the documentation for you. Can someone add this= to the documentation please :)
 

Can you add Box to the Enum?


Can you please create a patch file with the correc= t endpoints and attach it to a new issue in https://issues.apache.org/jira/browse/OLTU ?
 

I know the Enum was added for convenience, but it&rs= quo;s not a flexible solution.


<= div>The enum is only a convenience for (major) OAuth providers. If a provid= er is not in the enum, you can use authorizationLocation and tokenLocation = with the correct endpoints as String values.

<= /u>

 

Oh, and your Wiki lists v0.31 as the version to use = for Maven.  I noticed that v1.0 was released to Maven Central.  Y= ou may want to update your Wiki.


Good point! Is there someone with more karma than me who can fix this= ?

<= /u>

 

Thanks for providing this OAuth 2.0 solution!=

 

- &n= bsp;      Chris

The information transmitted is intended only for the person(s) or entity= to which it is addressed and may contain confidential and/or legally privi= leged material. Delivery of this message to any person other than the inten= ded recipient(s) is not intended in any way to waive privilege or confident= iality. Any review, retransmission, dissemination or other use of, or takin= g of any action in reliance upon, this information by entities other than t= he intended recipient is prohibited. If you receive this in error, please c= ontact the sender and delete the material from any computer.

For Translation:

htt= p://www.baxter.com/email_disclaimer


Jasha
--001a11352330b88e5f04f5eba0d7--