Notice
Recent Posts
Recent Comments
Link
- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
민서네집
[OpenID4Java] Local signature verification failed 에러 본문
Google 과 연동하기 위해 프로젝트에서 OpenID4Java 라이브러리를 사용하는데, 보통은 잘 되는데, Google 로그인이 안되는 사람도 있었다.
안되는 사람 것으로 디버깅을 해보면
// examine the verification result and extract the verified identifier
Identifier verified = verification.getVerifiedId();
위 코드에서 verified 변수가 null 이 나오는 경우이다.
디버그 하면서 verification 객체를 들여다보면
Local signature verification failed 라는 메시지가 보이고, 어떤 글자는 깨지지 않았는데, 어떤 글자는 한글이 깨진 것을 볼 수 있었다.
- Google 에 등록된 email 아이디의 성과 이름이 한글로 되어 있어서 글자가 깨지는 경우
Google 에서 Local signature verification failed 라는 오류 메시지를 찾아보니 원인을 알 수 있었다.
해결책은 Tomcat 서버의 conf/server.xml 파일에서 Connector 태그의 속성으로 URIEncoding="UTF-8" 을 주면 된다.
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8"/>
'Java' 카테고리의 다른 글
서버에서 image 인지 체크, image 크기 체크 (0) | 2013.10.01 |
---|---|
Eclipse 기반하에서 Tomcat 서버와 Remote Debugging 하기 (1) | 2013.08.24 |
Java Timer 클래스를 이용한 작업 스케쥴링 (0) | 2013.08.22 |
properties 파일 안에서 다른 key 를 참조할 수 있는가? how to reference already defined property in the properties file (0) | 2013.08.21 |
[eclipse] 특정 파일을 JavaScript Validation 에서 제외시키기 (0) | 2013.08.17 |
Comments