Question

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Question

Deborah White
Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with Struts 2.3.34?  I have followed examples and it just spins when clicked.

CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication.
Reply | Threaded
Open this post in threaded view
|

Re: Question

Lukasz Lenart
2017-12-11 20:56 GMT+01:00 Deborah White <[hidden email]>:
> Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with Struts 2.3.34?  I have followed examples and it just spins when clicked.

Yesterday I have extended my Google AppEngine plugin [1] with a
support for reCAPTCHA. It targets Struts 2.5.x but you can copy
relevant classes [2] and adjust them to 2.3.x
It uses a dedicated interceptor to perform reCAPTCHA validation once
an action implements ReCaptchaAware interface.

You must request keys from here [3] and then use provided JS and HTML
snippet. On server side you must define a constant with secret and
done :)


[1] https://github.com/lukaszlenart/struts2-gea-plugin
[2] https://github.com/lukaszlenart/struts2-gea-plugin/tree/master/src/main/java/com/gruuf/struts2/gae/recaptcha
[3] https://www.google.com/recaptcha/admin#list


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Question

Deborah White
This might seem like a dumb question to you, but the action I am using already extends ActionSupport and implements ServletRequestAware.  How do I then implement the ReCaptchaAware?

-----Original Message-----
From: Lukasz Lenart [mailto:[hidden email]]
Sent: Monday, December 11, 2017 10:21 PM
To: Struts Users Mailing List <[hidden email]>
Subject: Re: Question

2017-12-11 20:56 GMT+01:00 Deborah White <[hidden email]>:
> Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with Struts 2.3.34?  I have followed examples and it just spins when clicked.

Yesterday I have extended my Google AppEngine plugin [1] with a support for reCAPTCHA. It targets Struts 2.5.x but you can copy relevant classes [2] and adjust them to 2.3.x It uses a dedicated interceptor to perform reCAPTCHA validation once an action implements ReCaptchaAware interface.

You must request keys from here [3] and then use provided JS and HTML snippet. On server side you must define a constant with secret and done :)


[1] https://github.com/lukaszlenart/struts2-gea-plugin
[2] https://github.com/lukaszlenart/struts2-gea-plugin/tree/master/src/main/java/com/gruuf/struts2/gae/recaptcha
[3] https://www.google.com/recaptcha/admin#list


Regards
--
Łukasz
+ 48 606 323 122
+ https://protect2.fireeye.com/url?k=7c2283f13780f4df-d7b44f5b06a6d00e&u
+ =http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Question

Deborah White
Never mind.  I figured it out.

-----Original Message-----
From: Deborah White [mailto:[hidden email]]
Sent: Wednesday, December 13, 2017 10:56 AM
To: Struts Users Mailing List <[hidden email]>
Subject: RE: Question

This might seem like a dumb question to you, but the action I am using already extends ActionSupport and implements ServletRequestAware.  How do I then implement the ReCaptchaAware?

-----Original Message-----
From: Lukasz Lenart [mailto:[hidden email]]
Sent: Monday, December 11, 2017 10:21 PM
To: Struts Users Mailing List <[hidden email]>
Subject: Re: Question

2017-12-11 20:56 GMT+01:00 Deborah White <[hidden email]>:
> Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with Struts 2.3.34?  I have followed examples and it just spins when clicked.

Yesterday I have extended my Google AppEngine plugin [1] with a support for reCAPTCHA. It targets Struts 2.5.x but you can copy relevant classes [2] and adjust them to 2.3.x It uses a dedicated interceptor to perform reCAPTCHA validation once an action implements ReCaptchaAware interface.

You must request keys from here [3] and then use provided JS and HTML snippet. On server side you must define a constant with secret and done :)


[1] https://github.com/lukaszlenart/struts2-gea-plugin
[2] https://github.com/lukaszlenart/struts2-gea-plugin/tree/master/src/main/java/com/gruuf/struts2/gae/recaptcha
[3] https://www.google.com/recaptcha/admin#list


Regards
--
Łukasz
+ 48 606 323 122
+ https://protect2.fireeye.com/url?k=7c2283f13780f4df-d7b44f5b06a6d00e&u
+ =http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication.
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[
�\�\�][��X��ܚX�P��]˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
�\�\�Z[��]˘\X�K�ܙ�B

CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]