srv/core/AuthenticationService.js
function (authenticationRequest) {

            var authenticationProviders = this.$providers,
                provider;

            for (var i = 0; i < authenticationProviders.length; i++) {

                provider = authenticationProviders[i];

                if (provider.isResponsibleForAuthenticationRequest(authenticationRequest)) {
                    return provider;
                }
            }

            return null;

        }
function (authenticationRequest) {

            var authenticationProviders = this.$providers,
                provider;

            for (var i = 0; i < authenticationProviders.length; i++) {

                provider = authenticationProviders[i];

                if (provider.isResponsibleForAuthenticationRequest(authenticationRequest)) {
                    return provider;
                }
            }

            return null;

        }
function ( authenticationRequest ) { var authenticationProviders = this . $providers , provider ; for ( var i = 0 ; i < authenticationProviders . length ; i ++ ) { provider = authenticationProviders [ i ] ; if ( provider . isResponsibleForAuthenticationRequest ( authenticationRequest ) ) { return provider ; } } return null ; }
Returns the authentication provider for a given request

@param authenticationRequest
@returns {*}
Returns the authentication provider for a given request