Re: [VOTE] [FINERACT] 0.3.2-incubating for release

2016-07-12 Thread John D. Ament
Hi Nazeer,

I think we're disconnected a little bit.  Following your readme file, I ran 
"gradle clean war" (Note: I have gradle preinstalled).  The resulting binary 
zip includes hibernate as a dependency.  In addition, I see the MySQL JDBC 
Driver in as a dependency, which is GPL.

John

On 2016-07-12 21:48 (-0400), Nazeer Shaik 
 wrote: 
> Hi John,
> 
> We are removing hibernate transitive dependency by adding following script
> in build.gradle.
> 
> compile() {
> exclude module: 'hibernate-entitymanager'
> }
> 
> Thanks,
> Nazeer
> 
> 
> On Wed, Jul 13, 2016 at 7:04 AM, John D. Ament 
> wrote:
> 
> > Hi,
> >
> > Just to point this out - hope you don't mind my lurking.  You still have a
> > dependency on hibernate transitively from spring-boot-starter-data-jpa.
> >
> > John
> >
> > On 2016-07-12 10:32 (-0400), Nazeer Shaik 
> > wrote:
> > > Hello Fineract community,
> > >
> > > We have created 0.3.2-incubating release, with the artifacts below up
> > for a
> > > vote.
> > >
> > > These are the goals of this release:
> > >
> > >- Moved Hibernate dependency only to integration tests. So default
> > build
> > >will not include Hibernate dependency
> > >- Removed JSR305 dependency
> > >
> > >
> > > *For more information including release notes, please see:*
> > >
> > https://cwiki.apache.org/confluence/display/FINERACT/0.3.2+Release-+Apache+Fineract
> > >
> > > This is a *source code tar ball* only release.
> > >
> > > *** Please download, review and vote by Thu July 14, 2016 @ 6pm PST ***
> > >
> > > *Source Files:*
> > >
> > https://dist.apache.org/repos/dist/dev/incubator/fineract/0.3.2-incubating/
> > >
> > > *Commit to be voted on:*
> > >
> > https://git-wip-us.apache.org/repos/asf?p=incubator-fineract.git;a=commit;h=refs/heads/0.3.2-incubating
> > >
> > > *Build verification steps can be found at: *
> > > Refer 'README.md' in apache-fineract-0.3.2-incubating-src.tar.gz
> > >
> > > *KEYS file containing PGP Keys we use to sign the release:*
> > > https://dist.apache.org/repos/dist/dev/incubator/fineract/KEYS
> > >
> > >
> > > *Note: *
> > >
> > >- This is a source only release with no binaries, with instructions on
> > >how to build/test the application.
> > >- We use hibernate for integration tests only and doesn't include any
> > >source or binary from Hibernate
> > >- There is a *change in command to run integration tests*. Please look
> > >at README.md for more details.
> > >
> > > To help in tallying the vote, members please be sure to indicate
> > > "(binding)" with your vote.
> > >
> > > [ ] +1  approve
> > > [ ] +0  no opinion
> > > [ ] -1  disapprove (and reason why)
> > >
> > > Thank you,
> > > Nazeer
> > >
> >
> 


Re: [VOTE] [FINERACT] 0.3.2-incubating for release

2016-07-12 Thread John D. Ament
Hi,

Just to point this out - hope you don't mind my lurking.  You still have a 
dependency on hibernate transitively from spring-boot-starter-data-jpa.  

John

On 2016-07-12 10:32 (-0400), Nazeer Shaik  wrote: 
> Hello Fineract community,
> 
> We have created 0.3.2-incubating release, with the artifacts below up for a
> vote.
> 
> These are the goals of this release:
> 
>- Moved Hibernate dependency only to integration tests. So default build
>will not include Hibernate dependency
>- Removed JSR305 dependency
> 
> 
> *For more information including release notes, please see:*
> https://cwiki.apache.org/confluence/display/FINERACT/0.3.2+Release-+Apache+Fineract
> 
> This is a *source code tar ball* only release.
> 
> *** Please download, review and vote by Thu July 14, 2016 @ 6pm PST ***
> 
> *Source Files:*
> https://dist.apache.org/repos/dist/dev/incubator/fineract/0.3.2-incubating/
> 
> *Commit to be voted on:*
> https://git-wip-us.apache.org/repos/asf?p=incubator-fineract.git;a=commit;h=refs/heads/0.3.2-incubating
> 
> *Build verification steps can be found at: *
> Refer 'README.md' in apache-fineract-0.3.2-incubating-src.tar.gz
> 
> *KEYS file containing PGP Keys we use to sign the release:*
> https://dist.apache.org/repos/dist/dev/incubator/fineract/KEYS
> 
> 
> *Note: *
> 
>- This is a source only release with no binaries, with instructions on
>how to build/test the application.
>- We use hibernate for integration tests only and doesn't include any
>source or binary from Hibernate
>- There is a *change in command to run integration tests*. Please look
>at README.md for more details.
> 
> To help in tallying the vote, members please be sure to indicate
> "(binding)" with your vote.
> 
> [ ] +1  approve
> [ ] +0  no opinion
> [ ] -1  disapprove (and reason why)
> 
> Thank you,
> Nazeer
> 


Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Daniel Carlson
The main.js file has functions which call it. The function itself is in the
services.js

