on 2023 Jun 15 5:55 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
D'oh! I knew it was going to be my fault 🙂 Too much javascript coding lately. Thanks, that worked.
jeff
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
22 | |
21 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.