ET-577: Elation - deprecate password grant and add client credentials #533
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tests
✅ Password grant
✅ Client credentials
PR Type
Enhancement, Bug fix
Description
client_credentials
OAuth grant type and deprecated thepassword
grant type while maintaining backward compatibility.SettingsValidationSchema
to makeusername
andpassword
optional and marked them as deprecated in the settings.findAppointments
action to use the new validation approach withz.object
.FindAppointmentSchema
andsettingsSchema
to simplify the codebase.getPatient
action.Changes walkthrough 📝
findAppointments.ts
Refactor appointment finding logic with updated schema validation.
extensions/elation/actions/findAppointments.ts
validate
function withz.object
for schema validation.FindAppointmentSchema
withFindAppointmentFieldSchema
.SettingsValidationSchema
for settings validation.client.ts
Add client credentials support and deprecate password grant.
extensions/elation/client.ts
client_credentials
OAuth grant type.password
grant type while maintaining backwardcompatibility.
configurations.
SettingsValidationSchema
for settings validation.settings.ts
Deprecate username and password settings in Elation configuration.
extensions/elation/settings.ts
username
andpassword
settings as deprecated and optional.SettingsValidationSchema
to makeusername
andpassword
optional.
appointment.ts
Remove unused types and align with updated schema.
extensions/elation/types/appointment.ts
FindAppointmentSchema
type.appointment.zod.ts
Simplify appointment validation by removing unused schema.
extensions/elation/validation/appointment.zod.ts
FindAppointmentSchema
as it is no longer used.FindAppointmentFieldSchema
for field-level validation.getPatient.ts
Code formatting improvements for Get Patient action.
extensions/elation/actions/getPatient/getPatient.ts
settings.zod.ts
Remove redundant settings schema.
extensions/elation/validation/settings.zod.ts
settingsSchema
as it has been replaced bySettingsValidationSchema
.