Cheers!
Daniel Carlson

On Tue, Jul 12, 2016 at 11:27 AM, Shreyaank Byadagi <
shreya...@confluxtechnologies.com> wrote:

> Hi daniel,
> Which controller is calling the authentication service?
>
> Regards
> Shreyaank
>
> On Tue, Jul 12, 2016 at 3:34 PM, Daniel Carlson 
> wrote:
>
> > Hi Shreyank,
> >
> > This is the github link:
> >
> https://github.com/DanCarl857/Mobile-Application/tree/master/frontend-app
> >
> > Thanks
> >
> > Cheers!
> > Daniel Carlson
> >
> > On Tue, Jul 12, 2016 at 10:07 AM, Shreyaank Byadagi <
> > shreya...@confluxtechnologies.com> wrote:
> >
> > > Hi Daniel,
> > > Please share your code I will look into your code base and try to fix
> it
> > >
> > > Regards
> > > Shreyaank
> > >
> > > On Tue, Jul 12, 2016 at 1:01 PM, Daniel Carlson 
> > > wrote:
> > >
> > > > Hi Shreyaank,
> > > >
> > > > But when I use that from within my code. Like for example when the
> user
> > > > logs in, they enter their username and password(in this case mifos
> and
> > > > password), I want to use this to log them onto the mifos platform so
> I
> > > use
> > > > that call from within my code. But I am getting CORS errors. I had to
> > > > download and add a plugin in Chrome which enables that. Could you
> tell
> > > how
> > > > to fix this so that it works on all browsers? This is because clients
> > > with
> > > > Chrome may not have this plugin.
> > > >
> > > > Cheers!
> > > > Daniel Carlson
> > > >
> > > > On Tue, Jul 12, 2016 at 8:07 AM, Daniel Carlson <
> dancarl...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Nikhil, Terence,
> > > > >
> > > > > I wanted to do this from within the code as it is part of the login
> > > > > service for my app.
> > > > >
> > > > > Terence that solved it thanks. Many heads are indeed better than
> one.
> > > > >
> > > > > Cheers!
> > > > > Daniel Carlson
> > > > >
> > > > >
> > > > > On Tue, Jul 12, 2016 at 7:51 AM, Nikhil Pawar 
> > > > wrote:
> > > > >
> > > > >> Hey Daniel,
> > > > >>
> > > > >> Need not pass username and password as query parameter.(its not
> GET
> > > > >> method)
> > > > >> Try this:
> > > > >>
> > > > >>
> > > >
> > >
> >
> https://localhost:8443/fineract-provider/api/v1/offices?tenantIdentifier=default
> > > > >>
> > > > >> and then you will be asked for username and password.
> > > > >>
> > > > >> You can also use clients like Postman for chrome or RESTClient for
> > > > mozilla
> > > > >> for testing of REST API.
> > > > >>
> > > > >> Regards,
> > > > >> Nikhil
> > > > >>
> > > > >> On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson <
> > > dancarl...@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 <
> > > > >> > tere...@sanjosesolutions.in> wrote:
> > > > >> >
> > > > >> > > Hi Daniel,
> > > > >> > >
> > > > >> > > The URL you used needs to have
> username=mifos=password
> > so
> > > > >> remove
> > > > >> > > the extra %22 codes and try.
> > > > >> > >
> > > > >> > > --
> > > > >> > > Best Regards,
> > > > >> > > Terence Monteiro,
> > > > >> > > Mob: +91 96633 13728
> > > > >> > > www.sanjosesol.com
> > > > >> > >
> > > > >> > > 
> > > > >> > > "Providence", No. 36,
> > > > >> > > Ahmed Sait Road,
> > > > >> > > Frazer Town, Bangalore - 5.
> > > > >> > >
> > > > >> > > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson <
> > > > >> dancarl...@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=%22password%22=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=%22password%22=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 <
> > > > >> > > > shreya...@confluxtechnologies.com> wrote:
> > > > >> > > >
> > > > >> > > > > Hi Daniel ,
> > > > >> > > > >
> > > > >> > > 

