-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ellet
committed
Nov 26, 2023
1 parent
32de9e8
commit e6569bc
Showing
30 changed files
with
201 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...n/kotlin/net/freshplatform/Application.kt → example/src/jvmMain/kotlin/Application.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package plugins | ||
|
||
import io.ktor.server.application.* | ||
//import net.freshplatform.ktor_server.firebase_app_check.FirebaseAppCheckPlugin | ||
//import net.freshplatform.ktor_server.firebase_app_check.core.FirebaseAppCheckSecureStrategy | ||
//import net.freshplatform.ktor_server.firebase_app_check.utils.FirebaseAppCheckMessages | ||
|
||
fun Application.configureAppCheck() { | ||
// install(FirebaseAppCheckPlugin) { | ||
// firebaseProjectNumber = System.getenv("FIREBASE_PROJECT_NUMBER") | ||
// ?: throw MissingEnvironmentVariableException("FIREBASE_PROJECT_NUMBER") | ||
// firebaseProjectId = System.getenv("FIREBASE_PROJECT_ID") | ||
// ?: throw MissingEnvironmentVariableException("FIREBASE_PROJECT_ID") | ||
// isShouldVerifyToken = true | ||
// secureStrategy = FirebaseAppCheckSecureStrategy.ProtectSpecificRoutes | ||
// pluginMessagesBuilder = { configuration -> | ||
// // Example of override a response message | ||
// FirebaseAppCheckMessages( | ||
// configuration, | ||
// appCheckIsNotDefinedResponse = mapOf( | ||
// "error" to "${configuration.firebaseAppCheckHeaderName} is required" | ||
// ), | ||
// ) | ||
// } | ||
// } | ||
} |
2 changes: 1 addition & 1 deletion
2
.../kotlin/net/freshplatform/plugins/HTTP.kt → example/src/jvmMain/kotlin/plugins/HTTP.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.freshplatform.plugins | ||
package plugins | ||
|
||
import io.ktor.http.* | ||
import io.ktor.http.content.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lin/net/freshplatform/plugins/Security.kt → ...le/src/jvmMain/kotlin/plugins/Security.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.freshplatform.plugins | ||
package plugins | ||
|
||
import io.ktor.server.application.* | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...et/freshplatform/plugins/Serialization.kt → ...c/jvmMain/kotlin/plugins/Serialization.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 1 addition & 7 deletions
8
...tlin/net/freshplatform/ApplicationTest.kt → ...ple/src/jvmTest/kotlin/ApplicationTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
example/src/main/kotlin/net/freshplatform/plugins/AppCheck.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
kotlin.code.style=official | ||
|
||
# Versions | ||
|
||
# Shared | ||
kotlin.version=1.9.20 | ||
ktor.version=2.3.5 | ||
kotlin.version=1.9.21 | ||
ktor.version=2.3.6 | ||
|
||
# Example | ||
logback.version=1.4.11 | ||
|
||
# Library | ||
auth0JwksRsa.version=0.22.1 | ||
auth0JavaJwt.version=4.4.0 | ||
auth0JavaJwt.version=4.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[versions] | ||
|
||
[libraries] | ||
|
||
[plugins] |
Oops, something went wrong.