This file contains hidden or 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
FROM maven:3.9.7-amazoncorretto-21 as build | |
WORKDIR /home/app | |
ARG sourceFolder | |
COPY $sourceFolder . | |
RUN mvn clean compile dependency:copy-dependencies -DincludeScope=runtime | |
FROM public.ecr.aws/lambda/java:21 |
This file contains hidden or 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
package dev.lessonsjul; | |
public interface AccessTokenParser { | |
AccessToken parseAndVerify(String jwtToken); | |
} | |
record AccessToken(String userId, boolean valid) { } | |
class DummyAccessTokenParser implements AccessTokenParser { |
This file contains hidden or 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
import feign.Client; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.hc.client5.http.ssl.NoopHostnameVerifier; | |
import org.apache.hc.core5.ssl.SSLContextBuilder; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.ByteArrayInputStream; | |
import java.security.KeyManagementException; | |
import java.security.KeyStore; |