[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.676378-07:00] OpenEMR.DEBUG: oauth2 request received {“endpoint”:"/default/token"} []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.678328-07:00] OpenEMR.DEBUG: AuthorizationController->oauthAuthorizeToken() starting request [] []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.681753-07:00] OpenEMR.DEBUG: AuthorizationController->getAuthorizationServer() creating server [] []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.682566-07:00] OpenEMR.DEBUG: AuthorizationController->getAuthorizationServer() grantType is password [] []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.683155-07:00] OpenEMR.DEBUG: AuthorizationController->getAuthorizationServer() authServer created [] []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.683668-07:00] OpenEMR.DEBUG: ClientRepository->getClientEntity() client found {“client”:{“client_name”:“document-api”,“redirect_uri”:“http://localhost:3000”,“is_confidential”:“1”}} []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.683908-07:00] OpenEMR.DEBUG: ScopeRepository->getScopeEntityByIdentifier() attempting to retrieve scope {“identifier”:“api:oemr”} []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.683944-07:00] OpenEMR.DEBUG: ScopeRepository->getScopeEntityByIdentifier() attempting to build validation scopes [] []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.683974-07:00] OpenEMR.DEBUG: ScopeRepository->buildScopeValidatorArray() {“requestScopeString”:“api:oemr”} []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.684062-07:00] OpenEMR.DEBUG: ScopeRepository->getCurrentSmartScopes() setting up standard api scopes [] []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.684889-07:00] OpenEMR.ERROR: ScopeRepository->getScopeEntityByIdentifier() request access to invalid scope {“scope”:“api:oemr”,“validationScopes”:{“0”:“system/allergy.read”,“1”:“system/allergy.write”,“2”:“system/appointment.read”,“3”:“system/appointment.write”,“4”:“system/dental_issue.read”,“5”:“system/dental_issue.write”,“6”:“system/document.read”,“7”:“system/document.write”,“8”:“system/drug.read”,“9”:“system/encounter.read”,“10”:“system/encounter.write”,“11”:“system/facility.read”,“12”:“system/facility.write”,“13”:“system/immunization.read”,“14”:“system/insurance.read”,“15”:“system/insurance.write”,“16”:“system/insurance_company.read”,“17”:“system/insurance_company.write”,“18”:“system/insurance_type.read”,“19”:“system/list.read”,“20”:“system/medical_problem.read”,“21”:“system/medical_problem.write”,“22”:“system/medication.read”,“23”:“system/medication.write”,“24”:“system/message.write”,“25”:“system/patient.read”,“26”:“system/patient.write”,“27”:“system/practitioner.read”,“28”:“system/practitioner.write”,“29”:“system/prescription.read”,“30”:“system/procedure.read”,“31”:“system/soap_note.read”,“32”:“system/soap_note.write”,“33”:“system/surgery.read”,“34”:“system/surgery.write”,“35”:“system/vital.read”,“36”:“system/vital.write”,“37”:“user/allergy.read”,“38”:“user/allergy.write”,“39”:“user/appointment.read”,“40”:“user/appointment.write”,“41”:“user/dental_issue.read”,“42”:“user/dental_issue.write”,“43”:“user/document.read”,“44”:“user/document.write”,“45”:“user/drug.read”,“46”:“user/encounter.read”,“47”:“user/encounter.write”,“48”:“user/facility.read”,“49”:“user/facility.write”,“50”:“user/immunization.read”,“51”:“user/insurance.read”,“52”:“user/insurance.write”,“53”:“user/insurance_company.read”,“54”:“user/insurance_company.write”,“55”:“user/insurance_type.read”,“56”:“user/list.read”,“57”:“user/medical_problem.read”,“58”:“user/medical_problem.write”,“59”:“user/medication.read”,“60”:“user/medication.write”,“61”:“user/message.write”,“62”:“user/patient.read”,“63”:“user/patient.write”,“64”:“user/practitioner.read”,“65”:“user/practitioner.write”,“66”:“user/prescription.read”,“67”:“user/procedure.read”,“68”:“user/soap_note.read”,“69”:“user/soap_note.write”,“70”:“user/surgery.read”,“71”:“user/surgery.write”,“72”:“user/vital.read”,“73”:“user/vital.write”,“system/allergy.read”:{“description”:“OpenId Connect”},“system/allergy.write”:{“description”:“OpenId Connect”},“system/appointment.read”:{“description”:“OpenId Connect”},“system/appointment.write”:{“description”:“OpenId Connect”},“system/dental_issue.read”:{“description”:“OpenId Connect”},“system/dental_issue.write”:{“description”:“OpenId Connect”},“system/document.read”:{“description”:“OpenId Connect”},“system/document.write”:{“description”:“OpenId Connect”},“system/drug.read”:{“description”:“OpenId Connect”},“system/encounter.read”:{“description”:“OpenId Connect”},“system/encounter.write”:{“description”:“OpenId Connect”},“system/facility.read”:{“description”:“OpenId Connect”},“system/facility.write”:{“description”:“OpenId Connect”},“system/immunization.read”:{“description”:“OpenId Connect”},“system/insurance.read”:{“description”:“OpenId Connect”},“system/insurance.write”:{“description”:“OpenId Connect”},“system/insurance_company.read”:{“description”:“OpenId Connect”},“system/insurance_company.write”:{“description”:“OpenId Connect”},“system/insurance_type.read”:{“description”:“OpenId Connect”},“system/list.read”:{“description”:“OpenId Connect”},“system/medical_problem.read”:{“description”:“OpenId Connect”},“system/medical_problem.write”:{“description”:“OpenId Connect”},“system/medication.read”:{“description”:“OpenId Connect”},“system/medication.write”:{“description”:“OpenId Connect”},“system/message.write”:{“description”:“OpenId Connect”},“system/patient.read”:{“description”:“OpenId Connect”},“system/patient.write”:{“description”:“OpenId Connect”},“system/practitioner.read”:{“description”:“OpenId Connect”},“system/practitioner.write”:{“description”:“OpenId Connect”},“system/prescription.read”:{“description”:“OpenId Connect”},“system/procedure.read”:{“description”:“OpenId Connect”},“system/soap_note.read”:{“description”:“OpenId Connect”},“system/soap_note.write”:{“description”:“OpenId Connect”},“system/surgery.read”:{“description”:“OpenId Connect”},“system/surgery.write”:{“description”:“OpenId Connect”},“system/vital.read”:{“description”:“OpenId Connect”},“system/vital.write”:{“description”:“OpenId Connect”},“user/allergy.read”:{“description”:“OpenId Connect”},“user/allergy.write”:{“description”:“OpenId Connect”},“user/appointment.read”:{“description”:“OpenId Connect”},“user/appointment.write”:{“description”:“OpenId Connect”},“user/dental_issue.read”:{“description”:“OpenId Connect”},“user/dental_issue.write”:{“description”:“OpenId Connect”},“user/document.read”:{“description”:“OpenId Connect”},“user/document.write”:{“description”:“OpenId Connect”},“user/drug.read”:{“description”:“OpenId Connect”},“user/encounter.read”:{“description”:“OpenId Connect”},“user/encounter.write”:{“description”:“OpenId Connect”},“user/facility.read”:{“description”:“OpenId Connect”},“user/facility.write”:{“description”:“OpenId Connect”},“user/immunization.read”:{“description”:“OpenId Connect”},“user/insurance.read”:{“description”:“OpenId Connect”},“user/insurance.write”:{“description”:“OpenId Connect”},“user/insurance_company.read”:{“description”:“OpenId Connect”},“user/insurance_company.write”:{“description”:“OpenId Connect”},“user/insurance_type.read”:{“description”:“OpenId Connect”},“user/list.read”:{“description”:“OpenId Connect”},“user/medical_problem.read”:{“description”:“OpenId Connect”},“user/medical_problem.write”:{“description”:“OpenId Connect”},“user/medication.read”:{“description”:“OpenId Connect”},“user/medication.write”:{“description”:“OpenId Connect”},“user/message.write”:{“description”:“OpenId Connect”},“user/patient.read”:{“description”:“OpenId Connect”},“user/patient.write”:{“description”:“OpenId Connect”},“user/practitioner.read”:{“description”:“OpenId Connect”},“user/practitioner.write”:{“description”:“OpenId Connect”},“user/prescription.read”:{“description”:“OpenId Connect”},“user/procedure.read”:{“description”:“OpenId Connect”},“user/soap_note.read”:{“description”:“OpenId Connect”},“user/soap_note.write”:{“description”:“OpenId Connect”},“user/surgery.read”:{“description”:“OpenId Connect”},“user/surgery.write”:{“description”:“OpenId Connect”},“user/vital.read”:{“description”:“OpenId Connect”},“user/vital.write”:{“description”:“OpenId Connect”}}} []
[07-Mar-2022 09:15:04 America/Denver] [2022-03-07T09:15:04.685162-07:00] OpenEMR.DEBUG: AuthorizationController->oauthAuthorizeToken() OAuthServerException occurred {“message”:“The requested scope is invalid, unknown, or malformed”,“stack”:"#0 /home/xxxx/public_html/emr/vendor/league/oauth2-server/src/Grant/AbstractGrant.php(300): League\OAuth2\Server\Exception\OAuthServerException::invalidScope(‘api:oemr’, NULL)\n#1 /home/xxxx/public_html/emr/vendor/league/oauth2-server/src/Grant/PasswordGrant.php(53): League\OAuth2\Server\Grant\AbstractGrant->validateScopes(Array)\n#2 /home/xxxx/public_html/emr/vendor/league/oauth2-server/src/AuthorizationServer.php(198): League\OAuth2\Server\Grant\PasswordGrant->respondToAccessTokenRequest(Object(Nyholm\Psr7\ServerRequest), Object(OpenEMR\Common\Auth\OpenIDConnect\IdTokenSMARTResponse), Object(DateInterval))\n#3 /home/xxxx/public_html/emr/src/RestControllers/AuthorizationController.php(899): League\OAuth2\Server\AuthorizationServer->respondToAccessTokenRequest(Object(Nyholm\Psr7\ServerRequest), Object(Nyholm\Psr7\Response))\n#4 /home/xxxx/public_html/emr/oauth2/authorize.php(73): OpenEMR\RestControllers\AuthorizationController->oauthAuthorizeToken()\n#5 {main}"} []