Bailey Feldewerd
10/14/2024, 4:05 PMrtanner
10/14/2024, 4:50 PMBailey Feldewerd
10/14/2024, 4:56 PMprivate void requestCodeGrant(URI authUrl) throws IOException, PKCEException {
if (!Desktop.isDesktopSupported() || !Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
throw new PKCEException(Messages.msg_oauth_browser_not_supported);
}
if (SystemUtils.IS_OS_LINUX) {
Runtime.getRuntime().exec(XDG_OPEN_COMMAND + authUrl);
} else {
Desktop.getDesktop().browse(authUrl);
}
}
Bailey Feldewerd
10/14/2024, 5:27 PM