diff --git a/test/ApplicationSpec.scala b/test/ApplicationSpec.scala index c8f736f..4f14e27 100644 --- a/test/ApplicationSpec.scala +++ b/test/ApplicationSpec.scala @@ -19,7 +19,7 @@ class ApplicationSpec extends PlaySpecification { } "render the invoice form page" in new WithApplication(app) { - val creds1 = cookies(route(FakeRequest(POST, "/authenticate/naive").withTextBody("user")).get) + val creds1 = cookies(route(FakeRequest(POST, "/auth/authenticate/test").withTextBody("user")).get) val home = route(FakeRequest(GET, "/").withCookies(creds1.get("id").get)).get diff --git a/test/securesocial/testkit/AlwaysValidIdentityProvider.scala b/test/securesocial/testkit/AlwaysValidIdentityProvider.scala index 9d54e4c..cb0a29d 100644 --- a/test/securesocial/testkit/AlwaysValidIdentityProvider.scala +++ b/test/securesocial/testkit/AlwaysValidIdentityProvider.scala @@ -8,12 +8,12 @@ import securesocial.core.AuthenticationResult.Authenticated import scala.concurrent.ExecutionContext.Implicits.global class AlwaysValidIdentityProvider(app:play.api.Application) extends IdentityProvider with Plugin { - def authMethod: AuthenticationMethod = AuthenticationMethod("naive") + def authMethod: AuthenticationMethod = AuthenticationMethod("test") override def authenticate()(implicit request: Request[play.api.mvc.AnyContent]): Future[AuthenticationResult] ={ - Future(Authenticated(BasicProfile("google", id, Some("jean"), Some("test"), Some("jean test"),Some("jean.test@example.com"),None, authMethod,None, None, None))) + Future(Authenticated(BasicProfile("google", id, Some("jean"), Some("test"), Some("jean test"),Some("jean.test@lateral-thoughts.com"),None, authMethod,None, None, None))) } - val id: String = "naive" + val id: String = "test" } \ No newline at end of file