I found the solution. My Moodle configuration in external tool page was wrong. Because of this WebWork gives the "Your authentication failed." error. Thanks.
WeBWorK Main Forum
Moodle LTI Integration
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day