# 고급 보안 (Symfony) > Custom authenticator, voter, security expression, CSRF 보호, XSS 방지, rate limiting, 프로덕션 강화, JWT/OAuth2 설정 오류 - 22 면접 질문 - Senior - [면접 질문: Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions.md) ## 1. Symfony 6 이상에서 custom authenticator가 구현해야 하는 인터페이스는 무엇입니까? **답변** Symfony 6 이상에서 custom authenticator는 Security HTTP 컴포넌트의 AuthenticatorInterface를 구현해야 합니다. 이 인터페이스는 supports(), authenticate(), onAuthenticationSuccess(), onAuthenticationFailure() 메서드와 선택적으로 createToken()을 정의합니다. 이는 Symfony 4/5에서 사용되던 기존 Guard 시스템을 대체합니다. ## 2. custom authenticator에서 supports() 메서드의 역할은 무엇입니까? **답변** supports() 메서드는 해당 authenticator가 현재 요청을 처리해야 하는지 결정합니다. Request를 받아 불리언 값을 반환합니다. true이면 authenticate() 메서드가 호출된 다음 onAuthenticationSuccess() 또는 onAuthenticationFailure()가 호출됩니다. 이를 통해 동일한 firewall에서 여러 authenticator를 활성화하여 각각 특정 인증 유형을 처리할 수 있습니다. ## 3. custom authenticator의 authenticate() 메서드는 성공 시 무엇을 반환해야 합니까? **답변** authenticate() 메서드는 UserBadge(사용자 식별자)와 credentials badge를 포함하는 Passport 객체를 반환해야 합니다. Passport에는 CsrfTokenBadge나 RememberMeBadge 같은 추가 badge도 포함될 수 있습니다. 그런 다음 Symfony는 이 Passport를 사용하여 인증 token을 생성하고 UserProvider를 통해 사용자를 로드합니다. ## 19개 추가 질문 이용 가능 - 특정 리소스에 대한 접근을 제어하기 위한 커스텀 Voter는 어떻게 정의하나요? - 엄격한 보안이 필요한 애플리케이션에는 어떤 AccessDecisionManager 전략이 권장되나요? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Symfony 면접 주제 - [모던 PHP (8.1+)](https://sharpskill.dev/ko/technologies/symfony/interview-questions/php-modern-features.md): 20개 질문, Junior - [Symfony 기초](https://sharpskill.dev/ko/technologies/symfony/interview-questions/symfony-basics.md): 25개 질문, Junior - [Routing & Controllers](https://sharpskill.dev/ko/technologies/symfony/interview-questions/routing-controllers.md): 20개 질문, Junior - [Twig & Templates](https://sharpskill.dev/ko/technologies/symfony/interview-questions/twig-templates.md): 20개 질문, Junior - [Doctrine ORM 기초](https://sharpskill.dev/ko/technologies/symfony/interview-questions/doctrine-orm-basics.md): 25개 질문, Junior - [Symfony 폼](https://sharpskill.dev/ko/technologies/symfony/interview-questions/forms.md): 22개 질문, Junior - [데이터 유효성 검사](https://sharpskill.dev/ko/technologies/symfony/interview-questions/validation.md): 18개 질문, Junior - [Dependency Injection & Services](https://sharpskill.dev/ko/technologies/symfony/interview-questions/dependency-injection.md): 24개 질문, Mid-Level - [Security & Authentication](https://sharpskill.dev/ko/technologies/symfony/interview-questions/security-authentication.md): 26개 질문, Mid-Level - [Doctrine 고급](https://sharpskill.dev/ko/technologies/symfony/interview-questions/doctrine-advanced.md): 24개 질문, Mid-Level - [API Platform](https://sharpskill.dev/ko/technologies/symfony/interview-questions/api-platform.md): 22개 질문, Mid-Level - [Serializer Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/serializer.md): 20개 질문, Mid-Level - [Events & Event Subscribers](https://sharpskill.dev/ko/technologies/symfony/interview-questions/events-subscribers.md): 20개 질문, Mid-Level - [Console & Commands](https://sharpskill.dev/ko/technologies/symfony/interview-questions/console-commands.md): 18개 질문, Mid-Level - [Messenger Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/messenger.md): 22개 질문, Mid-Level - [HTTP Client](https://sharpskill.dev/ko/technologies/symfony/interview-questions/http-client.md): 18개 질문, Mid-Level - [캐시 및 성능](https://sharpskill.dev/ko/technologies/symfony/interview-questions/cache.md): 20개 질문, Mid-Level - [Workflow Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/workflow.md): 18개 질문, Mid-Level - [Testing Symfony](https://sharpskill.dev/ko/technologies/symfony/interview-questions/testing.md): 22개 질문, Mid-Level - [Mailer Component](https://sharpskill.dev/ko/technologies/symfony/interview-questions/mailer.md): 16개 질문, Mid-Level - [번역 및 i18n](https://sharpskill.dev/ko/technologies/symfony/interview-questions/translations.md): 16개 질문, Mid-Level - [EasyAdmin Bundle](https://sharpskill.dev/ko/technologies/symfony/interview-questions/easyadmin.md): 18개 질문, Mid-Level - [Symfony 아키텍처](https://sharpskill.dev/ko/technologies/symfony/interview-questions/architecture-patterns.md): 24개 질문, Senior - [성능 및 최적화](https://sharpskill.dev/ko/technologies/symfony/interview-questions/performance-optimization.md): 22개 질문, Senior - [커스텀 번들](https://sharpskill.dev/ko/technologies/symfony/interview-questions/custom-bundles.md): 20개 질문, Senior - [Symfony를 사용한 마이크로서비스](https://sharpskill.dev/ko/technologies/symfony/interview-questions/microservices.md): 22개 질문, Senior - [Real-time & WebSockets](https://sharpskill.dev/ko/technologies/symfony/interview-questions/real-time.md): 18개 질문, Senior - [Deployment & DevOps](https://sharpskill.dev/ko/technologies/symfony/interview-questions/deployment-devops.md): 20개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/symfony/interview-questions/security-advanced