[VOTE] [FINERACT] 0.3.2-incubating for release

2016-07-12 Thread Nazeer Shaik
Hello Fineract community,

We have created 0.3.2-incubating release, with the artifacts below up for a
vote.

These are the goals of this release:

   - Moved Hibernate dependency only to integration tests. So default build
   will not include Hibernate dependency
   - Removed JSR305 dependency


*For more information including release notes, please see:*
https://cwiki.apache.org/confluence/display/FINERACT/0.3.2+Release-+Apache+Fineract

This is a *source code tar ball* only release.

*** Please download, review and vote by Thu July 14, 2016 @ 6pm PST ***

*Source Files:*
https://dist.apache.org/repos/dist/dev/incubator/fineract/0.3.2-incubating/

*Commit to be voted on:*
https://git-wip-us.apache.org/repos/asf?p=incubator-fineract.git;a=commit;h=refs/heads/0.3.2-incubating

*Build verification steps can be found at: *
Refer 'README.md' in apache-fineract-0.3.2-incubating-src.tar.gz

*KEYS file containing PGP Keys we use to sign the release:*
https://dist.apache.org/repos/dist/dev/incubator/fineract/KEYS


*Note: *

   - This is a source only release with no binaries, with instructions on
   how to build/test the application.
   - We use hibernate for integration tests only and doesn't include any
   source or binary from Hibernate
   - There is a *change in command to run integration tests*. Please look
   at README.md for more details.

To help in tallying the vote, members please be sure to indicate
"(binding)" with your vote.

[ ] +1  approve
[ ] +0  no opinion
[ ] -1  disapprove (and reason why)

Thank you,
Nazeer


Re: Clarification on Validator Classes for Multiple Rescheduling of a Loan

2016-07-12 Thread Andris Kaneps
Dear Adi and the team,

As you may know Vishwas from Conflux Technologies has finished the
development of Mifos fix that solves the rescheduling issue. We will do
in-house testing for the coming days.

Can you please let us know when this could be implemented into Mifos update?

Regards,

Andris

On Tue, Apr 19, 2016 at 10:59 AM, Adi Raju  wrote:

