728x90
Salesforce OAuth 2.0의 여러가지 방식 중 password 방식을 설명 합니다.
Sandbox 기준 예시 입니다.
Method : POST
URL : https://test.salesforce.com/services/oauth2/token
params :
- grant_type : password
- username : Login Id
- password : Login Password
- client_id : Connected App Client ID
- client_secret : Connected App Client Secret key
// 요청 예시
https://test.salesforce.com/services/oauth2/token?grant_type=password&username=dkbmc@innisfree.co.kr.gtm&password=amore12345&client_id=3MVG9e2mBbZnmM6ks2kVSUB0EdmaLeekv7GrDP8JxtS8vJy3cQihrF4ZMx5C4bWmRj4E31qOLD7mxhr7oQo7M&client_secret=7415663690936898246
// 응답 예시
{
"access_token": "00DN0000000Afz0!AR8AQFgvfmKVwmbKuxTILbUnhDNjGl7qDMi5o0IjROj6kDB4r7Rcsodo25EqmVVipznC6af5gwgSM1KVhBrtNvQFbjDXKn1J",
"instance_url": "https://abcdefg.cs6.my.salesforce.com",
"id": "https://test.salesforce.com/id/00DN0000000Afz0MAC/00528000002KZoHAAW",
"token_type": "Bearer",
"issued_at": "1481591221369",
"signature": "TUe0ijgr0ue5oLaCaRPtSQilQ19QRy7LmUyoFPX5nqs="
}
728x90
'Salesforce > Development' 카테고리의 다른 글
DomainCreator Class (도메인 생성자 클래스) (0) | 2023.06.08 |
---|---|
Apex 소개 (0) | 2023.02.07 |
현재 사용자 ID 정보 가져 오기(Aura, lwc, apex, vf) (0) | 2022.04.21 |
SOQL 쿼리에서 여러 값 like 사용 (0) | 2022.04.20 |
Apex에서 종속 선택 목록 값 가져오기 (Get Dependent Picklist Values in Apex) (0) | 2022.04.20 |