mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
msa device code: check interval
This commit is contained in:
parent
2f68382283
commit
3595ba30f5
@ -30,5 +30,7 @@ data class MicrosoftDeviceCode(
|
||||
init {
|
||||
check(verificationURI.protocol == URLProtocols.HTTPS.protocol) { "Insecure url: $verificationURI" }
|
||||
check(verificationURI.host == "login.microsoftonline.com" || verificationURI.host == "www.microsoft.com" || verificationURI.host == "microsoft.com") { "Invalid verification host: $verificationURI" }
|
||||
|
||||
check(interval in 1..20) { "Polling interval out of range: $interval" }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user