Skip to content

Commit

Permalink
Garmin Connect Login Failure #53 quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgifos committed Apr 24, 2019
1 parent e864ee5 commit c8819a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/com.github.mgifos.workouts/GarminConnect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ class GarminConnect(email: String, password: String)(implicit system: ActorSyste
.singleRequest(
HttpRequest(
POST,
Uri("https://sso.garmin.com/sso/login").withQuery(Query(params)),
Uri("https://sso.garmin.com/sso/signin").withQuery(Query(params)),
entity = FormData(Map("username" -> email, "password" -> password, "embed" -> "false")).toEntity
).withHeaders(extractCookies(res1)))
).withHeaders(extractCookies(res1)).withHeaders(Origin("https://sso.garmin.com")))
.withoutBody
sessionCookies <- redirectionLoop(0, "https://connect.garmin.com/modern", extractCookies(res2))
} yield GarminSession(sessionCookies)
Expand Down

0 comments on commit c8819a4

Please sign in to comment.