> Hi Ed,
>
>
>
> Subramanya will be working on this task tomorrow.
>
>
>
> Regards,
>
> Adi
>
>
>
> *From:* Ed Cable [mailto:edca...@mifos.org]
> *Sent:* 18 April 2016 21:49
> *To:* Andris Kaneps 
> *Cc:* Agris Varpins ; Adi Raju <
> adi.r...@confluxtechnologies.com>; Sander van der Heyden <
> sandervanderhey...@musoni.eu>; dev@fineract.incubator.apache.org; robert
> wizglobal ; Zack Wizglobal ;
> pra...@confluxtechnologies.com Nuthakki ;
> Philippe Storm ; Markus Geiß 
> *Subject:* Re: Clarification on Validator Classes for Multiple
> Rescheduling of a Loan
>
>
>
> Adi,
>
>
>
> Now that the team has gotten through the QA for the most recent release,
> could you have the QA team spend some time on testing the scenarios and
> APIs you referenced above. Could you also provide a bit more clarity
> regarding what Zack needs to done for allowing for the undoing of the
> reschedulings.
>
>
>
> Thanks,
>
>
>
> Ed
>
>
>
> On Tue, Apr 12, 2016 at 2:46 AM, Andris Kaneps 
> wrote:
>
> Gentlemen,
>
>
>
> If we would comission to Zack the "undo" function- would it be the
> solution?
>
>
>
> R,
>
> Andris
>
> Sent from my iPhone
>
>
> On 2016. gada 12. apr., at 11:44, Agris Varpins <
> agris.varp...@mtgcapital.ch> wrote:
>
> Who can test it and tell if they are working? I am not an IT person
> myself, As I said I tested the fix in test environment and ext worked fine,
> however, if there is something else to be tested purely from technical
> point of view, then, gentlemen, I trust you are the right people to deliver
> that verdict!!
>
> Cheers,
> Agris
>
>
>
> On Tue, Apr 12, 2016 at 11:49 AM, Adi Raju <
> adi.r...@confluxtechnologies.com> wrote:
>
> If you look at api doc
> https://demo.openmf.org/api-docs/apiLive.htm#loan_rescheduling
>
> I see APIs to read/reject/approve any reschedule loan request instance.
>
> As long as these APIs are tested to be working fine, it should be good
> enough.
>
>
>
> Regards,
>
> Adi
>
>
>
> *From:* Agris Varpins [mailto:agris.varp...@mtgcapital.ch]
> *Sent:* 12 April 2016 13:38
> *To:* Adi Raju 
> *Cc:* Sander van der Heyden ; Ed Cable <
> edca...@mifos.org>; dev@fineract.incubator.apache.org; robert wizglobal <
> rob...@wizglobal.co.ke>; Zack Wizglobal ;
> pra...@confluxtechnologies.com Nuthakki ;
> Andris Kaneps ; Philippe Storm <
> pst...@watucredit.com>; Markus Geiß 
> *Subject:* Re: Clarification on Validator Classes for Multiple
> Rescheduling of a Loan
>
>
>
> Could you clarify what you mean by "undo reschedule if the user makes a
> mistake"? In current version extenion cannot be undone if I am not mistaken
> or are we talking about some othetr functionality?
>
>
>
> On Tue, Apr 12, 2016 at 11:02 AM, Adi Raju <
> adi.r...@confluxtechnologies.com> wrote:
>
> As mentioned by Sander:
>
> “The main reason we put in the restrictions around allowing only one
> reschedule, was to also enable users to undo them easily if they were made
> by mistake. I think that is something that can be solved, but would require
> a bit of extra work ensuring that the correct old schedules are grabbed and
> reapplied to the loan.”
>
>
>
> Until this additional work is done, I wouldn’t recommend current solution
> to be merged.
>
>
>
> Regards,
>
> Adi
>
>
>
> *From:* Agris Varpins [mailto:agris.varp...@mtgcapital.ch]
> *Sent:* 12 April 2016 13:14
> *To:* Sander van der Heyden 
> *Cc:* Ed Cable ; dev@fineract.incubator.apache.org;
> robert wizglobal ; Zack Wizglobal <
> z...@wizglobal.co.ke>; pra...@confluxtechnologies.com Nuthakki <
> pra...@confluxtechnologies.com>; Andris Kaneps ;
> Philippe Storm ; Markus Geiß ;
> Adi Raju 
> *Subject:* Re: Clarification on Validator Classes for Multiple
> Rescheduling of a Loan
>
>
>
> Good morning, gentlemen!
>
> So where do we stand with this update?  Ed, has your team done some
> testing of the update to see if it works properly with the test clients?
> When we tested for our purposes, it seemed to work as we expected - loans
> could be rescheduled multiple times and reschedule could be done without
> undoing previously entered payments. Granted, we did not test how 

RE: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Mifos @omexit
Hi,

 

Can you get error logs of your application when you get error 500? It means 
internal server error, which may describe why. 

 

From: Daniel Carlson [mailto:dancarl...@gmail.com] 
Sent: Tuesday, July 12, 2016 7:32 AM
To: Nayan Ambali ; Omexit Mifos ; Ed 
Cable ; Markus Geiß ; 
dev@fineract.incubator.apache.org
Subject: GSOC 2016 - Authentication on the Mifos REST API

 

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&=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&=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

 



Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Shreyaank Byadagi
Hi daniel,
Which controller is calling the authentication service?

Regards
Shreyaank

On Tue, Jul 12, 2016 at 3:34 PM, Daniel Carlson 
wrote:

