Skip to content

Commit

Permalink
- ktor: use local keys verifier
Browse files Browse the repository at this point in the history
Signed-off-by: samoylenkodmitry <samoylenkodmitry@gmail.com>
  • Loading branch information
samoylenkodmitry committed May 29, 2024
1 parent 92e4851 commit ee1c9b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# --- Configuration ---
RELEASE_TAG="v_0.0.0.11" # Update with desired release tag
RELEASE_TAG="v_0.0.0.12" # Update with desired release tag
# (https://github.com/samoylenkodmitry/shrtlin/releases)
FRONTEND_ARTIFACT_NAME="frontend-web.zip"
BACKEND_ARTIFACT_NAME="server-1.0.0.jar"
Expand Down
4 changes: 1 addition & 3 deletions server/src/main/kotlin/in/shrtl/app/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ fun Application.module() {
install(Authentication) {
jwt("auth-jwt") {
realm = myRealm
verifier(jwkProvider) {
acceptLeeway(3)
}
verifier(jwtVerifier)
validate { credential ->
if (credential.payload.audience.contains(audience)) {
JWTPrincipal(credential.payload)
Expand Down

0 comments on commit ee1c9b0

Please sign in to comment.