mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-05 07:37:40 +00:00
use new auth flow
talking directly to Authorization Server and Resource Server instead of web frontend
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user