Document processHTML
[tolino-api-docs.git] / api / thalia-auth-oauth2-authorize.rst
1 ===============================================
2 ``GET https://thalia.de/auth/oauth2/authorize``
3 ===============================================
4 Fetch URL of actual login page.
5
6 First step in the `Login process`_.
7
8 Source
9 ======
10 This URL is provided in the reseller configuration,
11 key ``config.URL_OAUTH_ACCESSTOKEN``.
12
13
14 Request
15 =======
16 GET Parameters
17   ``response_type``
18     Example: ``code``
19   ``scope``
20     Example: ``SCOPE_BOSH%20SCOPE_BUCHDE%20SCOPE_MANDANT_ID.2004%20SCOPE_LOGIN%20FAMILY``
21   ``redirect_uri``
22     Example: ``epublishing://login``
23   ``x_buchde.skin_id``
24     Example: ``17``
25   ``client_id``
26     Example: ``treadervision3``
27 Headers
28   ``User-Agent``
29     Browser user agent.
30   ``lcp``
31     Example: ``1``
32   ``X-Requested-With``
33     Example: ``de.telekom.epub``
34
35
36 Response
37 ========
38 Redirect to actual login page.
39
40 Status code: HTTP/1.1 302
41
42 Header
43   ``Location``:
44     Example: ``https://thalia.de/de.thalia.ecp.authservice.application/oauth2/login?response_type=code&scope=SCOPE_BOSH%20SCOPE_BUCHDE%20SCOPE_MANDANT_ID.2004%20SCOPE_LOGIN%20FAMILY&redirect_uri=epublishing://login&x_buchde.skin_id=17&client_id=treadervision3``