Configuring Security for Symfony 2 (Loading Security Users)

Asked 1 years ago, Updated 1 years ago, 103 views

Thank you for your help.I'm studying security for Symphony2.
It's an English site, but
http://symfony.com/doc/current/cookbook/security/entity_provider.html
I'm doing a lot of things by referring to this, but there are some parts that I can't understand from this tutorial alone, so please let me ask you a question.
I was able to set it up as shown in the tutorial above, but
1. Security.yml

 algorithm:bcrypt

I would like to know how to use other algorithms in the setting.When I saved encrypted strings such as sha1 and sha512, I couldn't log in.I'm having a hard time because I don't have these documents.
Also, how do I set up detailed settings such as redirect destinations if these logins fail?
I'd appreciate it if you could let me know if there's anything wrong with the basics.

symfony2

2022-09-30 20:47

1 Answers

 algorithm—sha1
iterations: 1
encode_as_base64 —false

It is possible by configuring with .Simple sha1, sha256, etc. are not recommended, so there seems to be no mention in the documentation (which used to be changed in Symphony 2.2 and later).

Redirect destination in case of login failure is

form_login
    failure_path:

You can configure it in the .Customizing form logins is documented below.
http://symfony.com/doc/current/cookbook/security/form_login.html


2022-09-30 20:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.