Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:35:30+00:00 2026-06-17T10:35:30+00:00

I have implemented a custom authentication provider successfully, but now I also need to

  • 0

I have implemented a custom authentication provider successfully, but now I also need to add ‘remember me’ functionality, and I couldn’t find docs on how to do that.

I tried adding this:

remember_me:
    key: "%secret%"
    lifetime: 31536000 # 1 year
    always_remember_me: true

But it says this:

You must configure at least one remember-me aware listener (such as form-login) for each firewall that has remember-me enabled.

I found this but I’m not sure how to use it: Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider

So where is the RememberMeAwareInterface? (I guess there is one? Like ContainerAware) And what should I do with it?

I don’t think I need to write my own implementation, the default one should work fine with my custom auth provider.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:35:32+00:00Added an answer on June 17, 2026 at 10:35 am

    I was having the same issue with a custom Facebook authentication provider I wrote. The solution ended up being pretty simple:

    I’ll assume you implemented a custom authentication provider with a custom SecurityFactoryInterface implementation that extends from Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AbstractFactory. If you did this, the rest is a matter of configuration:

    1. In your security configuration, configure the remember_me functionality for your firewall. Assuming you’re configuring that into the public firewall, the added config params might look something like this:

      firewalls:
          public:
              remember_me:
                  key:      "%secret%"
                  lifetime: 31536000 # 365 days in seconds
                  path:     /
                  domain:   ~ # Defaults to the current domain from $_SERVER
      
    2. In the same configuration, enable the remember_me functionality for your authentication provider. Assuming you’re configuring that into the public firewall and your SecurityFactoryInterface implementation’s getKey() method returns yourAuthProviderKey, the added config params might look something like this:

      firewalls:
          public:
              yourAuthProviderKey:
                  remember_me:        true
      
    3. Finally, when your Authentication Provider handles logins, make sure you request the remember me feature by having an http GET or POST parameter named _remember_me with value 1 in the http request. (Note though: this parameter might need a different name if you changed its default value in your security config.) For example, in my case, I had to tell Facebook to redirect to the following URL after it handled the authentication: http://www.mydomain.com/auth-callback/?_remember_me=1. (Note the part after the ?)

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom-authentication-provider defined in my Spring Security configuration. This class implements AuthenticationProvider,
I have implemented a custom membership provider using LINQ to SQL. When I added
I had to implement a custom authentication provider for a project, but I ran
I have a site on .NET 3.5 platform with implemented custom authentication for site
Possible Duplicate: Symfony2 AJAX Login I have implemented a custom authentication handler service to
I have implemented a custom ActionMapper which obtains the locale from the URI (the
I have implemented a custom view within another activity into a XML layout. The
In my WCF service I have implemented a custom encoder which inherits from System.ServiceModel.Channels.MessageEncoder
I'm using OSMdroid to implement a mapping application. I have implemented a custom MapTileProvider
I have implemented the jquery ui autocomplete as in the example: autocomplete with custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.