fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shreyaank Byadagi <shreya...@confluxtechnologies.com>
Subject Re: GSOC 2016 - Authentication on the Mifos REST API
Date Tue, 12 Jul 2016 07:00:26 GMT
Hi Daniel,

The URL's which your using are basically of POST method which cannot be
accessed through the browser's address bar. And the the URL that you have
mentioned is wrong the right URL is:

https://demo.openmf.org/fineract-provider/api/v1/authentication?username=mifos&password=password&&tenantIdentifier=default
<https://demo.openmf.org/fineract-provider/api/authentication?username=mifos&password=password&&tenantIdentifier=default>
this can be submitted only in REST client. And go through this link:
https://demo.openmf.org/api-docs/apiLive.htm#authenticationbasic




Regards
Shreyaank

On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson <dancarl758@gmail.com>
wrote:

> Hi Terence,
>
> Thanks but I already tried that.
>
> Cheers!
> Daniel Carlson
>
> On Tue, Jul 12, 2016 at 7:34 AM, Terence Monteiro <
> terence@sanjosesolutions.in> wrote:
>
> > Hi Daniel,
> >
> > The URL you used needs to have username=mifos&password=password so remove
> > the extra %22 codes and try.
> >
> > --
> > Best Regards,
> > Terence Monteiro,
> > Mob: +91 96633 13728
> > www.sanjosesol.com
> >
> > <http://goog_1610728024>
> > "Providence", No. 36,
> > Ahmed Sait Road,
> > Frazer Town, Bangalore - 5.
> >
> > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson <dancarl758@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I already have those.
> > > When I use my local server, after installing a plugin to enable CORS, I
> > get
> > > a 500 error code
> > > I am using this link locally:
> > >
> > >
> >
> https://localhost:8443/fineract-provider/api/authentication?username=%22mifos%22&password=%22password%22&tenantIdentifier=default
> > > That is the link from within my code
> > >
> > > And when I try to connect to the online server using this:
> > >
> > >
> >
> https://demo.openmf.org/fineract-provider/api/authentication?username=%22mifos%22&password=%22password%22&tenantIdentifier=default
> > >
> > > I get a 401 which tells unauthorized but I just used the mifos and
> > password
> > > credentials to login.
> > >
> > > Cheers!
> > > Daniel Carlson
> > >
> > > On Tue, Jul 12, 2016 at 6:03 AM, Shreyaank Byadagi <
> > > shreyaank@confluxtechnologies.com> wrote:
> > >
> > > > Hi Daniel ,
> > > >
> > > > please add following headers in REST client
> > "Fineract-Platform-TenantId:
> > > > default" and "Content-Type: application/Json"
> > > >
> > > > Regards
> > > > Shreyaank
> > > > On 12-Jul-2016 10:29 AM, "Shreyaank Byadagi" <
> > > > shreyaank@confluxtechnologies.com> wrote:
> > > >
> > > > > Hi Daniel,
> > > > > To which server your communicating ? Demo server or local server
> > > > >
> > > > > Regards
> > > > > Shreyaank
> > > > > On 12-Jul-2016 10:01 AM, "Daniel Carlson" <dancarl758@gmail.com>
> > > wrote:
> > > > >
> > > > >> Hi all,
> > > > >>
> > > > >> For my Google Summer of Code project for this year, I need to
get
> > data
> > > > >> from
> > > > >> the Mifos platform. To that, according to the REST API
> > documentation,
> > > I
> > > > >> have to authenticate that request by by using a basic
> authentication
> > > key
> > > > >> which I then used to make my requests.
> > > > >> I have used this link:
> > > > >>
> > > > >>
> > > >
> > >
> >
> https://demo.openmf.org/fineract-provider/api/authentication?username=mifos&password=password&&tenantIdentifier=default
> > > > >>
> > > > >> but I get CORS errors despite my header configurations which
I
> > copied
> > > > from
> > > > >> the community app.
> > > > >> So I setup my local server and used this link:
> > > > >>
> > > > >>
> > > >
> > >
> >
> https://localhost:8443/fineract-provider/api/authentication?username=mifos&password=password&&tenantIdentifier=default
> > > > >>
> > > > >> Now I get a 500 error code on Firefox and on Chrome I still get
a
> > CORS
> > > > >> error
> > > > >>
> > > > >> Any help with this please?
> > > > >>
> > > > >> Cheers!
> > > > >> Daniel Carlson
> > > > >>
> > > > >
> > > >
> > >
> >
>



-- 
Thanks and Regards
Shreyaank
E-mail:shreyaank@confluxtechnologies.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message