JavaFX fails to redirect to OAuth 2 grantHow is OAuth 2 different from OAuth 1?How does OAuth 2 protect against things like replay attacks using the Security Token?What is the purpose of the implicit grant authorization type in OAuth 2?Android Issue with WebView and overriding the urlUsing oauth with node-webkitSign In With Oauth In AndroidLinkedIn OAuth 2.0 Redirect URLRedirect oAuth Post to another domainJavaFX WebView prevent redirectsSalesforce oauth redirects to instance url for login
Where are the Wazirs?
Define functions in a tikzcd diagram
Category-theoretic treatment of diffs, patches and merging?
Why did Robert F. Kennedy loathe Lyndon B. Johnson?
How did the IEC decide to create kibibytes?
What are the effects of abstaining from eating a certain flavor?
Can you create a free-floating MASYU puzzle?
QR codes, do people use them?
Shipped package arrived - didn't order, possible scam?
Was it ever illegal to name a pig "Napoleon" in France?
Attach a visible light telescope to the outside of the ISS
Need a non-volatile memory IC with near unlimited read/write operations capability
How was the website able to tell my credit card was wrong before it processed it?
How to deal with account scam and fraud?
What is the highest level of accuracy in motion control a Victorian society could achieve?
How do ballistic trajectories work in a ring world?
Does anyone have a method of differentiating informative comments from commented out code?
What exactly is a "murder hobo"?
How can I use my cell phone's light as a reading light?
Users forgotting to regenerate PDF before sending it
Computer name naming convention for security
I don't want to be introduced as a "Minority Novelist"
My professor has told me he will be the corresponding author. Will it hurt my future career?
How to understand flavors and when to use combination of them?
JavaFX fails to redirect to OAuth 2 grant
How is OAuth 2 different from OAuth 1?How does OAuth 2 protect against things like replay attacks using the Security Token?What is the purpose of the implicit grant authorization type in OAuth 2?Android Issue with WebView and overriding the urlUsing oauth with node-webkitSign In With Oauth In AndroidLinkedIn OAuth 2.0 Redirect URLRedirect oAuth Post to another domainJavaFX WebView prevent redirectsSalesforce oauth redirects to instance url for login
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In my google chrome browser, the linked URL for the OAuth 2 grant works from this URL: https://temperlesergal.github.io/NuBot/discord/?, However, it will not redirect in WebView, or more accurately, it does redirect, but displays nothing.
I have tried setting up a custom header (but I just typed OAuth grant for NuBot discord bot). I have tired the redirect URL manually loaded through the WebView engine load URL, I have tried the site listed aboce, all to no avail.
JavaScript is enabled. Please keep in mind that discord loads, but as soon as you try to log in, the redirect works, but nothing shows.
public void newUserSignIn(MouseEvent mouseEvent)
newUserPane.setVisible(false);
signInPane.setVisible(true);
discordSignIn.setVisible(true);
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
FadeIn webFade = new FadeIn(discordSignIn);
System.out.print(discordSignIn.getEngine().javaScriptEnabledProperty());
discordSignIn.getEngine().load("https://temperlesergal.github.io/NuBot/discord/index.html");
webFade.play();
Expected results: Discord OAuth 2 grant redirect link to work and appear in WebView so that user can accept authorization request.
To give a better idea, here is a comparison with the same URL in a web browser vs webview:
https://gyazo.com/51772bab01b8f8031e76fc80367cc925
javafx oauth-2.0 url-redirection discord javafx-webview
add a comment |
In my google chrome browser, the linked URL for the OAuth 2 grant works from this URL: https://temperlesergal.github.io/NuBot/discord/?, However, it will not redirect in WebView, or more accurately, it does redirect, but displays nothing.
I have tried setting up a custom header (but I just typed OAuth grant for NuBot discord bot). I have tired the redirect URL manually loaded through the WebView engine load URL, I have tried the site listed aboce, all to no avail.
JavaScript is enabled. Please keep in mind that discord loads, but as soon as you try to log in, the redirect works, but nothing shows.
public void newUserSignIn(MouseEvent mouseEvent)
newUserPane.setVisible(false);
signInPane.setVisible(true);
discordSignIn.setVisible(true);
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
FadeIn webFade = new FadeIn(discordSignIn);
System.out.print(discordSignIn.getEngine().javaScriptEnabledProperty());
discordSignIn.getEngine().load("https://temperlesergal.github.io/NuBot/discord/index.html");
webFade.play();
Expected results: Discord OAuth 2 grant redirect link to work and appear in WebView so that user can accept authorization request.
To give a better idea, here is a comparison with the same URL in a web browser vs webview:
https://gyazo.com/51772bab01b8f8031e76fc80367cc925
javafx oauth-2.0 url-redirection discord javafx-webview
WebView works for just about everything, but discord... why? gyazo.com/afcd88d665b2c2665920f12352235483
– Corbin
Mar 25 at 23:03
add a comment |
In my google chrome browser, the linked URL for the OAuth 2 grant works from this URL: https://temperlesergal.github.io/NuBot/discord/?, However, it will not redirect in WebView, or more accurately, it does redirect, but displays nothing.
I have tried setting up a custom header (but I just typed OAuth grant for NuBot discord bot). I have tired the redirect URL manually loaded through the WebView engine load URL, I have tried the site listed aboce, all to no avail.
JavaScript is enabled. Please keep in mind that discord loads, but as soon as you try to log in, the redirect works, but nothing shows.
public void newUserSignIn(MouseEvent mouseEvent)
newUserPane.setVisible(false);
signInPane.setVisible(true);
discordSignIn.setVisible(true);
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
FadeIn webFade = new FadeIn(discordSignIn);
System.out.print(discordSignIn.getEngine().javaScriptEnabledProperty());
discordSignIn.getEngine().load("https://temperlesergal.github.io/NuBot/discord/index.html");
webFade.play();
Expected results: Discord OAuth 2 grant redirect link to work and appear in WebView so that user can accept authorization request.
To give a better idea, here is a comparison with the same URL in a web browser vs webview:
https://gyazo.com/51772bab01b8f8031e76fc80367cc925
javafx oauth-2.0 url-redirection discord javafx-webview
In my google chrome browser, the linked URL for the OAuth 2 grant works from this URL: https://temperlesergal.github.io/NuBot/discord/?, However, it will not redirect in WebView, or more accurately, it does redirect, but displays nothing.
I have tried setting up a custom header (but I just typed OAuth grant for NuBot discord bot). I have tired the redirect URL manually loaded through the WebView engine load URL, I have tried the site listed aboce, all to no avail.
JavaScript is enabled. Please keep in mind that discord loads, but as soon as you try to log in, the redirect works, but nothing shows.
public void newUserSignIn(MouseEvent mouseEvent)
newUserPane.setVisible(false);
signInPane.setVisible(true);
discordSignIn.setVisible(true);
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
FadeIn webFade = new FadeIn(discordSignIn);
System.out.print(discordSignIn.getEngine().javaScriptEnabledProperty());
discordSignIn.getEngine().load("https://temperlesergal.github.io/NuBot/discord/index.html");
webFade.play();
Expected results: Discord OAuth 2 grant redirect link to work and appear in WebView so that user can accept authorization request.
To give a better idea, here is a comparison with the same URL in a web browser vs webview:
https://gyazo.com/51772bab01b8f8031e76fc80367cc925
javafx oauth-2.0 url-redirection discord javafx-webview
javafx oauth-2.0 url-redirection discord javafx-webview
edited Mar 25 at 21:49
Corbin
asked Mar 25 at 21:31
CorbinCorbin
123 bronze badges
123 bronze badges
WebView works for just about everything, but discord... why? gyazo.com/afcd88d665b2c2665920f12352235483
– Corbin
Mar 25 at 23:03
add a comment |
WebView works for just about everything, but discord... why? gyazo.com/afcd88d665b2c2665920f12352235483
– Corbin
Mar 25 at 23:03
WebView works for just about everything, but discord... why? gyazo.com/afcd88d665b2c2665920f12352235483
– Corbin
Mar 25 at 23:03
WebView works for just about everything, but discord... why? gyazo.com/afcd88d665b2c2665920f12352235483
– Corbin
Mar 25 at 23:03
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346710%2fjavafx-fails-to-redirect-to-oauth-2-grant%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346710%2fjavafx-fails-to-redirect-to-oauth-2-grant%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
WebView works for just about everything, but discord... why? gyazo.com/afcd88d665b2c2665920f12352235483
– Corbin
Mar 25 at 23:03