RE: Record api traffic (Fineract 1.x)

2019-10-22 Thread Niklas Uhrberg
Joseph and Vishwas,  thanks for these tips!

Currently I'm working on the assumption that I can manage using the "live" api 
documentation and don't have to eavesrop.

Best regards Niklas



[cid:image7da7da.PNG@5be38cf9.4b91169d]
Niklas Uhrberg
Konsult
IT Development | Loans & Credit




Resurs Bank AB




Växel:  +46 42 38 20 00
E-post: niklas.uhrb...@resurs.se<mailto:niklas.uhrb...@resurs.se>
Webb:   www.resursbank.se<http://www.resursbank.se>





From: Joseph Cabral [joseph.cabra...@gmail.com]
Sent: Monday, October 21, 2019 11:38 PM
To: dev@fineract.apache.org
Subject: Re: Record api traffic (Fineract 1.x)

Hi Niklas,

In addition to what Vishwas already suggested on the securityContext.xml of 
Fineract, for the community app you need to modify initialTasks.js and set all 
'https://' to 'http://'.

You also need to modify the conf/server.xml of Tomcat to serve your application 
using http.

Regards,

Joseph

On Tue, Oct 22, 2019 at 12:01 AM Vishwas Babu A J 
mailto:vishwasb...@apache.org>> wrote:
Niklas,

I am not entirely sure what you mean, Fineract works only on HTTPS . If you 
want it to work on HTTP, you would have to remove all requires-channel="https" 
attributes from 
https://github.com/apache/fineract/blob/develop/fineract-provider/src/main/resources/META-INF/spring/securityContext.xml#L37

Regards,
Vishwas

