티스토리 뷰
준비물
- Fibsebase console → 프로젝트 선택
- 프로젝트 개요 옆 톱니바퀴 → 프로젝트 설정 → 웹 API 키
- Authentication → 테스트에 사용할 이메일+암호 사용자 추가
CURL 사용
터미널 명령 요청 (Request)
curl 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=[FIREBASE_WEB_API_KEY]' \
-H 'Content-Type: application/json' \
--data-binary '{"email":"[이메일]","password":"[암호]","returnSecureToken":true}'
응답 (Response)
{
"kind": "identitytoolkit#VerifyPasswordResponse",
"localId": "3yENxxxxxxxxxxxxxxxxxxGJx1",
"email": "some@thing.com",
"displayName": "로그인 사용자 닉네임",
"idToken": "ID토큰-문자열-eyJhbGci...vQ",
"registered": true,
"profilePicture": "https://lh3.googleusercontent.com/a-/AFdxxxxxxxxxxxky_2ndP4j-xxILD7FA=x96-x",
"refreshToken": "갱신토클-APZUo0T...xXV5A",
"expiresIn": "3600"
}
응답 중 "idToken" 값 사용.
'OS-서버-서비스' 카테고리의 다른 글
GitLab Pages - Github Gist 같은 정적 웹페이지 서비스 (0) | 2016.08.19 |
---|---|
SFTP 또는 SSH Too many authentication failures 오류 (0) | 2016.03.27 |
Google Custom Search REST API v1 (0) | 2016.01.08 |
다중 호스트 ssh key 설정 (0) | 2015.10.08 |
docker 컨테이너 내에서 apt-get Unable to locate package 오류 (5) | 2015.05.19 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- iis
- API
- 안드로이드
- Wordpress
- Docker
- JQuery
- macos
- laravel
- PHP
- iphone
- Android
- nginx
- Linux
- git
- nodejs
- Debug
- ASP
- IE
- IOS
- centos
- 워드프레스
- classic asp
- Mac
- mssql
- Prototype
- javascript
- CSS
- JSON
- 한글
- sencha touch
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함