← Back to team overview

dhis2-users team mailing list archive

Authentication through URL for testing/playing with the API

 

Hi,

I wondered if anyone could give me guidance on how I'd pass authentication through a URL.

I'm playing with the API and an app in Webmatrix.  For development/testing purposes seems that easiest thing would be to get authorisation through this interface. Otherwise each time I make changes I have to install the app.

An alternative would perhaps be to have a local dev version of dhis2 running locally and just copy file changes to the local instance but this seems a bit of a faff.

I looked in the dev documentation and it suggests using basic authorisation.  I'm trying the following but is not working... https://Aladdin:OpenSesame@xxxxxxxxxxxxxxxxxxx/api/resources


Any help would be greatly appreciated.   If easiest is through a local instance then so be it, no worries.

Cheers

Craig

p.s. I'm using version 2.20 build 21819

----------------------------------------------
Craig Hollingsworth
Global M&E Data Pilots Project Manager
Tel: +57 320 208 4921  / +44 (0) 7570 138 151
Skype:  Craig.Hollingsworth

[NRC Logo spanish]

----------------------------------------------

PNG image