OAuth2 example is broken when using client credentials as authorization grants

2014-10-01 Thread Kay
I tried OAuth2 example (org\restlet\example\ext\oauth\server\OAuth2Sample) in restlet 2.2.2. However, in org.restlet.ext.oauth.TokenAuthServerResource, the username is required for the json response or the TokenVerifier will throw exceptions. In client credential grants, it does not need a user

Persisting credentials to be used with HTTP Digest authentication

2014-04-12 Thread Fabian Mandelbaum
Hello, I'm trying to switch from HTTP Basic (through an HTTPS channel) to HTTP Digest (keeping the HTTPS channel) authentication. I'm currently testing without HTTPS, and I was wondering how should my 'backend' store the user credentials. Currently I'm using an MD5 h

RE: Credentials

2009-07-21 Thread Jerome Louvel
igine- De : restletuser [mailto:jeanjov...@yahoo.com] Envoyé : mercredi 15 juillet 2009 17:41 À : discuss@restlet.tigris.org Objet : Credentials I am a newbie using restlet framework. I would like to know how the user credentials can be passed to the resource for GET, POST, PUT operations. Can so

Credentials

2009-07-15 Thread restletuser
I am a newbie using restlet framework. I would like to know how the user credentials can be passed to the resource for GET, POST, PUT operations. Can someone give insight on to this. -- View this message in context: http://n2.nabble.com/Credentials-tp3263991p3263991.html Sent from the Restlet

RE: Using credentials from the Container

2009-04-02 Thread Jerome Louvel
iscuss@restlet.tigris.org Objet : Using credentials from the Container Hi everyone, Can someone tell me, with the new Security API, will it be possible to use the credentials from the Container? I use the BASIC authentication with Tomcat now, but I'm wondering if it's possible to have the

Using credentials from the Container

2009-03-24 Thread Dustin N. Jenkins
Hi everyone, Can someone tell me, with the new Security API, will it be possible to use the credentials from the Container? I use the BASIC authentication with Tomcat now, but I'm wondering if it's possible to have the Restlet Request's ChallengeResponse be populated automag

Re: [restlet-user] Retrieving Credentials sent by HttpClient

2009-01-28 Thread John Prystash
Credentials sent by HttpClient Thanks for taking a look Jerome. I've sent an email over to the Mule User list. I got help with the Mule Restlet transport on this list before so I thought this might of been the place to try again. I'll be sure to post back when this is all resolved :)

Re: [restlet-user] Retrieving Credentials sent by HttpClient

2009-01-27 Thread John Prystash
Markmail entry for the email: http://markmail.org/search/?q=prystash+mule-user+credentials#query:prystash%20mule-user%20credentials+page:1+mid:ex4joce6pu3yih2i+state:results From: Jerome Louvel To: discuss@restlet.tigris.org Sent: Tuesday, January 27, 2009 4:45:29

RE: [restlet-user] Retrieving Credentials sent by HttpClient

2009-01-27 Thread Jerome Louvel
tlet.org/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com> http://www.noelios.com _ De : John Prystash [mailto:stash1...@yahoo.com] Envoye : lundi 26 janvier 2009 23:33 A : discuss@restlet.tigris.org Objet : Re: [restlet-user] Retrieving Cr

Re: [restlet-user] Retrieving Credentials sent by HttpClient

2009-01-26 Thread John Prystash
, January 26, 2009 5:12:54 PM Subject: Re: [restlet-user] Retrieving Credentials sent by HttpClient To follow-up some more... I tried using the Restlet Client code provided by the example in the tutorial (http://www.restlet.org/documentation/1.1/tutorial#part09) and went back to using my Guard

Re: [restlet-user] Retrieving Credentials sent by HttpClient

2009-01-26 Thread John Prystash
est) Sorry to keep pinging here, but I'm running out of ideas :) From: John Prystash To: discuss@restlet.tigris.org Sent: Monday, January 26, 2009 10:47:01 AM Subject: Re: [restlet-user] Retrieving Credentials sent by HttpClient To follow-up, I tried followi

Re: [restlet-user] Retrieving Credentials sent by HttpClient

2009-01-26 Thread John Prystash
); guard.getSecrets().put("john", "john".toCharArray()); guard.setNext(MyResource.class); In my client, I set the credentials as before: def credentials = new UsernamePasswordCredentials("john", "john") And I get a 4

[restlet-user] Retrieving Credentials sent by HttpClient

2009-01-25 Thread John Prystash
Hi, I'm trying to retrieve the credentials set in by HttpClient in my Restlet service. I'm using Mule 2.0.2 with 1.1.3 of the Mule Restlet Transport (uses Restlet 1.1.1). In my Guard class, request.getChallengeResponse() is return null. My Guard extension: public class MyGua

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Surjendu
Request, inserting credentials in the challengeScheme, i am able to retrieve the login/pwd in my resource.Problem is whenever I use an apache client library the following returns null: request.getChallengeResponse().getIdentifier(); request.getChallengeResponse().getCredentials(); To circumvent

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Thierry Boileau
); File f = new File("C:\\input.txt"); System.out.println("File Length" + f.length()); mPost.addParameter(f.getName(), f); Credentials defaultcreds = new UsernamePasswordCredentials("xxx",

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Rhett Sutphin
On Apr 30, 2008, at 2:18 PM, Surjendu wrote: I tried that..But i still get the credentials as null..Is there any other way to figure out whether the credentials are reaching the server. I'm a fan of wireshark for isolating client/server interaction problems: http://www.wireshar

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Surjendu
I tried that..But i still get the credentials as null..Is there any other way to figure out whether the credentials are reaching the server.

Re: Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Rob Heittman
First, are you certain the credentials are arriving at the server? Try: client.getState().setCredentials( new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM), defaultcreds); The client settings

Credentials sent via Apache HttpClient not getting retrieved by Restlet Custom Guard classes

2008-04-30 Thread Surjendu
)); client.setConnectionTimeout(8000); File f = new File("C:\\input.txt"); System.out.println("File Length" + f.length()); mPost.addParameter(f.getName(), f); Credentials defaultcreds = new UsernamePass