Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #117 from akkie/master
Browse files Browse the repository at this point in the history
Fix typo in oauth2 test namespace and use named logger for FoursquarePro...
  • Loading branch information
akkie committed Mar 1, 2014
2 parents 121b2df + 3f886dd commit b642eac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
package com.mohiva.play.silhouette.core.providers.oauth2

import play.api.Logger
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
import com.mohiva.play.silhouette.core._
Expand Down Expand Up @@ -71,10 +70,10 @@ class FoursquareProvider(

throw new AuthenticationException(SpecifiedProfileError.format(id, code, errorType, errorDetail))
case _ =>
// Status code 200 and a existing errorType can only be a deprecated error
// Status code 200 and an existing errorType can only be a deprecated error
// https://developer.foursquare.com/overview/responses
if (errorType.isDefined) {
Logger.info("This implementation may be deprecated! Please contact the Silhouette team for a fix!")
logger.info("This implementation may be deprecated! Please contact the Silhouette team for a fix!")
}

val userID = (json \ Response \ User \ ID).asOpt[String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mohiva.play.silhouette.core.providers.oauh2
package com.mohiva.play.silhouette.core.providers.oauth2

import test.Helper
import java.util.UUID
import play.api.libs.ws.{ Response, WS }
import play.api.test.{ FakeRequest, WithApplication }
import scala.concurrent.Future
import com.mohiva.play.silhouette.core.providers._
import com.mohiva.play.silhouette.core.providers.oauth2.FacebookProvider
import com.mohiva.play.silhouette.core.{ LoginInfo, AuthenticationException }
import FacebookProvider._
import OAuth2Provider._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mohiva.play.silhouette.core.providers.oauh2
package com.mohiva.play.silhouette.core.providers.oauth2

import test.Helper
import java.util.UUID
Expand All @@ -22,7 +22,6 @@ import play.api.libs.ws.{ Response, WS }
import play.api.test.{ FakeRequest, WithApplication }
import scala.concurrent.Future
import com.mohiva.play.silhouette.core.providers._
import com.mohiva.play.silhouette.core.providers.oauth2.FoursquareProvider
import com.mohiva.play.silhouette.core.{ LoginInfo, AuthenticationException }
import FoursquareProvider._
import OAuth2Provider._
Expand Down

0 comments on commit b642eac

Please sign in to comment.