# Getting token from datev

**URL:** <https://community.auth0.com/t/getting-token-from-datev/104716>\
**Category:** Get Help\
**Tags:** auth0-spa-js, sdks-quickstarts\
**Created:** [April 14, 2023, 11:20am UTC](https://community.auth0.com/t/getting-token-from-datev/104716 "2023-04-14T11:20:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvu](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tvu](https://community.auth0.com/u/tvu)\
**Post date:** [April 14, 2023, 11:20am UTC](https://community.auth0.com/t/getting-token-from-datev/104716/1 "2023-04-14T11:20:29Z")

</div>

Hello,

im trying to use the singple page sdk in javascript for a OAUTH workflow with PKCE. I have a working request using postman. Following URL is called in Postman:  
[https://login.datev.de/openidsandbox/authorize](https://login.datev.de/openidsandbox/authorize)?  
response\_type=code%20id\_token&  
response\_mode=query&  
nonce=012345678901234567890&  
response\_type=code&  
client\_id=66c814d04f1370ebdb42553a50ef09b0&  
state=01234567890123456789&  
scope=openid%20profile%20email%20accounting%3Adxso-jobs%20datev%3Aaccounting%3Aclients%20accounting%3Aclients%3Aread&  
redirect\_uri=http%3A%2F%2Flocalhost&  
code\_challenge=XG8iSGaUUAZ9O3\_EigOBwx75lX7fbQ1HqNGK4AV1TSI&  
code\_challenge\_method=S256

But with the URL when using the SDK is different and gets me an error: Request schema validation failed. This is the URL:  
[https://login.datev.de/openidsandbox/authorize](https://login.datev.de/openidsandbox/authorize)?  
client\_id=66c814d04f1370ebdb42553a50ef09b0&  
scope=openid+profile+email+datev:accounting:client+accounting:clients:read+accounting:dxso-jobs&  
redirect\_uri=http%3A%2F%2Flocalhost&  
response\_type=code&  
response\_mode=query&  
state=bkVnNnVOQzk0R0NMY2FHSFlURnpkY3N3RlNicXVXen55WFFzT1h3SXI3Vw==&  
nonce=eC1nVjhVa1RwcHZKM251NGFBOGZZWGg2LlY0aX5wUE5kUUJKc0k3OEZpdg==&  
code\_challenge=owc2ySHexR-a217Wr1wBWBtgHLx3Jv8DHpR77JQMldc&  
code\_challenge\_method=S256&  
auth0Client=eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjIuMC40In0=

I need to change the parameter response\_type and remove the parameter auth0Client for it to be accepted by the endpointed. How do I do this with the SDK?

Hope someone can help me. Or point me to another library that doesn’t require node and npm. PHP library would be helping too.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 20, 2023, 1:10pm UTC](https://community.auth0.com/t/getting-token-from-datev/104716/3 "2023-04-20T13:10:10Z")

</div>

Hi @tvu,

Welcome to the Auth0 Community!

If you are looking for a PHP library, you can get started here: [PHP: Getting Started using Auth0-PHP](https://auth0.com/docs/libraries/auth0-php)

Let me know if that’s not what you’re looking for and we can continue to troubleshoot.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 16, 2023, 1:19pm UTC](https://community.auth0.com/t/getting-token-from-datev/104716/4 "2023-06-16T13:19:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