> Hi Shreyank,
>
> This is the github link:
> https://github.com/DanCarl857/Mobile-Application/tree/master/frontend-app
>
> Thanks
>
> Cheers!
> Daniel Carlson
>
> On Tue, Jul 12, 2016 at 10:07 AM, Shreyaank Byadagi <
> shreya...@confluxtechnologies.com> wrote:
>
> > Hi Daniel,
> > Please share your code I will look into your code base and try to fix it
> >
> > Regards
> > Shreyaank
> >
> > On Tue, Jul 12, 2016 at 1:01 PM, Daniel Carlson 
> > wrote:
> >
> > > Hi Shreyaank,
> > >
> > > But when I use that from within my code. Like for example when the user
> > > logs in, they enter their username and password(in this case mifos and
> > > password), I want to use this to log them onto the mifos platform so I
> > use
> > > that call from within my code. But I am getting CORS errors. I had to
> > > download and add a plugin in Chrome which enables that. Could you tell
> > how
> > > to fix this so that it works on all browsers? This is because clients
> > with
> > > Chrome may not have this plugin.
> > >
> > > Cheers!
> > > Daniel Carlson
> > >
> > > On Tue, Jul 12, 2016 at 8:07 AM, Daniel Carlson 
> > > wrote:
> > >
> > > > Hi Nikhil, Terence,
> > > >
> > > > I wanted to do this from within the code as it is part of the login
> > > > service for my app.
> > > >
> > > > Terence that solved it thanks. Many heads are indeed better than one.
> > > >
> > > > Cheers!
> > > > Daniel Carlson
> > > >
> > > >
> > > > On Tue, Jul 12, 2016 at 7:51 AM, Nikhil Pawar 
> > > wrote:
> > > >
> > > >> Hey Daniel,
> > > >>
> > > >> Need not pass username and password as query parameter.(its not GET
> > > >> method)
> > > >> Try this:
> > > >>
> > > >>
> > >
> >
> https://localhost:8443/fineract-provider/api/v1/offices?tenantIdentifier=default
> > > >>
> > > >> and then you will be asked for username and password.
> > > >>
> > > >> You can also use clients like Postman for chrome or RESTClient for
> > > mozilla
> > > >> for testing of REST API.
> > > >>
> > > >> Regards,
> > > >> Nikhil
> > > >>
> > > >> On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson <
> > dancarl...@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 <
> > > >> > tere...@sanjosesolutions.in> wrote:
> > > >> >
> > > >> > > Hi Daniel,
> > > >> > >
> > > >> > > The URL you used needs to have username=mifos=password
> so
> > > >> remove
> > > >> > > the extra %22 codes and try.
> > > >> > >
> > > >> > > --
> > > >> > > Best Regards,
> > > >> > > Terence Monteiro,
> > > >> > > Mob: +91 96633 13728
> > > >> > > www.sanjosesol.com
> > > >> > >
> > > >> > > 
> > > >> > > "Providence", No. 36,
> > > >> > > Ahmed Sait Road,
> > > >> > > Frazer Town, Bangalore - 5.
> > > >> > >
> > > >> > > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson <
> > > >> dancarl...@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=%22password%22=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=%22password%22=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 <
> > > >> > > > shreya...@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" <
> > > >> > > > > shreya...@confluxtechnologies.com> wrote:
> > > >> > > > >
> > > >> > > > > > Hi Daniel,
> > > >> > > > > > To which server your communicating ? Demo server or local
> > > server
> > > >> > > > > >
> > > >> > > > > > Regards
> > > >> > > > > > Shreyaank
> > 

Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Daniel Carlson
Hi Shreyank,

This is the github link:
https://github.com/DanCarl857/Mobile-Application/tree/master/frontend-app

Thanks

Cheers!
Daniel Carlson

On Tue, Jul 12, 2016 at 10:07 AM, Shreyaank Byadagi <
shreya...@confluxtechnologies.com> wrote:

> Hi Daniel,
> Please share your code I will look into your code base and try to fix it
>
> Regards
> Shreyaank
>
> On Tue, Jul 12, 2016 at 1:01 PM, Daniel Carlson 
> wrote:
>
> > Hi Shreyaank,
> >
> > But when I use that from within my code. Like for example when the user
> > logs in, they enter their username and password(in this case mifos and
> > password), I want to use this to log them onto the mifos platform so I
> use
> > that call from within my code. But I am getting CORS errors. I had to
> > download and add a plugin in Chrome which enables that. Could you tell
> how
> > to fix this so that it works on all browsers? This is because clients
> with
> > Chrome may not have this plugin.
> >
> > Cheers!
> > Daniel Carlson
> >
> > On Tue, Jul 12, 2016 at 8:07 AM, Daniel Carlson 
> > wrote:
> >
> > > Hi Nikhil, Terence,
> > >
> > > I wanted to do this from within the code as it is part of the login
> > > service for my app.
> > >
> > > Terence that solved it thanks. Many heads are indeed better than one.
> > >
> > > Cheers!
> > > Daniel Carlson
> > >
> > >
> > > On Tue, Jul 12, 2016 at 7:51 AM, Nikhil Pawar 
> > wrote:
> > >
> > >> Hey Daniel,
> > >>
> > >> Need not pass username and password as query parameter.(its not GET
> > >> method)
> > >> Try this:
> > >>
> > >>
> >
> https://localhost:8443/fineract-provider/api/v1/offices?tenantIdentifier=default
> > >>
> > >> and then you will be asked for username and password.
> > >>
> > >> You can also use clients like Postman for chrome or RESTClient for
> > mozilla
> > >> for testing of REST API.
> > >>
> > >> Regards,
> > >> Nikhil
> > >>
> > >> On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson <
> dancarl...@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 <
> > >> > tere...@sanjosesolutions.in> wrote:
> > >> >
> > >> > > Hi Daniel,
> > >> > >
> > >> > > The URL you used needs to have username=mifos=password so
> > >> remove
> > >> > > the extra %22 codes and try.
> > >> > >
> > >> > > --
> > >> > > Best Regards,
> > >> > > Terence Monteiro,
> > >> > > Mob: +91 96633 13728
> > >> > > www.sanjosesol.com
> > >> > >
> > >> > > 
> > >> > > "Providence", No. 36,
> > >> > > Ahmed Sait Road,
> > >> > > Frazer Town, Bangalore - 5.
> > >> > >
> > >> > > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson <
> > >> dancarl...@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=%22password%22=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=%22password%22=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 <
> > >> > > > shreya...@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" <
> > >> > > > > shreya...@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" <
> > dancarl...@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
> > >> 

Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Shreyaank Byadagi
Hi Daniel,
Please share your code I will look into your code base and try to fix it

