Skip to content

Commit

Permalink
Some Clean Ups
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenWanjala committed Oct 30, 2024
1 parent a1f96b3 commit b91f6dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.stephenwanjala.plugins

import io.ktor.server.application.*
import io.ktor.server.plugins.callloging.*
import io.ktor.server.plugins.calllogging.*
import io.ktor.server.request.*
import org.slf4j.event.*

Expand Down
4 changes: 0 additions & 4 deletions src/main/kotlin/com/github/stephenwanjala/plugins/Security.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ package com.github.stephenwanjala.plugins

import com.auth0.jwt.JWT
import com.auth0.jwt.algorithms.Algorithm
import com.auth0.jwt.interfaces.Payload
import com.github.stephenwanjala.auth.data.database.UserService
import com.github.stephenwanjala.auth.domain.repository.AuthRepository
import com.github.stephenwanjala.auth.security.token.TokenConfig
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.auth.jwt.*
import org.jetbrains.exposed.sql.select

data class UserPrincipal(val payload: Payload) : Principal
fun Application.configureSecurity(config: TokenConfig,authRepository: AuthRepository) {

// Please read the jwt property from the config file if you are using EngineMain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package com.github.stephenwanjala.plugins
import io.ktor.serialization.kotlinx.json.*
import io.ktor.server.application.*
import io.ktor.server.plugins.contentnegotiation.*
import io.ktor.server.response.*
import io.ktor.server.routing.*

fun Application.configureSerialization() {
install(ContentNegotiation) {
Expand Down

0 comments on commit b91f6dd

Please sign in to comment.