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

Support or Example for Blazor #36

Open
GPT-John opened this issue Mar 14, 2022 · 6 comments
Open

Support or Example for Blazor #36

GPT-John opened this issue Mar 14, 2022 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@GPT-John
Copy link

Would you have an idea how I'd go about using this in Blazor?

Its a nice neat library would be great to get it working.

@sleeuwen
Copy link
Collaborator

Hi, I haven't tried to use the library with blazor so I'm not sure if we would need to add something specific for that.

I think the biggest problem would be to get the recaptcha input field in the razor markup, as you can't use the tag helpers.
Validating the CAPTCHA should be the same as for MVC, just include the recaptcha value in the call to your API (however it might currently only work with a form post and not json). In that case we also provide an IReCaptchaService you can inject in your controller and validate it manually.

I will try to create a sample project for blazor to see how this could work.

@GPT-John
Copy link
Author

GPT-John commented Mar 16, 2022 via email

@Kebechet
Copy link

Kebechet commented Apr 2, 2022

Hello @sleeuwen.
Pleaese is there any progress with the Blazor example ?

@sleeuwen
Copy link
Collaborator

Hi, I haven't been able to create a version for Blazor. I don't personally use Blazor so having to figure out how it works in addition to how to update the lib for use within Blazor is quite some work which I can't get around to at the moment.
If anyone wants to try this for themselves we would gladly help with any questions and review a PR, but for now we won't have time to do that ourselves.

@sleeuwen sleeuwen added the help wanted Extra attention is needed label Jul 30, 2022
@bander87
Copy link

Would love to see this working as well. It seems like none of the popular libraries support razor.

@sleeuwen
Copy link
Collaborator

We don't currently have time to add this as we lack the experience for Blazor apps. You're welcome to create a PR with an implementation for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants