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

Github OAuth Authorization callback URL? #32

Open
Optinux opened this issue Jun 22, 2022 · 5 comments
Open

Github OAuth Authorization callback URL? #32

Optinux opened this issue Jun 22, 2022 · 5 comments

Comments

@Optinux
Copy link

Optinux commented Jun 22, 2022

What is Authorization callback URL that im supposed to use?
Not to be rude, but the current README is kinda lacking when it comes to selfhosting...

@Optinux
Copy link
Author

Optinux commented Jun 22, 2022

speaking of which, how exactly am I supposed to edit the config as described in in the README? The location of a config is not specified and just editing the docker-compose with the new values doesnt work.

@JulianFun123
Copy link
Member

The callback URL should be something like https://{SERVER_NAME}/api/v2/auth/oauth2/github/callback

@Optinux
Copy link
Author

Optinux commented Jun 22, 2022

Thank You for the response.

Tho weirdly while I am recieveing a callback code like shown in A.), Im at the same time also getting the error shown in B.) back in my Browser! Any idea as to what could be the cause for this?
A.) .../api/v2/auth/oauth2/github/callback?code=1337hbb187tc420jeb69
B.) {"success":false,"exception":"java.lang.NullPointerException","error":true,"exists":false}

@JulianFun123
Copy link
Member

Can you send me the logs? There should be an exception

@Optinux
Copy link
Author

Optinux commented Jun 20, 2023

Sorry for responding a year later but I haven't really gotten around getting Pastefy fixed. Even on the latest version and having created a new OAuth application, the same error still appears. Here's the log:

	at de.interaapps.pastefy.auth.OAuth2Callback.handle(OAuth2Callback.java:21)
	at org.javawebstack.passport.strategies.oauth2.OAuth2Strategy.lambda$null$1(OAuth2Strategy.java:35)
	at org.javawebstack.httpserver.HTTPServer.execute(HTTPServer.java:339)
	at org.javawebstack.httpserver.HTTPServer$HttpHandler.handle(HTTPServer.java:415)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:516)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
	at java.lang.Thread.run(Thread.java:750)
Exception in thread "Timer-0" org.javawebstack.orm.exception.ORMQueryException: Communications link failure
The last packet successfully received from the server was 27,228 milliseconds ago. The last packet sent successfully to the server was 27,229 milliseconds ago.
	at org.javawebstack.orm.query.Query.finalDelete(Query.java:369)
	at org.javawebstack.orm.query.Query.delete(Query.java:375)
	at de.interaapps.pastefy.Pastefy$2.run(Pastefy.java:296)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)

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