55189a9d3466595fed37042bd0adc26622ea1531
[tolino-api-docs.git] / thalia-auth-oauth2-token-post.rst
1 ============================================
2 ``POST https://thalia.de/auth/oauth2/token``
3 ============================================
4 Step 4 of the `Login process`_.
5
6 Uses:
7
8 1. Log in to obtain an access token.
9 2. Generate access token from a refresh token.
10
11
12 Request
13 =======
14 GET parameters
15   ``client_secret``
16     Provided in the reseller configuration.
17
18     Example: ``gU5a7CA9``
19
20 Headers
21   ``Content-Type``
22     ``application/x-www-form-urlencoded``
23   ``User-Agent``
24     ``DT_EINK_10_NETRONIX DT_EINK_UPD_PP_14.1.0``
25   ``Cookie``:
26     Example: ``gcor=SIDYBbxYkmvUvoO8hy@2Sfx4QAAA9o; ab_bucket=9; ab_container=3; OAUTH-JSESSIONID=9C95C20ECEE74164E76F60C205147822.15acdb90``
27   ``Cookie2``
28     ``$Version=1``
29
30 POST parameters
31   ``grant_type``:
32     ``authorization_code``
33   ``redirect_uri``
34     ``epublishing://login``
35
36     The e-reader internal login process
37   ``code``
38     Obtained from login form page redirect.
39
40     Example: ``GK6jDC``
41   ``client_id``
42     Example: ``treadervision3``
43
44
45 Response
46 ========
47 HTTP status code ``200 OK``
48
49 .. include:: thalia-auth-oauth2-token-post.response.json
50    :code: