Search in sources :

Example 1 with SignInWindow

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();
}
Also used : AuthMethodDetails(com.microsoft.azuretools.authmanage.models.AuthMethodDetails) SignInWindow(com.microsoft.azuretools.ijidea.ui.SignInWindow)

Aggregations

AuthMethodDetails (com.microsoft.azuretools.authmanage.models.AuthMethodDetails)1 SignInWindow (com.microsoft.azuretools.ijidea.ui.SignInWindow)1