mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-19 01:13:56 +00:00
18 lines
429 B
Kotlin
18 lines
429 B
Kotlin
package app.revanced.api.configuration
|
|
|
|
import app.revanced.api.configuration.services.AuthenticationService
|
|
import io.ktor.server.application.*
|
|
import io.ktor.server.auth.*
|
|
import org.koin.ktor.ext.get
|
|
|
|
fun Application.configureSecurity() {
|
|
val authenticationService = get<AuthenticationService>()
|
|
|
|
install(Authentication) {
|
|
with(authenticationService) {
|
|
jwt()
|
|
digest()
|
|
}
|
|
}
|
|
}
|