Using Symfony 4 with a security.yaml like this:
encoders:
App\Entity\User: sha256
providers:
public_users:
entity:
class: App\Entity\User
property: email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
pattern: ^/
anonymous: ~
form_login
it1352
1
2020-07-10
I'm looking for a bundle to integrate CAS authentication on Symfony 2.3. I found these options and the truth is I'm not convinced any, since almost all bundles seem to be abandoned without updating.
1.- sensiolabs / CasBundle: https://github.com/sensiolabs/CasBundle
The documentation is sparse and incomplete. I have not found any examples of how t
it1352
1
2019-05-08
I'm trying to create a custom connection where I should use web service. So I read the tutorial on security and this one on custom provider. Now I'm trying to create my own login form with 3 fields : Email, password and number. After validation I understood that my /login_check pass in the function loadUserByUsername($username), but this function t
it1352
0
2020-09-14
I am developing a site using Symfony 4 and I noticed that remember me functionality is not working (the cookie is not set at all). I followed this tutorial:
https://symfony.com/doc/4.4/security/remember_me.html
I also read a lot of similar issues but none of them resolved my problem. This is my security.yaml configuration:
security:
encoders
it1352
0
2020-09-14
I am trying to execute a function after user login in FOSUserBundle, in my config.yml I set the service:
services:
authentication.success.listener:
class: MyCompany\MyBundle\EventListener\AuthenticationEventListener
arguments: [@router]
tags:
- { name: kernel.event_subscriber }
Then, I create the Listener
it1352
0
2020-11-10
php 7.3.5 hello i have a problem with the extension ext-http , and composer say me ext-http is missing even if i write this in composer .json , why ?
this this exact message:
_Problem 1
- The requested PHP extension ext-http * is missing from your system. Install or enable PHP's http extension. i tried to see th php.ini , and it i saw nothin t
it1352
1
2020-11-24
I think I've tried all code in all posts about authentication with
(doctrine) Entity in Symfony 2. And I can`t make it work.
When I use in_memory provider all works fine.
I'm using the PR8.
My security.yml
security:
encoders:
Partners\FrontendBundle\Entity\User: plaintext
Symfony\Component\Security\Core\User\User: plaint
it1352
1
2019-05-08
Let's say I have a Symfony v4.4 (Flex) project with the following block in the composer.json:
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.4.*"
}
}
As expected, it restricts the Symfony core packages to stick to the v4.4 version.
symfony/monolog-bridge package respects it, so you cannot install symfony/m
it1352
0
2020-07-25
I'm trying to use the new LdapUserProvider in Symfony 2.8. I believe I have configured everything per the docs.
My user can successfully authenticate, and then gets redirected to the secured page. After the redirection is where the issue begins. Symfony tries to bind as the authenticated user, but with a null password, which is rejected by open ld
it1352
6
2019-05-08
I think I've tried all code in all posts about authentication with
(doctrine) Entity in Symfony 2. And I can`t make it work.
When I use in_memory provider all works fine.
I'm using the PR8.
My security.yml
security:
encoders:
Partners\FrontendBundle\Entity\User: plaintext
Symfony\Component\Security\Core\User\User: plaint
it1352
1
2019-05-15