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

Introduce before_request configuration #138

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

RomainEndelin
Copy link
Contributor

Discussed in #137

Add a before_request: -> (env) { ... } configuration option. This option can be useful for users to authenticate their calls, add metrics, etc.

@RomainEndelin RomainEndelin force-pushed the authenticate branch 2 times, most recently from b9302bb to b8c40bb Compare August 30, 2023 09:08
@RomainEndelin
Copy link
Contributor Author

RomainEndelin commented Aug 30, 2023

👋

I've been able to test it in my repository, and it worked: passed when authenticated, rejected with expected status when unauthenticated.

I'm not sure whether to add tests to specs_e2e, could you point me to the right direction @grantspeelman 🙏 ?

@RomainEndelin RomainEndelin marked this pull request as ready for review September 8, 2023 07:09
@justin808
Copy link
Member

Thanks @RomainEndelin! Looks solid. Check this out @grantspeelman.

Copy link
Collaborator

@grantspeelman grantspeelman left a comment

Choose a reason for hiding this comment

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

Awesome job 👍🏽
Thank you for contributing

@grantspeelman grantspeelman merged commit 1d27b96 into shakacode:master Sep 11, 2023
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