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

CAT-1068: Ruby client library generator #65

Merged
merged 5 commits into from
May 3, 2024

Conversation

RiccardoPetteruti-Onfido
Copy link
Contributor

No description provided.

@RiccardoPetteruti-Onfido RiccardoPetteruti-Onfido force-pushed the feature/cat-1068-ruby-lib branch 2 times, most recently from 87d0f38 to 6cdf06f Compare April 23, 2024 10:26
generators/ruby/faraday/config.yaml Outdated Show resolved Hide resolved
generators/ruby/faraday/templates/README.mustache Outdated Show resolved Hide resolved
generators/ruby/faraday/templates/README.mustache Outdated Show resolved Hide resolved
@RiccardoPetteruti-Onfido RiccardoPetteruti-Onfido changed the title CAT-1068: Add Ruby client library generation configuration CAT-1068: Ruby client library generator Apr 26, 2024
preCommit: |
bundle lock --update
version: ${{ needs.generate_specs_and_libraries.outputs.ruby_version }}
update: ${{ inputs.update-onfido-ruby || true}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This || true should remain here only while testing CI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've removed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks it's still there... 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot to add the file, removed now.

generators/ruby/faraday/templates/README.mustache Outdated Show resolved Hide resolved
generators/ruby/faraday/templates/README.mustache Outdated Show resolved Hide resolved
else
render status: 498, text: "498 Token expired/invalid"
end
event = verifier.read_payload('{"payload":{"r...3"}}', signature)
```
Copy link
Contributor

@dvacca-onfido dvacca-onfido May 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's include also here the try-catch block with exception thrown when webhook signature is invalid, so user immediately see how to use this feature.

EDIT: Looking at the code added in webhook_event_verifier.mustache, the exception OnfidoInvalidSignatureError should be raised.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@RiccardoPetteruti-Onfido RiccardoPetteruti-Onfido force-pushed the feature/cat-1068-ruby-lib branch 3 times, most recently from b3de635 to d83dcb3 Compare May 3, 2024 09:54
@RiccardoPetteruti-Onfido RiccardoPetteruti-Onfido merged commit d65af1f into master May 3, 2024
4 checks passed
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.

3 participants