Open olaf7 opened 4 years ago
I take this as a request for an enhancement, that the SCM Redmine plugin should offer a configuration for this REST API key as an alternative for username/password, right?
Right, it is indeed a feature enhancement request. With a quick glance over the code I noticed you already are using the taskadapter API. Sorry for the added noise; should have done that upfront.
Redmine has a REST API with a key per user. This is a feature which needs to be enabled as it is not enabled by default: see https://www.redmine.org/boards/2/topics/45466 or https://www.redmine.org/boards/2/topics/53956 although I have seen a better screenshot+description in the past.
The features are described here: https://www.redmine.org/projects/redmine/wiki/rest_api From Java access can be provided through: https://github.com/taskadapter/redmine-java-api A quick test upfront is probably a wise move as: https://github.com/taskadapter/redmine-java-api/wiki/Redmine-versions-compatibility As a bonus Chili should be accessible too.
For instance Android Redmine apps use it for authenticating. A huge advantage over the classical user/password authentication mechanism is that it remains stable. If passwords change the key remains. Also username/password do no longer need to be in sync between SCM-manager and Redmine.