Getting token from datev

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?
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?
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.

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

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

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