On 2019/10/10 14:37:13, Niklas Uhrberg 
mailto:niklas.uhrb...@resurs.se>> wrote:
> Hello!
>
> I have done some activities running Fineract 1.x and the community app 
> locally on my workstation.
>
> Now I would like to record a set of activities in order to create a quicker 
> way to jumpstart a simple setup . Say a loan product , a few clients with 
> their loans.
>
> (In the same way there are Postman scrips for Fineract CN)
>
> I have not done this before and my initial findings made me try running the 
> Community App -> Finract communication over HTTP (instead of HTTPS) . E.g. 
> Postman will require HTTP in proxy mode.
>
> I have not been able to pull this off.
> Have anyone of you done this kind of operation and can show the way to go 
> about this?
>
> Once I configure docker-compose to with the port mapping 8080:8080 I can at 
> least point my browser to fineract-provider, but the login screen (in the 
> community app) says:
> "Couldn't connect to server. Make sure you are using correct settings."
>
> I use the URL : 
> http://localhost/?baseApiUrl=http://localhost:8080&tenantIdentifier=default#/
>
> (And I have indeed verifed that I can login using the standard: 
> http://localhost/?baseApiUrl=https://localhost:8443&tenantIdentifier=default )
>
> Best regards Niklas
>
>
>
> [cid:image78d5a6.PNG@47014c70.41b3d67d]
> Niklas Uhrberg
> Konsult
> IT Development | Loans & Credit
>
>
>
>
> Resurs Bank AB
>
>
>
>
> Växel:  +46 42 38 20 00
> E-post: 
> niklas.uhrb...@resurs.se<mailto:niklas.uhrb...@resurs.se><mailto:niklas.uhrb...@resurs.se<mailto:niklas.uhrb...@resurs.se>>
> Webb:   www.resursbank.se<http://www.resursbank.se><http://www.resursbank.se>
>
>
>
>


RE: Record api traffic (Fineract 1.x)

2019-10-22 Thread Niklas Uhrberg
James, the Postman as a proxy is something different than Postman using a proxy.

Rest client   -> Postman -> Rest service

Where Postman will record the traffic is Postman as a proxy. In this scenario 
the Rest client is will have to configure a proxy (Postman).

Best regards Niklas



[cid:image3479bb.PNG@e913f22b.46ab7d0a]
Niklas Uhrberg
Konsult
IT Development | Loans & Credit




Resurs Bank AB




Växel:  +46 42 38 20 00
E-post: niklas.uhrb...@resurs.se<mailto:niklas.uhrb...@resurs.se>
Webb:   www.resursbank.se<http://www.resursbank.se>





From: James Dailey [jamespdai...@gmail.com]
Sent: Tuesday, October 22, 2019 1:42 AM
To: Dev
Subject: Re: Record api traffic (Fineract 1.x)

Niklas - why can't you configure Postman to use Https through a proxy?  I'm not 
an expert on this, but it sounds counter-intuitive to me.
I found this link if applicable:
https://support.getpostman.com/hc/en-us/articles/360008893713-How-do-I-configure-Postman-to-work-through-a-proxy-

@jdailey67


On 2019/10/10 14:37:13, Niklas Uhrberg 
mailto:niklas.uhrb...@resurs.se>> wrote:
> Hello!
>
> I have done some activities running Fineract 1.x and the community app 
> locally on my workstation.
>
> Now I would like to record a set of activities in order to create a quicker 
> way to jumpstart a simple setup . Say a loan product , a few clients with 
> their loans.
>
> (In the same way there are Postman scrips for Fineract CN)
>
> I have not done this before and my initial findings made me try running the 
> Community App -> Finract communication over HTTP (instead of HTTPS) . E.g. 
> Postman will require HTTP in proxy mode.
>
> I have not been able to pull this off.
> Have anyone of you done this kind of operation and can show the way to go 
> about this?
>
> Once I configure docker-compose to with the port mapping 8080:8080 I can at 
> least point my browser to fineract-provider, but the login screen (in the 
> community app) says:
> "Couldn't connect to server. Make sure you are using correct settings."
>
> I use the URL : 
> http://localhost/?baseApiUrl=http://localhost:8080&tenantIdentifier=default#/
>
> (And I have indeed verifed that I can login using the standard: 
> http://localhost/?baseApiUrl=https://localhost:8443&tenantIdentifier=default )
>
> Best regards Niklas
>
>


Re: Record api traffic (Fineract 1.x)

2019-10-21 Thread James Dailey
Niklas - why can't you configure Postman to use Https through a proxy?  I'm
not an expert on this, but it sounds counter-intuitive to me.
I found this link if applicable:
https://support.getpostman.com/hc/en-us/articles/360008893713-How-do-I-configure-Postman-to-work-through-a-proxy-

@jdailey67


>> On 2019/10/10 14:37:13, Niklas Uhrberg  wrote:
>> > Hello!
>> >
>> > I have done some activities running Fineract 1.x and the community app
>> locally on my workstation.
>> >
>> > Now I would like to record a set of activities in order to create a
>> quicker way to jumpstart a simple setup . Say a loan product , a few
>> clients with their loans.
>> >
>> > (In the same way there are Postman scrips for Fineract CN)
>> >
>> > I have not done this before and my initial findings made me try running
>> the Community App -> Finract communication over HTTP (instead of HTTPS) .
>> E.g. Postman will require HTTP in proxy mode.
>> >
>> > I have not been able to pull this off.
>> > Have anyone of you done this kind of operation and can show the way to
>> go about this?
>> >
>> > Once I configure docker-compose to with the port mapping 8080:8080 I
>> can at least point my browser to fineract-provider, but the login screen
>> (in the community app) says:
>> > "Couldn't connect to server. Make sure you are using correct settings."
>> >
>> > I use the URL :
>> http://localhost/?baseApiUrl=http://localhost:8080&tenantIdentifier=default#/
>> >
>> > (And I have indeed verifed that I can login using the standard:
>> http://localhost/?baseApiUrl=https://localhost:8443&tenantIdentifier=default
>> )
>> >
>> > Best regards Niklas
>> >
>> >
>>
>


Re: Record api traffic (Fineract 1.x)

2019-10-21 Thread Joseph Cabral
Hi Niklas,

In addition to what Vishwas already suggested on the securityContext.xml of
Fineract, for the community app you need to modify initialTasks.js and set
all 'https://' to 'http://'.

You also need to modify the conf/server.xml of Tomcat to serve your
application using http.

Regards,

Joseph

On Tue, Oct 22, 2019 at 12:01 AM Vishwas Babu A J 
wrote:

> Niklas,
>
> I am not entirely sure what you mean, Fineract works only on HTTPS . If
> you want it to work on HTTP, you would have to remove all
> requires-channel="https" attributes from
> https://github.com/apache/fineract/blob/develop/fineract-provider/src/main/resources/META-INF/spring/securityContext.xml#L37
>
> Regards,
> Vishwas
>
> On 2019/10/10 14:37:13, Niklas Uhrberg  wrote:
> > Hello!
> >
> > I have done some activities running Fineract 1.x and the community app
> locally on my workstation.
> >
> > Now I would like to record a set of activities in order to create a
> quicker way to jumpstart a simple setup . Say a loan product , a few
> clients with their loans.
> >
> > (In the same way there are Postman scrips for Fineract CN)
> >
> > I have not done this before and my initial findings made me try running
> the Community App -> Finract communication over HTTP (instead of HTTPS) .
> E.g. Postman will require HTTP in proxy mode.
> >
> > I have not been able to pull this off.
> > Have anyone of you done this kind of operation and can show the way to
> go about this?
> >
> > Once I configure docker-compose to with the port mapping 8080:8080 I can
> at least point my browser to fineract-provider, but the login screen (in
> the community app) says:
> > "Couldn't connect to server. Make sure you are using correct settings."
> >
> > I use the URL :
> http://localhost/?baseApiUrl=http://localhost:8080&tenantIdentifier=default#/
> >
> > (And I have indeed verifed that I can login using the standard:
> http://localhost/?baseApiUrl=https://localhost:8443&tenantIdentifier=default
> )
> >
> > Best regards Niklas
> >
> >
> >
> > [cid:image78d5a6.PNG@47014c70.41b3d67d]
> > Niklas Uhrberg
> > Konsult
> > IT Development | Loans & Credit
> >
> >
> >
> >
> > Resurs Bank AB
> >
> >
> >
> >
> > Växel:  +46 42 38 20 00
> > E-post: niklas.uhrb...@resurs.se
> > Webb:   www.resursbank.se
> >
> >
> >
> >
>


Re: Record api traffic (Fineract 1.x)

2019-10-21 Thread Vishwas Babu A J
Niklas,

I am not entirely sure what you mean, Fineract works only on HTTPS . If you 
want it to work on HTTP, you would have to remove all requires-channel="https" 
attributes from 
https://github.com/apache/fineract/blob/develop/fineract-provider/src/main/resources/META-INF/spring/securityContext.xml#L37

Regards,
Vishwas

On 2019/10/10 14:37:13, Niklas Uhrberg  wrote: 
> Hello!
> 
> I have done some activities running Fineract 1.x and the community app 
> locally on my workstation.
> 
> Now I would like to record a set of activities in order to create a quicker 
> way to jumpstart a simple setup . Say a loan product , a few clients with 
> their loans.
> 
> (In the same way there are Postman scrips for Fineract CN)
> 
> I have not done this before and my initial findings made me try running the 
> Community App -> Finract communication over HTTP (instead of HTTPS) . E.g. 
> Postman will require HTTP in proxy mode.
> 
> I have not been able to pull this off.
> Have anyone of you done this kind of operation and can show the way to go 
> about this?
> 
> Once I configure docker-compose to with the port mapping 8080:8080 I can at 
> least point my browser to fineract-provider, but the login screen (in the 
> community app) says:
> "Couldn't connect to server. Make sure you are using correct settings."
> 
> I use the URL : 
> http://localhost/?baseApiUrl=http://localhost:8080&tenantIdentifier=default#/
> 
> (And I have indeed verifed that I can login using the standard: 
> http://localhost/?baseApiUrl=https://localhost:8443&tenantIdentifier=default )
> 
> Best regards Niklas
> 
> 
> 
> [cid:image78d5a6.PNG@47014c70.41b3d67d]
> Niklas Uhrberg
> Konsult
> IT Development | Loans & Credit
> 
> 
> 
> 
> Resurs Bank AB
> 
> 
> 
> 
> Växel:  +46 42 38 20 00
> E-post: niklas.uhrb...@resurs.se
> Webb:   www.resursbank.se
> 
> 
> 
> 


Record api traffic (Fineract 1.x)

2019-10-10 Thread Niklas Uhrberg
Hello!

I have done some activities running Fineract 1.x and the community app locally 
on my workstation.

Now I would like to record a set of activities in order to create a quicker way 
to jumpstart a simple setup . Say a loan product , a few clients with their 
loans.

(In the same way there are Postman scrips for Fineract CN)

I have not done this before and my initial findings made me try running the 
Community App -> Finract communication over HTTP (instead of HTTPS) . E.g. 
Postman will require HTTP in proxy mode.

I have not been able to pull this off.
Have anyone of you done this kind of operation and can show the way to go about 
this?

Once I configure docker-compose to with the port mapping 8080:8080 I can at 
least point my browser to fineract-provider, but the login screen (in the 
community app) says:
"Couldn't connect to server. Make sure you are using correct settings."

I use the URL : 
http://localhost/?baseApiUrl=http://localhost:8080&tenantIdentifier=default#/

(And I have indeed verifed that I can login using the standard: 
http://localhost/?baseApiUrl=https://localhost:8443&tenantIdentifier=default )

Best regards Niklas



[cid:image78d5a6.PNG@47014c70.41b3d67d]
Niklas Uhrberg
Konsult
IT Development | Loans & Credit




Resurs Bank AB




Växel:  +46 42 38 20 00
E-post: niklas.uhrb...@resurs.se
Webb:   www.resursbank.se