openMF / community-app

This was the former default web application built on top of the Apache Fineract platform. It's now deprecated and replaced by the the Mifos X Web App (https://github.com/openMF/web-app maintained by the Mifos Initiative as a reference solution for financial inclusion. It is a Single-Page App (SPA) written in web standard technologies.
http://openmf.github.io/community-app/
Mozilla Public License 2.0
316 stars 1.02k forks source link

mifos login fails on debian 9 #3184

Open xtanma opened 4 years ago

xtanma commented 4 years ago

I am setting up Apache Fineract and Mifos on my laptop using docker. The Fineract is from https://github.com/apache/fineract.git and the mifos is from https://github.com/openMF/community-app; Fineract works just fine and I can issue RESTful API commands to localhost:8443. However, the community-app login fails when I use mifos:password as the credential. The same credential was used in my test of Fineract RESTful API. When the community-app login fails, it says "Couldn't connect to server. Make sure you are using correct settings."

Steps to Reproduce

1. On debian 9, install docker first

2. git clone https://github.com/apache/fineract.git ; cd fineract docker-compose build docker-compose up -d

Sending RESTful API commands to https://localhost:8443 using credential mifos:password, it works just fine.

3. git clone https://github.com/openMF/community-app.git docker build -t mifos-community-app . docker run --name mifos-ui -it -d -p 80:80 mifos-community-app

4. open browser and visit http://localhost try to login with mifos:password, got connection failure.

Expected Behaviour

I should be able to login use mifos:password

Actual Behaviour

login fails and got response as:

Couldn't connect to server. Make sure you are using correct settings.

Settings

Here is my software versions

╰─➤ docker ps [02/25/20 % 3:43PM] CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 53cc9e0fff2a mifos-community-app "nginx -g 'daemon of…" 21 hours ago Up 21 hours 0.0.0.0:80->80/tcp mifos-ui eab2976a0499 fineract_fineract-server "/app-entrypoint.sh …" 8 days ago Up 8 days 8080/tcp, 0.0.0.0:8443->8443/tcp fineract_fineract-server_1 b568b24012cb mysql:5.7 "docker-entrypoint.s…" 8 days ago Up 8 days (healthy) 0.0.0.0:3306->3306/tcp, 33060/tcp fineract_fineractmysql_1

Opera, chrome, firefox

debian 9

Screenshots

image

fidelsam1992 commented 4 years ago

Fineract new authentication doesn't accept query params anymore : https://issues.apache.org/jira/browse/FINERACT-726

The new request format is using Json Body { "username":"mifos", "password":"password" }