use of com.microsoft.azuretools.ijidea.ui.SignInWindow in project azure-tools-for-java by Microsoft.
the class AzureSignInAction method doSignIn.
public static boolean doSignIn(AuthMethodManager authMethodManager, Project project) throws Exception {
boolean isSignIn = authMethodManager.isSignedIn();
if (isSignIn)
return true;
SignInWindow w = SignInWindow.go(authMethodManager.getAuthMethodDetails(), project);
if (w != null) {
AuthMethodDetails authMethodDetailsUpdated = w.getAuthMethodDetails();
authMethodManager.setAuthMethodDetails(authMethodDetailsUpdated);
SelectSubscriptionsAction.onShowSubscriptions(project);
authMethodManager.notifySignInEventListener();
}
return authMethodManager.isSignedIn();
}
Aggregations