Skip to content

Conversation

@dol
Copy link

@dol dol commented Sep 6, 2012

Refactoring the WsseListener

  • AuthenticationManagerInterface will never return a Response, instanceof check is obsolete
  • Added option to redirect to the login page by clear the token of the securityContext

Copy link
Member

Choose a reason for hiding this comment

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

This is wrong. It makes this listener impossible to use with others authentication listeners as the exception will prevent them from running. If you cannot authenticate the user for this request, you should simply do nothing.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, thank you for the tip. A 'return' should do the trick?
Good to know, I have to update the Listener in our code base.

Copy link
Member

Choose a reason for hiding this comment

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

yes

Refactoring the WsseListener
* AuthenticationManagerInterface will never return a Response, instanceof check is obsolete
* Added option to redirect to the login page by clear the token of the securityContext
Copy link
Member

Choose a reason for hiding this comment

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

This should be

// ... you might log something here

weaverryan added a commit that referenced this pull request Sep 14, 2012
…provider

Minor improvement: Cleaned up the WsseListener example
@weaverryan weaverryan merged commit de4085a into symfony:2.0 Sep 14, 2012
weaverryan added a commit that referenced this pull request Sep 14, 2012
@weaverryan
Copy link
Member

Hi Dominic!

These are really great changes! I've merged them in with basically no changes :)

Thanks for the great PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants