Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LG-13934 Add socure webhook #11101

Merged
merged 10 commits into from
Aug 19, 2024
Merged

LG-13934 Add socure webhook #11101

merged 10 commits into from
Aug 19, 2024

Conversation

jmax-gsa
Copy link
Contributor

@jmax-gsa jmax-gsa commented Aug 16, 2024

🎫 Ticket

Link to the relevant ticket:
LG-13934

🛠 Summary of changes

Added a webhook at /api/webhooks/socure/event for eventual use during doc auth with Socure.

📜 Testing Plan

Notes:

  • It is necessary to have an account on the Socure console for these tests. Feel free to ask me for pairing if you don't have one; glad to pair.

  • Since the code under test is running as a review app, rather than a stable URL, it may be necessary to restart the review app and update its URL in the Socure console.

  • Running locally, use the command curl http://localhost:3000/api/webhooks/socure/event --json '{"some":"value"}' to hit the webhook. Verify that this returns a 200 OK status.

  • Set up the Socure console to point at the review app with a path of /api/webhooks/socure/event

  • Verify that you can use the Socure console to make a round-trip request to the webhook.

👀 Screenshots

Screenshot 2024-08-16 at 4 23 35 PM

Screenshot 2024-08-16 at 4 23 49 PM

Route is now '/api/webhooks/socure/event'
changelog: Upcoming Features,Adding Socure support,Created a webhook for Socure to invoke during IdV
config/routes.rb Outdated Show resolved Hide resolved
Removed empty generated code and changed spec for request to controller.
@jmax-gsa jmax-gsa marked this pull request as ready for review August 16, 2024 21:08
@jmax-gsa jmax-gsa requested a review from amirbey August 16, 2024 21:09
spec/requests/socure_webhook_spec.rb Outdated Show resolved Hide resolved
jmax-gsa and others added 2 commits August 19, 2024 10:34
We're covered by a controller spec here; the request spec is redundant.
@jmax-gsa jmax-gsa force-pushed the jmax/LG-13934-add-socure-webhook branch from 6bffdab to 7fc550f Compare August 19, 2024 14:53
@jmax-gsa jmax-gsa merged commit f963d71 into main Aug 19, 2024
2 checks passed
@jmax-gsa jmax-gsa deleted the jmax/LG-13934-add-socure-webhook branch August 19, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants