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 #102

Closed
skinkie opened this issue Jul 10, 2018 · 5 comments
Closed

Auth0 tokeninfo is not available for new users #102

skinkie opened this issue Jul 10, 2018 · 5 comments

Comments

@skinkie
Copy link

skinkie commented Jul 10, 2018

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]
@abyrd
Copy link

abyrd commented Jul 11, 2018

@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.

@skinkie
Copy link
Author

skinkie commented Jul 11, 2018

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
Member

@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.

@skinkie
Copy link
Author

skinkie commented Jul 18, 2018

No workaround available, other than disabling all the authentication.

@landonreed
Copy link
Member

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.

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

3 participants