{"action":"created","issue":{"url":"https://api.github.com/repos/mohiva/play-silhouette/issues/324","labels_url":"https://api.github.com/repos/mohiva/play-silhouette/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/mohiva/play-silhouette/issues/324/comments","events_url":"https://api.github.com/repos/mohiva/play-silhouette/issues/324/events","html_url":"https://github.com/mohiva/play-silhouette/issues/324","id":65549863,"number":324,"title":"Convenience authenticate(LoginInfo) method for authenticators","user":{"login":"igorbernstein","id":71188,"avatar_url":"https://avatars.githubusercontent.com/u/71188?v=3","gravatar_id":"","url":"https://api.github.com/users/igorbernstein","html_url":"https://github.com/igorbernstein","followers_url":"https://api.github.com/users/igorbernstein/followers","following_url":"https://api.github.com/users/igorbernstein/following{/other_user}","gists_url":"https://api.github.com/users/igorbernstein/gists{/gist_id}","starred_url":"https://api.github.com/users/igorbernstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorbernstein/subscriptions","organizations_url":"https://api.github.com/users/igorbernstein/orgs","repos_url":"https://api.github.com/users/igorbernstein/repos","events_url":"https://api.github.com/users/igorbernstein/events{/privacy}","received_events_url":"https://api.github.com/users/igorbernstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T21:19:44Z","updated_at":"2015-04-01T10:53:03Z","closed_at":null,"body":"I was wondering how you'd feel about adding a convenience method to create/init/embed an authenticator into a Result? I've read #234 & [SO post](http://stackoverflow.com/questions/27417061/reaching-jwt-token-in-play2-silhouette-jwtauthenticator).  And I understand your goal to make Silhouette as flexible as possible, but it would nice to cut down on the verbosity for the average use case...how would you feel about adding the following to the Authenticator trait?\r\n\r\n```scala\r\ndef authenticate(loginInfo: LoginInfo, result:Result[B]):Future[Result[B]] = {\r\n  for {\r\n    authenticator <- create(loginInfo)\r\n    value <- init(authenticator)\r\n    result <- embed(value, result)\r\n  } yield result\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mohiva/play-silhouette/issues/comments/88438283","html_url":"https://github.com/mohiva/play-silhouette/issues/324#issuecomment-88438283","issue_url":"https://api.github.com/repos/mohiva/play-silhouette/issues/324","id":88438283,"user":{"login":"igorbernstein","id":71188,"avatar_url":"https://avatars.githubusercontent.com/u/71188?v=3","gravatar_id":"","url":"https://api.github.com/users/igorbernstein","html_url":"https://github.com/igorbernstein","followers_url":"https://api.github.com/users/igorbernstein/followers","following_url":"https://api.github.com/users/igorbernstein/following{/other_user}","gists_url":"https://api.github.com/users/igorbernstein/gists{/gist_id}","starred_url":"https://api.github.com/users/igorbernstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorbernstein/subscriptions","organizations_url":"https://api.github.com/users/igorbernstein/orgs","repos_url":"https://api.github.com/users/igorbernstein/repos","events_url":"https://api.github.com/users/igorbernstein/events{/privacy}","received_events_url":"https://api.github.com/users/igorbernstein/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T10:53:03Z","updated_at":"2015-04-01T10:53:03Z","body":"I don't quite understand what you mean. Would you mind clarifying and showing an example?\r\n\r\nI'm not trying to add functionality here...just some syntactic sugar for the following use case exhibited here: \r\n\r\n- https://github.com/mohiva/play-silhouette-seed/blob/e50e81f0f79b62e54733434695abb5803e4217eb/app/controllers/CredentialsAuthController.scala#L45-L47\r\n- https://github.com/mohiva/play-silhouette-seed/blob/e50e81f0f79b62e54733434695abb5803e4217eb/app/controllers/SocialAuthController.scala#L44-L48\r\n- https://github.com/mohiva/play-silhouette-seed/blob/e50e81f0f79b62e54733434695abb5803e4217eb/app/controllers/SignUpController.scala#L65-L69\r\n"}}