Re: [Dhis2-users] Unsupported grant_type error

2016-04-12 Thread Morten Olav Hansen
Hi What version of DHIS 2 are you on? also did you configure your oauth2 clients? Did you test with password based oauth2, is that working fine? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, Apr 11, 2016 at 3:54 AM, eric mourin wrote: > Hi ever

[Dhis2-users] Unsupported grant_type error

2016-04-10 Thread eric mourin
Hi everyone, I've been working with the API and while the password grant type worked correctly I'm getting an error message when using the "authorized_code" grant type. Here is my request: curl -X POST -u $CLIENT:$SECRET -H "Accept: application/json" $SERVER/uaa/oauth/token -d grant_type=auth