diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Scrapper.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Scrapper.kt index 85012db2..71e5ab7e 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Scrapper.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/Scrapper.kt @@ -25,7 +25,6 @@ class Scrapper { AUTO, STANDARD, ADFS, - ADFSMS, ADFSCards, ADFSLight, ADFSLightScoped, diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt index 7de80c96..24c0e3cc 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt @@ -6,7 +6,6 @@ import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.ADFSCards import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.ADFSLight import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.ADFSLightCufs import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.ADFSLightScoped -import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.ADFSMS import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.AUTO import io.github.wulkanowy.sdk.scrapper.Scrapper.LoginType.STANDARD import io.github.wulkanowy.sdk.scrapper.ScrapperException @@ -71,7 +70,6 @@ class LoginHelper( if (host == "umt.tarnow.pl") sendADFSMS(email, password) // legacy else sendADFS(it, password) } - ADFSMS -> sendADFSMS(it, password) ADFSLight, ADFSLightScoped, ADFSLightCufs -> sendADFSLightGeneric(it, password, loginType) ADFSCards -> sendADFSCards(it, password) } diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/repository/RegisterRepository.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/repository/RegisterRepository.kt index 559fe9da..ff9ee9c7 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/repository/RegisterRepository.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/repository/RegisterRepository.kt @@ -81,8 +81,7 @@ class RegisterRepository( val page = register.getFormType(urlGenerator.generate(ServiceManager.UrlGenerator.Site.LOGIN) + "Account/LogOn").page return when { page.select(SELECTOR_STANDARD).isNotEmpty() -> Scrapper.LoginType.STANDARD - page.select(SELECTOR_ADFS).isNotEmpty() -> Scrapper.LoginType.ADFS - page.select(SELECTOR_ADFS_MS).isNotEmpty() -> Scrapper.LoginType.ADFSMS + page.select(SELECTOR_ADFS).isNotEmpty() || page.select(SELECTOR_ADFS_MS).isNotEmpty() -> Scrapper.LoginType.ADFS page.select(SELECTOR_ADFS_LIGHT).isNotEmpty() -> { page.selectFirst("form").attr("action").run { when {