Base solution for your next web application
Open Closed

OpenID Connect and Login Delays #11903


User avatar
0
maharatha created

We are using Angular and .Net core latest version.

We are using Okta as our Login Provider for OpenID connect and we are able to successfully use it as well.

When the authentication is complete we get redirected to the Login page, and the login page is displayed for 2-3 seconds to the user before it logins to the system. This is creating confusion as people are thinking nothing happened let me try again.

How do we block the UI while the authentication is being verified in the back ground.

We tried adding start and stop spinner at NgInit level and that didn't help.

We also added here :  
 externalLogin(provider: ExternalLoginProvider) {
        this.showMainSpinner();
        if (this.loginService.authenticateModel.userNameOrEmailAddress) {
            this.loginService.externalAuthenticate(provider);
        }
        this.hideMainSpinner();
    }

Please help us to block the UI before the user is able to login to the application


3 Answer(s)