View Issue Details

IDProjectCategoryView StatusLast Update
0022656mantisbtapi restpublic2017-04-30 14:48
Reportervits_soporte Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionno change required 
Product Version2.3.0 
Summary0022656: Authentication api rest | Http://www.mantisbt/login.php? User = xxx & password = yyy | or | API tokens are the authentication
Description

Hello, I am separating this note, in this ticket, looking for a greater opportunity in its address, since I can not find enough help in the FORUM

The question is:

1) How can you automatically login to mantisbt from the internet?
Http://www.mantisbt/login.php? User = xxx & password = yyy

2) Is it possible to enable API REST in the next version of MantisBT?

Thank you

Steps To Reproduce

A) Exploring the new version 2.3.0
I find the possible ticket related
22598: REST API Framework
http://www.mantisbt.org/bugs/view.php?id=22598

B) And I also find the restriction
https://github.com/mantisbt/mantisbt/pull/1037
"Authentication no support for username and password. API tokens are the authentication mechanism."

C) How can I solve point 1)
Http://www.mantisbt/login.php? User = xxx & password = yyy

D) Could you teach me how to use the TOKEN API to see if it is the solution I require?

Additional Information

A) The original NOTE is:
http://www.mantisbt.org/bugs/view.php?id=22331#c56052

NOTE: this is the note in forum
https://www.mantisbt.org/forums/viewtopic.php?f=3&t=24280&p=61688#p61688

TagsNo tags attached.

Activities

vits_soporte

vits_soporte

2017-04-27 08:42

reporter   ~0056725

Best regards, any feedback on this ticket?

Registered since 2017-04-03 11:54

Thank you

dregad

dregad

2017-04-27 10:23

developer   ~0056726

1) How can you automatically login to mantisbt from the internet?
Http://www.mantisbt/login.php? User = xxx & password = yyy

This is currently not possible, and to my knowledge there are no plan to implement such feature.

2) Is it possible to enable API REST in the next version of MantisBT?

The experimental REST API is available since 2.3.0, but is disabled by default, you need to activate it in your config_inc.php to use it.

D) Could you teach me how to use the TOKEN API to see if it is the solution I require?

API tokens, as the name indicates, are meant to be used with SOAP/REST API, not interactively so I'm not sure this is what you want.

C) How can I solve point 1)

You can try customizing the code (at your own risk), or maybe this is feasible using the new authentication plugins (available in upcoming release 2.4), I do not know.