mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 06:36:56 +07:00
support client metadata for JBA logins (IJPL-35546)
(cherry picked from commit c7227a25688b59e34b58b10f7c1513ef3c03c060) IJ-CR-147850 GitOrigin-RevId: dd21d1f6cbb381af76f3941ad630d17a8806491c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9c3b0f4bbd
commit
106f8d8d51
@@ -15,6 +15,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.time.Instant;
|
||||
import java.util.EventListener;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.function.Consumer;
|
||||
@@ -94,7 +95,14 @@ public interface JBAccountInfoService {
|
||||
/**
|
||||
* Starts the auth flow by opening the browser and waiting for the user to proceed with logging in.
|
||||
*/
|
||||
@NotNull LoginSession startLoginSession(@NotNull LoginMode loginMode);
|
||||
default @NotNull LoginSession startLoginSession(@NotNull LoginMode loginMode) {
|
||||
return startLoginSession(loginMode, Map.of());
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts the auth flow by opening the browser and waiting for the user to proceed with logging in.
|
||||
*/
|
||||
@NotNull LoginSession startLoginSession(@NotNull LoginMode loginMode, @NotNull Map<@NotNull String, @NotNull String> clientMetadata);
|
||||
|
||||
/**
|
||||
* Returns the list of licenses available in the current user's account matching the specified productCode.
|
||||
|
||||
@@ -21,7 +21,7 @@ object DummyJBAccountInfoService : JBAccountInfoService {
|
||||
return _idToken
|
||||
}
|
||||
|
||||
override fun startLoginSession(loginMode: JBAccountInfoService.LoginMode): JBAccountInfoService.LoginSession {
|
||||
override fun startLoginSession(loginMode: JBAccountInfoService.LoginMode, clientMetadata: Map<String, String>): JBAccountInfoService.LoginSession {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user