POST /api/1/oauth2/token
認可コードをAccess Tokenに変換して返却する。 認可コードは事前にtabサーバより取得している必要がある。
Key | Value | デフォルト値 |
---|---|---|
grant_type | 権限付与種別。authorization_code を指定する | |
client_id | 事前に割り当てられたClient ID | |
client_secret | 事前に割り当てられたClient Secret | |
code | 取得済みの認可コードを指定する |
POST /api/1/oauth2/token
Host: example.org Content-Type: application/x-www-form-urlencoded Cookie: Origin:
grant_type=authorization_code code=1fd0780c2eef10c8c9b1edf787f4b961 client_id=test_identifier client_secret=test_secret
Content-Type: application/json; charset=utf-8 X-Ua-Compatible: IE=Edge,chrome=1 E-Tag: "4604e668e729cbe14317c9b0243711c2" Cache-Control: max-age=0, private, must-revalidate Set-Cookie: THIS_IS_SESSION_COOKIE_KEY_FOR_SPEC=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWE2NWYzMzEyNWZlZDc0YTFkODQzNjRjMWUzODM2OTllBjsAVEkiGGtwaV9wcmV2X2NvbnRyb2xsZXIGOwBGSSIWYXBpL3Rva2VucyNjcmVhdGUGOwBG--2c36bc0b4e12d1b171a86786d9be88e9308bdd9e; path=/; HttpOnly X-Request: 4fc9a643cafccfbde567304b3f7f595b X-Runtime: 0.173349 Content-Length: 142
200 OK
{ "access_token": "27159bc49a6514499cc996325ca0fc24", "token_type": "bearer", "expires_in": 3599, "refresh_token": "b75a1ba1b4d3b6e8139c32d6991af21a" }