Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to get it to work with Google Auth2 #1

Open
PhilAndrew opened this issue Jul 10, 2018 · 2 comments
Open

Trying to get it to work with Google Auth2 #1

PhilAndrew opened this issue Jul 10, 2018 · 2 comments

Comments

@PhilAndrew
Copy link

Problem on getAccessToken

Can you tell me what this error means?

[info] java.lang.IllegalArgumentException: requirement failed: Illegal port: -1
[info] at scala.Predef$.require(Predef.scala:277)
[info] at akka.http.scaladsl.model.headers.Host.(headers.scala:521)
[info] at akka.http.scaladsl.model.headers.Host$.apply(headers.scala:516)
[info] at akka.http.scaladsl.HttpExt._outgoingConnection(Http.scala:373)
[info] at akka.http.scaladsl.HttpExt.outgoingConnectionHttps(Http.scala:346)
[info] at com.github.dakatsuka.akka.http.oauth2.client.Config.connection(Config.scala:25)
[info] at com.github.dakatsuka.akka.http.oauth2.client.Client.getAccessToken(Client.scala:23)

@GRBurst
Copy link

GRBurst commented Jul 25, 2018

hey @PhilAndrew ,
did you set the code and redirect_uri parameters? they are required for the request to work. require(params.contains("code")) require(params.contains("redirect_uri"))

@PhilAndrew
Copy link
Author

I gave up and made a nodejs REST version and called that from my Scala code via REST since I knew I could rely on the nodejs libraries to work and I could understand if they didn't work. I'd like to make this work later some time.

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

No branches or pull requests

2 participants