From cbc59dac6790c8854269ec9309cbb76de357cef4 Mon Sep 17 00:00:00 2001 From: zypherift Date: Tue, 11 Mar 2025 22:43:16 +0100 Subject: [PATCH] add basic endpoints for login Co-authored-by: Armand <4831c0@users.noreply.github.com> --- firka/lib/helpers/api/endpoints.dart | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 firka/lib/helpers/api/endpoints.dart diff --git a/firka/lib/helpers/api/endpoints.dart b/firka/lib/helpers/api/endpoints.dart new file mode 100644 index 00000000..a123ab21 --- /dev/null +++ b/firka/lib/helpers/api/endpoints.dart @@ -0,0 +1,6 @@ +class KretaEndpoints { + static String kreta(String iss) => "https://$iss.e-kreta.hu"; + static const kretaIdp = "https://idp.e-kreta.hu"; + static const kretaLoginUrl = "https://idp.e-kreta.hu/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fprompt%3Dlogin%26nonce%3DwylCrqT4oN6PPgQn2yQB0euKei9nJeZ6_ffJ-VpSKZU%26response_type%3Dcode%26code_challenge_method%3DS256%26scope%3Dopenid%2520email%2520offline_access%2520kreta-ellenorzo-webapi.public%2520kreta-eugyintezes-webapi.public%2520kreta-fileservice-webapi.public%2520kreta-mobile-global-webapi.public%2520kreta-dkt-webapi.public%2520kreta-ier-webapi.public%26code_challenge%3DHByZRRnPGb-Ko_wTI7ibIba1HQ6lor0ws4bcgReuYSQ%26redirect_uri%3Dhttps%253A%252F%252Fmobil.e-kreta.hu%252Fellenorzo-student%252Fprod%252Foauthredirect%26client_id%3Dkreta-ellenorzo-student-mobile-ios%26state%3Drefilc_student_mobile%26suppressed_prompt%3Dlogin"; + +} \ No newline at end of file