use new auth flow

talking directly to Authorization Server and Resource Server instead of web frontend
This commit is contained in:
Sebastian Stenzel
2021-08-12 16:18:22 +02:00
parent 75644a35ec
commit a3a96496b6
19 changed files with 428 additions and 309 deletions
@@ -1,23 +0,0 @@
package org.cryptomator.ui.keyloading.hub;
public class AuthReceiverTest {
static {
System.setProperty("LOGLEVEL", "INFO");
}
public static void main(String[] args) {
try (var receiver = AuthReceiver.start()) {
System.out.println("Waiting on " + receiver.getRedirectURL());
var token = receiver.receive();
System.out.println("SUCCESS: " + token);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
System.out.println("CANCELLED");
} catch (Exception e) {
System.out.println("ERROR");
e.printStackTrace();
}
}
}