{"_id":"5703898d18ad001700a296a2","category":{"_id":"5703898d18ad001700a2968f","version":"5703898d18ad001700a2968d","project":"56d43c20ffd25c150090e049","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-01T09:55:28.764Z","from_sync":false,"order":2,"slug":"authentifizierung","title":"Authentifizierung"},"project":"56d43c20ffd25c150090e049","user":"561f59254d67490d00804aa2","__v":0,"version":{"_id":"5703898d18ad001700a2968d","project":"56d43c20ffd25c150090e049","__v":1,"hasDoc":true,"hasReference":true,"createdAt":"2016-04-05T09:46:53.342Z","releaseDate":"2016-04-05T09:46:53.342Z","categories":["5703898d18ad001700a2968e","5703898d18ad001700a2968f","5703898d18ad001700a29690","5703898d18ad001700a29691","5703898d18ad001700a29692"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.2.0","version":"1.2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-01T09:56:54.546Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":15,"body":"POST /oauth/token\n\n| Parameter     | Datentyp                   | Beschreibung                                    |\n| ------------- | -------------------------- | ----------------------------------------------- |\n| client_id     | Int                        | ID des OAuth-Clients                            |\n| client_secret | String                     | Secret des OAuth-Clients                        |\n| grant_type    | Enum<_authorization_code_> | Authorisierungstyp zum Abholen des AccessTokens |\n| code          | String                     | Authorisierungsanfragecode ($REQUEST-CODE)      |\n| redirect_uri  | String                     | Redirect-URI des OAuth-Clients ($REDIRECT-URI)  |\n\nDie Rückgabe erfolgt im JSON-Format.\n\n| Rückgabe     | Datentyp       | Beschreibung                                                     |\n| ------------ | -------------- | ---------------------------------------------------------------- |\n| access_token | String         | AccessToken                                                      |\n| token_type   | Enum<_bearer_> | Bearer-Token                                                     |\n| expires_in   | Int            | Token läuft ab in x Sekunden, ausgehend vom UTC-Erstellungsdatum |\n| scope        | ?              | Erlaubter Scope (nicht definiert)                                |","excerpt":"","slug":"accesstoken-abholen","type":"basic","title":"AccessToken abholen"}

AccessToken abholen


POST /oauth/token | Parameter | Datentyp | Beschreibung | | ------------- | -------------------------- | ----------------------------------------------- | | client_id | Int | ID des OAuth-Clients | | client_secret | String | Secret des OAuth-Clients | | grant_type | Enum<_authorization_code_> | Authorisierungstyp zum Abholen des AccessTokens | | code | String | Authorisierungsanfragecode ($REQUEST-CODE) | | redirect_uri | String | Redirect-URI des OAuth-Clients ($REDIRECT-URI) | Die Rückgabe erfolgt im JSON-Format. | Rückgabe | Datentyp | Beschreibung | | ------------ | -------------- | ---------------------------------------------------------------- | | access_token | String | AccessToken | | token_type | Enum<_bearer_> | Bearer-Token | | expires_in | Int | Token läuft ab in x Sekunden, ausgehend vom UTC-Erstellungsdatum | | scope | ? | Erlaubter Scope (nicht definiert) |