I have gone through below documentation and implemented Components in Constellation. But while authentication facing error.
Documentation url : Constellation SDKs (pega.com)
error:
{
"errors":[
{
"error": "unauthorized_client",
"error_description":"The client is not authorized to request authorization code",
"state":"hPnZCj_Kdh1uo0Gdg7Stp1SXPbeivhHjF7fncUlQPXI"
}
]
}
attached my local Pega o Auth2 details and Configuration from react
@SiddhabattulaSunK Did you get any resolution for this?
@SiddhabattulaSunK can you confirm that you set Constellationstaticcontent DSS to https://release.constellation.pega.io ?
Also did you set the service package authentication to oAuth to avoid the UI Authoring Error?
@JohnArnold is this something you could help with?
Sorry for the delay. I didn’t get an email to tell me I’d been tagged in this question.
@AbhilashJ16778753 I’ve asked @Niall Riddell to take a look since he may know about this aspect. Usually the SDKs use an SDK-oriented OAuth record and not the DX-Components OAuth record, I think. But I hope he knows more of the details.
@SiddhabattulaSunK Did you find any solution for this problem?
@ShubhamG17074338
Hi,
Not quite clear if the issue you are having is with publishing DX Components, or authorizing to a SDK application. I’ll assume it is related to a failure with “npm run authenticate”.
Which grant flow are you trying to use? The error seems to indicate an authorization code grant flow is attempted and the client id is likely setup for a Confidential grant flow and not enabled for auth code grant flow?
The latest platform OAuth 2.0 client registration record we recommend you use is one with the name DX-CompnentDev (public record configured to use authorization code grant flow) rather than DX-CustomCompnents (confidential record setup to use password credentials grant flow.
I would suggest downloading initializing a new DX Component Builder project for the Infinity server version you are going against and follow the doc on how to set this up:
https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/initialize-project.html
@JohnArnold can you please help?