Regards
Shreyaank

On Tue, Jul 12, 2016 at 1:01 PM, Daniel Carlson 
wrote:

> Hi Shreyaank,
>
> But when I use that from within my code. Like for example when the user
> logs in, they enter their username and password(in this case mifos and
> password), I want to use this to log them onto the mifos platform so I use
> that call from within my code. But I am getting CORS errors. I had to
> download and add a plugin in Chrome which enables that. Could you tell how
> to fix this so that it works on all browsers? This is because clients with
> Chrome may not have this plugin.
>
> Cheers!
> Daniel Carlson
>
> On Tue, Jul 12, 2016 at 8:07 AM, Daniel Carlson 
> wrote:
>
> > Hi Nikhil, Terence,
> >
> > I wanted to do this from within the code as it is part of the login
> > service for my app.
> >
> > Terence that solved it thanks. Many heads are indeed better than one.
> >
> > Cheers!
> > Daniel Carlson
> >
> >
> > On Tue, Jul 12, 2016 at 7:51 AM, Nikhil Pawar 
> wrote:
> >
> >> Hey Daniel,
> >>
> >> Need not pass username and password as query parameter.(its not GET
> >> method)
> >> Try this:
> >>
> >>
> https://localhost:8443/fineract-provider/api/v1/offices?tenantIdentifier=default
> >>
> >> and then you will be asked for username and password.
> >>
> >> You can also use clients like Postman for chrome or RESTClient for
> mozilla
> >> for testing of REST API.
> >>
> >> Regards,
> >> Nikhil
> >>
> >> On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson 
> >> wrote:
> >>
> >> > Hi Terence,
> >> >
> >> > Thanks but I already tried that.
> >> >
> >> > Cheers!
> >> > Daniel Carlson
> >> >
> >> > On Tue, Jul 12, 2016 at 7:34 AM, Terence Monteiro <
> >> > tere...@sanjosesolutions.in> wrote:
> >> >
> >> > > Hi Daniel,
> >> > >
> >> > > The URL you used needs to have username=mifos=password so
> >> remove
> >> > > the extra %22 codes and try.
> >> > >
> >> > > --
> >> > > Best Regards,
> >> > > Terence Monteiro,
> >> > > Mob: +91 96633 13728
> >> > > www.sanjosesol.com
> >> > >
> >> > > 
> >> > > "Providence", No. 36,
> >> > > Ahmed Sait Road,
> >> > > Frazer Town, Bangalore - 5.
> >> > >
> >> > > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson <
> >> dancarl...@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=%22password%22=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=%22password%22=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 <
> >> > > > shreya...@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" <
> >> > > > > shreya...@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" <
> dancarl...@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&=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:
> >> > > > > >>
> >> > > > > >>
> >> > > > >
> 

Re: [VOTE] Release Apache Fineract 0.3.1 (incubating)

2016-07-12 Thread Nazeer Shaik
To the incubator community:

Fineract team is withdrawing the current release from voting, so that we
can work on the issue(s) John raised.

*Thank you John for your feedback.*

Nazeer

On Fri, Jul 8, 2016 at 6:13 PM, John D. Ament  wrote:

