-
Notifications
You must be signed in to change notification settings - Fork 3
Description
About
This issue comes from OpenAgri-FarmCalendar integration in SIP4's Smart Irrigation Controller application.
Issue
Current authentication solution in FC only allows to be authenticated after successfully passing your credentials using UI form. This is an issue, because currently there is no way to authenticate using only available API - since there are no API endpoints that allows it.
SIP4's application comes with its own database that includes users' details. Current FC design allows only to be accessed using GateKeeper service (which we cannot integrate in our application for various of reasons) or created admin user using Django level command.
Suggested solution
If there are planned works to allow easier integration with FC, we suggest:
- Optional no GK's support - which is already implemented but is limited to only creating new users on DJango's Framework commands level. It would be convenient to add API endpoints that will allow users management including registering, editing and removing user instances.
- Implementing another authentication method - API Token support. Admin user (or using configuration for FC) can create API Token and use it for access from other services that integrates FC. We would like robot-account like access, so we could operate in FC API from our application backend.
Otherwise, we simply see FC integration in SIP'4 application very demanding and time consuming as it would involve major changes in ADSs' architectures.