Authelia OTP 사용시 There was a problem initiating the registration process 문제 해결하기.
안녕하세요. 달소입니다.
이번글은 Authelia에서 Two Factor 인증으로 OTP를 등록했을때 아래와같이 나오는 오류 해결방법입니다.
There was a problem initiating the registration process
해당 오류를 도커에서 확인해보니 smtp 설정이 제대로 안되있어서 나오는 오류로 확인됐습니다.
configuration.yml 파일에서 최하단의 notifier의 smtp 부분을 제대로 작성해주시면됩니다.
아래는 google otp 기준입니다.
PW는 사용하시는것 말고 계정관리 -> 보안에서 앱 패스워드를 발급받아서 적으시는걸 추천드립니다.
notifier:
disable_startup_check: true #true/false
smtp:
username: youremail@gmail.com #your email address
password: Y0uRp@55W0rD! #your email password
host: smtp.gmail.com #email smtp server
port: 587 #email smtp port
sender: youremail@gmail.com
identifier: localhost
subject: "[Authelia] {title}" #email subject
startup_check_address: youremail@gmail.com
disable_require_tls: false
disable_html_emails: false
tls:
skip_verify: false
minimum_version: TLS1.2
위 설정들을 마친 후 다시 otp등록을 테스트하면 user_database.yml에 있는 이메일로 메일이갑니다.
그럼 이렇게 QR코드가 잘나옵니다~
등록후 사용하시면 완료!
cmt alert