cancel
Showing results for 
Search instead for 
Did you mean: 

CDC Dynamic Client Registration returns 400

0 Kudos

I have enabled Dynamic Client Registration for a CDC Site OIDC Provider (with both PKCE and refresh token rotation; and an allowed redirect_uri of "https://dev.bonez.io/callback"), and have attempted to call the registration endpoint:

curl -i 'https://auth.thermofisher.com/oidc/op/v1.0/APIKEY/register' \

-H'{Content-type: application/json}' \

-d '{"redirect_uris": ["https://dev.bonez.io/callback"], "client_name": "bonez-dcr-01", "token_endpoint_auth_method": "client_secret_basic", "grant_types": ["authorization_code", "refresh_token"]}'

But I only receive 400 responses:

HTTP/2 400 
content-type: text/html
content-length: 90
date: Thu, 15 Jun 2023 16:12:29 GMT
cache-control: no-cache
x-cache: Error from cloudfront
via: 1.1 0e65005fd8b7270f4abc0c23bd5f2fbc.cloudfront.net (CloudFront)
x-amz-cf-pop: ORD56-P4
x-amz-cf-id: rUmMI3rKQO_KsY1uRwvVyDn2necqRJTdo6tQMOdTzWZCEgNKffrM7w==

<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>

What am I missing? Has anyone else had success in using CDC DCR?

jeff

Accepted Solutions (0)

Answers (2)

Answers (2)

Hi Jeff,

The provided headers are invalid, please try the following:

curl -i 'https://auth.thermofisher.com/oidc/op/v1.0/APIKEY/register'

-H'Content-type: application/json'

-d '{"redirect_uris": ["https://dev.bonez.io/callback"], "client_name": "bonez-dcr-01", "token_endpoint_auth_method": "client_secret_basic", "grant_types": ["authorization_code", "refresh_token"]}'

Amit Dainovsky,

SAP CDC

0 Kudos

D'oh! I knew it was going to be my fault 🙂 Too much javascript coding lately. Thanks, that worked.

jeff