Skip to content

Add info about storing remember me tokens in a database #11392

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2019

Conversation

pierredup
Copy link
Contributor

I only recently saw that the remember me functionality has a token_provider option, and there is a default class to store tokens in the database as part of the DoctrineBridge, however there is no clear information on how this provider should be used (the class itself contains some hints, but the token_provider setting wasn't clear which values it accepts).
So I want to add a section to the remember me docs to explain how to use the DoctrineTokenProvider, which might also give some hints on how to create a custom provider

@pierredup pierredup force-pushed the remember-me-token-provider branch from 2326e5d to 311543f Compare April 10, 2019 08:31
------------------------------------------

By default, tokens are stored in a cookie. You can choose to store the token in a database,
to not have a (hashed) version of the password in a cookie.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why (hashed) with parenthesis?

also, is it really the password? or like an hash?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why (hashed) with parenthesis?

This was just copied from the original description, I'm not sure why the parenthesis is needed

also, is it really the password? or like an hash?

It's a hashed version of the password

@javiereguiluz javiereguiluz merged commit 311543f into symfony:3.4 Apr 12, 2019
javiereguiluz added a commit that referenced this pull request Apr 12, 2019
…(pierredup)

This PR was merged into the 3.4 branch.

Discussion
----------

Add info about storing remember me tokens in a database

I only recently saw that the remember me functionality has a `token_provider` option, and there is a default class to store tokens in the database as part of the DoctrineBridge, however there is no clear information on how this provider should be used (the class itself contains some hints, but the `token_provider` setting wasn't clear which values it accepts).
So I want to add a section to the remember me docs to explain how to use the `DoctrineTokenProvider`, which might also give some hints on how to create a custom provider

Commits
-------

311543f Add info about storing remember me tokens in a database
@javiereguiluz
Copy link
Member

@pierredup I didn't know about this feature ... so thanks a lot for contributing these docs and for teaching me about this!

@pierredup pierredup deleted the remember-me-token-provider branch November 1, 2019 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants