Skip to content

Utilities

henry-herrmann edited this page Nov 8, 2024 · 7 revisions

Forgerock API

If we plan to implement the eCampus / Flexnow connection, we will write this wiki page.


Internet Connection: Dio

Dio is a powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout etc.

In comparison to the standard HTTP client, Dio provides a lot of handy features such as automatic Cookie- and Session-Management. That makes our life easier. At the beginning of development just the standard HTTP client was used and caused problems. That the reason why we switched to Dio.

The Dio client is initialized inside the injection Container located inside lib/core/injection.dart. The DioUtils class takes the Dio client a CookieJar to initialize both correctly and DISABLE CERTIFICATE VALIDATION. For security reasons, this has to be fixed before we release the first version. But in some scenarios we recognized abnormal behavior of some RUB servers. So future research is needed!


Moodle API

If we plan to implement the Moodle connection, we will write this wiki page.


Clone this wiki locally