Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improved code of custom authentication provider cookbook article#2614

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 3 commits intosymfony:2.1fromFlyersWeb:improving_custom_authentication_provider
May 10, 2013
Merged

Improved code of custom authentication provider cookbook article#2614

weaverryan merged 3 commits intosymfony:2.1fromFlyersWeb:improving_custom_authentication_provider
May 10, 2013

Conversation

FlyersWeb
Copy link

Improved source code of the article. Empty security Token and file_put_contents errors resolved.

@@ -233,6 +238,10 @@ the ``PasswordDigest`` header value matches with the user's password.
if (file_exists($this->cacheDir.'/'.$nonce) && file_get_contents($this->cacheDir.'/'.$nonce) + 300 > time()) {
throw new NonceExpiredException('Previously used nonce detected');
}
// If cache directory does not exist we create it
if ( !is_dir($this->cacheDir) ) {
Copy link
Member

Choose a reason for hiding this comment

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

you have to remove the spaces between()

@@ -138,7 +138,7 @@ set an authenticated token in the security context if successful.
try {
$authToken = $this->authenticationManager->authenticate($token);

$this->securityContext->setToken($authToken);
return$this->securityContext->setToken($authToken);
Copy link
Member

Choose a reason for hiding this comment

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

setToken does not return anything so this is misleading. You should put areturn; statement after it instead.

weaverryan added a commit that referenced this pull requestMay 10, 2013
…on_providerImproved code of custom authentication provider cookbook article
@weaverryanweaverryan merged commit9d84809 intosymfony:2.1May 10, 2013
@weaverryan
Copy link
Member

Merged, thanks for your updates!

@FlyersWebFlyersWeb deleted the improving_custom_authentication_provider branchMay 13, 2013 16:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@FlyersWeb@weaverryan@stof@wouterj

[8]ページ先頭

©2009-2025 Movatter.jp