> Hi Adi,
>
> I'm going to disagree with you.  You can see the summary of the
> spring-boot-starter-data-jpa pom here:
>
> http://search.maven.org/#artifactdetails%7Corg.springframework.boot%7Cspring-boot-starter-data-jpa%7C1.3.6.RELEASE%7Cjar
>
> It brings in hibernate directly, not as a test dependency.
>
> John
>
> On Fri, Jul 8, 2016 at 8:10 AM Adi Raju 
> wrote:
>
> > Hi John,
> >
> > The code doesn't have any hibernate dependency.
> > But as part of dev environment, to execute integration tests, we are
> using
> > hibernate.
> > AFAIK LGPL is allowed for dev environment.
> >
> > From deployment perspective, we would expect the user of this project to
> > make a choice of JPA vendor and make appropriate xml or code changes to
> be
> > able to deploy.
> >
> > Does the release make sense with this context?
> >
> > Regards,
> > Adi
> >
> > -Original Message-
> > From: John D. Ament [mailto:johndam...@apache.org]
> > Sent: 08 July 2016 17:02
> > To: gene...@incubator.apache.org
> > Cc: dev@fineract.incubator.apache.org
> > Subject: Re: [VOTE] Release Apache Fineract 0.3.1 (incubating)
> >
> > Sorry but -1 due to transitive LGPL dependencies that come in with the
> > project.
> >
> > Findbugs jsr305 shows an inconsistent license, some places show Apache
> > others show LGPL.  LGPL is the generally regarding cannonical license
> AFAIK.
> >
> > In addition, springboot-starter-data-jpa brings in a transitive Hibernate
> > 4.3 release, which is also LGPL.
> >
> > Though I'm happy to hear arguments from IPMC members why this may be OK
> > for an initial release, since the source release does include a proper
> > disclaimer.
> >
> > John
> >
> > On Fri, Jul 8, 2016 at 1:36 AM Nazeer Shaik 
> > wrote:
> >
> > > Hello Incubator PMC,
> > >
> > > The Apache Fineract community has voted and approved the proposal to
> > > release Apache Fineract 0.3.1 (incubating).
> > > We now kindly request the Incubator PMC members review and vote on
> > > this incubator release.
> > >
> > > Apache Fineract is an open source system for core banking as a
> platform.
> > > Fineract provides a reliable, robust, and affordable solution for
> > > entrepreneurs, financial institutions, and service providers to offer
> > > financial services to the world’s 2 billion under banked and unbanked.
> > > More information can be found at http://fineract.incubator.apache.org/
> > >
> > > The Apache Fineract-0.3.1-incubating release candidate is now
> > > available with the following artifacts for a project vote:
> > >
> > > [VOTE] Thread:
> > >
> > > http://mail-archives.apache.org/mod_mbox/incubator-fineract-dev/201607
> > > .mbox/%3CCAOSe2yvHRYKpHPtvZc_g0zBi-ozr6L9nSfjXqLNcuh0KBdtMGA%40mail.gm
> > > ail.com%3E
> > >
> > > [VOTE RESULT] Thread:
> > >
> > > http://mail-archives.apache.org/mod_mbox/incubator-fineract-dev/201607
> > > .mbox/%3CCAOSe2yvZD%3D%2Ba%2B5tSRKBDrprFMxyGg1mP62cU80aZ1mD3osHwfg%40m
> > > ail.gmail.com%3E
> > >
> > > The release candidate to be voted on is available at:
> > >
> > > https://dist.apache.org/repos/dist/dev/incubator/fineract/0.3.1-incuba
> > > ting/apache-fineract-0.3.1-incubating-src.tar.gz
> > >
> > > Git tag for the release:
> > > https://github.com/apache/incubator-fineract/tree/0.3.1-incubating
> > > or
> > >
> > > https://git-wip-us.apache.org/repos/asf?p=incubator-fineract.git;a=tre
> > > e;h=refs/heads/0.3.1-incubating;hb=refs/heads/0.3.1-incubating
> > >
> > > Source release verification:
> > > PGP signature:
> > >
> > > https://dist.apache.org/repos/dist/dev/incubator/fineract/0.3.1-incuba
> > > ting/apache-fineract-0.3.1-incubating-src.tar.gz.asc
> > > MD5/SHA
> > >  > > ating/apache-fineract-0.3.1-incubating-src.tar.gz.ascMD5/SHA>
> > > Hash:
> > >
> > > https://dist.apache.org/repos/dist/dev/incubator/fineract/0.3.1-incuba
> > > ting/apache-fineract-0.3.1-incubating-src.tar.gz.md5
> > > Keys to verify the signature of the release artifact are available at:
> > > https://dist.apache.org/repos/dist/dev/incubator/fineract/KEYS
> > >
> > > Release Notes:
> > >
> > > https://cwiki.apache.org/confluence/display/FINERACT/0.3.1+Release-+Ap
> > > ache+Fineract
> > >
> > > Build verification steps can be found at:
> > >
> > > https://github.com/apache/incubator-fineract/blob/0.3.1-incubating/REA
> > > DME.md or refer 'README.md' in
> > > apache-fineract-0.3.1-incubating-src.tar.gz
> > >
> > > Note:
> > > 1) This is a source only release with no binaries, with instructions
> > > on how to build/test the application.
> > > 2) Fineract uses hibernate, *only for integration tests*. No hibernate
> > > source or 

Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Daniel Carlson
Hi Nikhil, Terence,

I wanted to do this from within the code as it is part of the login service
for my app.

Terence that solved it thanks. Many heads are indeed better than one.

Cheers!
Daniel Carlson


On Tue, Jul 12, 2016 at 7:51 AM, Nikhil Pawar  wrote:

> Hey Daniel,
>
> Need not pass username and password as query parameter.(its not GET method)
> Try this:
>
> https://localhost:8443/fineract-provider/api/v1/offices?tenantIdentifier=default
>
> and then you will be asked for username and password.
>
> You can also use clients like Postman for chrome or RESTClient for mozilla
> for testing of REST API.
>
> Regards,
> Nikhil
>
> On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson 
> wrote:
>
> > Hi Terence,
> >
> > Thanks but I already tried that.
> >
> > Cheers!
> > Daniel Carlson
> >
> > On Tue, Jul 12, 2016 at 7:34 AM, Terence Monteiro <
> > tere...@sanjosesolutions.in> wrote:
> >
> > > Hi Daniel,
> > >
> > > The URL you used needs to have username=mifos=password so
> remove
> > > the extra %22 codes and try.
> > >
> > > --
> > > Best Regards,
> > > Terence Monteiro,
> > > Mob: +91 96633 13728
> > > www.sanjosesol.com
> > >
> > > 
> > > "Providence", No. 36,
> > > Ahmed Sait Road,
> > > Frazer Town, Bangalore - 5.
> > >
> > > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson  >
> > > 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=%22password%22=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=%22password%22=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 <
> > > > shreya...@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" <
> > > > > shreya...@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" 
> > > > 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&=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&=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
> > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Nikhil Pawar
Hey Daniel,

Need not pass username and password as query parameter.(its not GET method)
Try this:
https://localhost:8443/fineract-provider/api/v1/offices?tenantIdentifier=default

and then you will be asked for username and password.

You can also use clients like Postman for chrome or RESTClient for mozilla
for testing of REST API.

Regards,
Nikhil

On Tue, Jul 12, 2016 at 12:06 PM, Daniel Carlson 
wrote:

> Hi Terence,
>
> Thanks but I already tried that.
>
> Cheers!
> Daniel Carlson
>
> On Tue, Jul 12, 2016 at 7:34 AM, Terence Monteiro <
> tere...@sanjosesolutions.in> wrote:
>
> > Hi Daniel,
> >
> > The URL you used needs to have username=mifos=password so remove
> > the extra %22 codes and try.
> >
> > --
> > Best Regards,
> > Terence Monteiro,
> > Mob: +91 96633 13728
> > www.sanjosesol.com
> >
> > 
> > "Providence", No. 36,
> > Ahmed Sait Road,
> > Frazer Town, Bangalore - 5.
> >
> > On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson 
> > 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=%22password%22=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=%22password%22=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 <
> > > shreya...@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" <
> > > > shreya...@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" 
> > > 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&=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&=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
> > > > >>
> > > > >
> > > >
> > >
> >
>


Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Daniel Carlson
Hi Terence,

Thanks but I already tried that.

Cheers!
Daniel Carlson

On Tue, Jul 12, 2016 at 7:34 AM, Terence Monteiro <
tere...@sanjosesolutions.in> wrote:

> Hi Daniel,
>
> The URL you used needs to have username=mifos=password so remove
> the extra %22 codes and try.
>
> --
> Best Regards,
> Terence Monteiro,
> Mob: +91 96633 13728
> www.sanjosesol.com
>
> 
> "Providence", No. 36,
> Ahmed Sait Road,
> Frazer Town, Bangalore - 5.
>
> On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson 
> 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=%22password%22=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=%22password%22=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 <
> > shreya...@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" <
> > > shreya...@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" 
> > 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&=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&=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
> > > >>
> > > >
> > >
> >
>


Re: GSOC 2016 - Authentication on the Mifos REST API

2016-07-12 Thread Terence Monteiro
Hi Daniel,

The URL you used needs to have username=mifos=password so remove
the extra %22 codes and try.

--
Best Regards,
Terence Monteiro,
Mob: +91 96633 13728
www.sanjosesol.com


"Providence", No. 36,
Ahmed Sait Road,
Frazer Town, Bangalore - 5.

On Tue, Jul 12, 2016 at 10:46 AM, Daniel Carlson 
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=%22password%22=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=%22password%22=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 <
> shreya...@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" <
> > shreya...@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" 
> 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&=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&=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
> > >>
> > >
> >
>