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

Auth0 tokeninfo is not available for new users #121

Closed
landonreed opened this issue Dec 11, 2018 · 6 comments
Closed

Auth0 tokeninfo is not available for new users #121

landonreed opened this issue Dec 11, 2018 · 6 comments

Comments

@landonreed
Copy link
Contributor

Issue by skinkie
Tuesday Jul 10, 2018 at 19:46 GMT
Originally opened as catalogueglobal#102


Which results in:

Jul 10 21:41:08.108 [qtp812824849-21] WARN  c.c.d.manager.auth.Auth0Connection:59 - Could not verify user
java.io.FileNotFoundException: https://opengeo.eu.auth0.com/tokeninfo
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890) ~[na:1.8.0_172]
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) ~[na:1.8.0_172]
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263) ~[na:1.8.0_172]
        at com.conveyal.datatools.manager.auth.Auth0Connection.getUserProfile(Auth0Connection.java:101) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at com.conveyal.datatools.manager.auth.Auth0Connection.checkUser(Auth0Connection.java:55) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at com.conveyal.datatools.manager.DataManager.lambda$registerRoutes$2(DataManager.java:234) [dt-v3.1.0-139-gb572b43.jar:na]
        at spark.FilterImpl$1.handle(FilterImpl.java:62) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at spark.http.matching.BeforeFilters.execute(BeforeFilters.java:48) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:125) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.server.Server.handle(Server.java:517) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) ~[dt-v3.1.0-139-gb572b43.jar:na]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_172]
@landonreed
Copy link
Contributor Author

Comment by abyrd
Wednesday Jul 11, 2018 at 15:50 GMT


@skinkie when you say "new users" do you mean new users of datatools-server or new users of Auth0? I have been told this is in fact an issue with new Auth0 accounts, which work differently than our older account.

@landonreed
Copy link
Contributor Author

Comment by skinkie
Wednesday Jul 11, 2018 at 17:11 GMT


New users of Auth0. The tokeninfo endpoint is not available anymore.

Try to set up the system by the read the docs documentation, and notice that a lot of things just do not work.

@landonreed
Copy link
Contributor Author

Comment by landonreed
Wednesday Jul 18, 2018 at 13:06 GMT


@skinkie, did you come up with a workaround for this missing endpoint? We would certainly like to update Data Tools to work with new Auth0 clients.

@landonreed
Copy link
Contributor Author

Comment by skinkie
Wednesday Jul 18, 2018 at 13:55 GMT


No workaround available, other than disabling all the authentication.

@landonreed
Copy link
Contributor Author

Comment by landonreed
Tuesday Nov 13, 2018 at 17:57 GMT


The tokeninfo request has been removed in favor of the correct way to verify the token and retrieving the user profile from the token provided by the requesting client.

@landonreed
Copy link
Contributor Author

🎉 This issue has been resolved in version 3.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant