Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to run in a API orientation #65

Open
joe97228 opened this issue Oct 27, 2023 · 0 comments
Open

Unable to run in a API orientation #65

joe97228 opened this issue Oct 27, 2023 · 0 comments

Comments

@joe97228
Copy link

joe97228 commented Oct 27, 2023

Hi everyone!

my application environnement is:
-> angular 16 (i use postMan to test this login endPoint)
-> SF 6
---> LexikJWTAuthenticationBundle

###> karser/karser-recaptcha3-bundle ### RECAPTCHA3_KEY=xxxxxxxx RECAPTCHA3_SECRET=xxxx RECAPTCHA3_ENABLED=1 ###< karser/karser-recaptcha3-bundle ###

#config/validator/validation.yaml App\Dto\User#Request: properties: email: - NotBlank: ~ - Email: { mode: strict } captcha: - Karser\Recaptcha3Bundle\Validator\Constraints\Recaptcha3: ~

karser_recaptcha3: site_key: '%env(RECAPTCHA3_KEY)%' secret_key: '%env(RECAPTCHA3_SECRET)%' score_threshold: 0.7 enabled: true

{ "type": "project", "license": "proprietary", "minimum-stability": "stable", "prefer-stable": true, "require": { "php": ">=8.1", "ext-ctype": "*", "ext-iconv": "*", "doctrine/doctrine-bundle": "^2.10", "doctrine/doctrine-migrations-bundle": "^3.0", "doctrine/orm": "^2.16", "egulias/email-validator": "^4.0", "friendsofsymfony/rest-bundle": "^3.5", "gesdinet/jwt-refresh-token-bundle": "^1.1", "jms/serializer-bundle": "^5.3", "karser/karser-recaptcha3-bundle": "^0.1.24", "lexik/jwt-authentication-bundle": "^2.19", "nelmio/api-doc-bundle": "^4.12", "nelmio/cors-bundle": "^2.3", "symfony/asset": "6.3.*", "symfony/console": "6.3.*", "symfony/dotenv": "6.3.*", "symfony/flex": "^2", "symfony/framework-bundle": "6.3.*", "symfony/runtime": "6.3.*", "symfony/twig-bundle": "6.3.*", "symfony/yaml": "6.3.*" }

I have been following the different steps until the API orientation part.

Am i suppose to be able to run this bundle at this part of the configuration procedure?
I haven't got any error even if I do not send the reCaptcha token.

--> (@post)http://localhost:8000/api/#_check
-->
{
"password":"test",
"email":"test@jojo.com",
"captcha" : ""

}

thank you all for the returns :-)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant