- Access token question
-
According to cerner documentation: https://docs.oracle.com/en/industries/health/millennium-platform-apis/millennium-authorization-framework/#requesting-authorization-on-behalf-of-a-system I am trying to get the access token
-
Here is my postman request

-

But I am gettting error invalid\_client
{
"error": "invalid\_client",
"error\_uri": "https://authorization.cerner.com/errors/urn%3Acerner%3Aerror%3Aauthorization-server%3Aoauth2%3Atoken%3Ainvalid-authorization-header/instances/343ff05b-3e67-4e04-b997-bf6ef600dcb0?client=unknown&tenant=ec2458f2-1e24-41c8-b71b-0e701af7583d"
}
My application id WellSky CarePort Transition
2. I can get the access token from code, but when I add all the scopes i am getting authentication failure.
To add all scope this is the scope string
externalAuthenticationProvider.Scope = "launch/patient launch/encounter patient/Account.read patient/AllergyIntolerance.read patient/AllergyIntolerance.write patient/Appointment.read patient/Appointment.write patient/Basic.write patient/Binary.read patient/CarePlan.read patient/CareTeam.read patient/ChargeItem.read patient/ChargeItem.write patient/Communication.read patient/Communication.write patient/Condition.read patient/Condition.write patient/Consent.read patient/Coverage.read patient/Coverage.write patient/Device.read patient/DiagnosticReport.read patient/DocumentReference.read patient/DocumentReference.write patient/Encounter.read patient/Encounter.write patient/FamilyMemberHistory.read patient/FamilyMemberHistory.write patient/Goal.read patient/Immunization.read patient/Immunization.write patient/InsurancePlan.read patient/MedicationAdministration.read patient/MedicationRequest.read patient/MedicationRequest.write patient/NutritionOrder.read patient/Observation.read patient/Observation.write patient/Patient.read patient/Patient.write patient/Person.read patient/Procedure.read patient/Procedure.write patient/Provenance.read patient/Provenance.write patient/Questionnaire.read patient/QuestionnaireResponse.read patient/QuestionnaireResponse.write patient/RelatedPerson.read patient/RelatedPerson.write patient/Schedule.read patient/ServiceRequest.read patient/Slot.read patient/Slot.write";