Vishwas Babu A J created FINERACT-726:
-----------------------------------------

             Summary: Changes to /authentication API's to pass data as part of 
request body
                 Key: FINERACT-726
                 URL: https://issues.apache.org/jira/browse/FINERACT-726
             Project: Apache Fineract
          Issue Type: Improvement
            Reporter: Vishwas Babu A J


Fineract supports authentication either using Basic auth or Oauth. The initial 
authentication is done using the endpoints described at 
[https://demo.openmf.org/api-docs/apiLive.htm#authentication_basicauth] and 
[https://demo.openmf.org/api-docs/apiLive.htm#authentication_oauth] 

Both rely on passing the username and password as URL query parameters.

Ex, the endpoint for /authentication is 

POST  : 
[https://localhost:8443/fineract-provider/api/v1/authentication?username=mifos&password=password&tenantIdentifier=default]

 

We would want to change the same to

POST 
[https://localhost:8443/fineract-provider/api/v1/authentication?tenantIdentifier=default]

and pass the username and password as apart of the post body in json format.

Ex:
{code:java}
{
"username":"mifos",
"password":"password"
}{code}
 

After making this change, the APIdocs and integration test cases would have to 
be updated accordingly 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to