mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-05 23:57:31 +00:00
Add query to redirection to provide more context in the frontend (#1973)
Co-authored-by: Sebastian Stenzel <sebastian.stenzel@gmail.com>
This commit is contained in:
co-authored by
Sebastian Stenzel
parent
fb580ff79d
commit
921dd8fe67
@@ -6,8 +6,6 @@ import org.junit.jupiter.api.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
public class AuthFlowIntegrationTest {
|
||||
|
||||
static {
|
||||
@@ -23,10 +21,10 @@ public class AuthFlowIntegrationTest {
|
||||
hubConfig.authEndpoint = "http://localhost:8080/auth/realms/cryptomator/protocol/openid-connect/auth";
|
||||
hubConfig.tokenEndpoint = "http://localhost:8080/auth/realms/cryptomator/protocol/openid-connect/token";
|
||||
hubConfig.clientId = "cryptomator-hub";
|
||||
hubConfig.authSuccessUrl = "http://localhost:3000/#/unlock-success";
|
||||
hubConfig.authErrorUrl = "http://localhost:3000/#/unlock-error";
|
||||
hubConfig.authSuccessUrl = "http://localhost:3000/#/unlock-success?vault=vaultId";
|
||||
hubConfig.authErrorUrl = "http://localhost:3000/#/unlock-error?vault=vaultId";
|
||||
|
||||
try (var authFlow = AuthFlow.init(hubConfig)) {
|
||||
try (var authFlow = AuthFlow.init(hubConfig, new AuthFlowContext("deviceId"))) {
|
||||
var token = authFlow.run(uri -> {
|
||||
LOG.info("Visit {} to authenticate", uri);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user