Fixes #306 - Adds support for Dex as an OAuth external login provider - Adds support for OIDC in general - Extract out external logins on the JS side into a service - Add a feature flag for disabling direct login - Add support for directing to the single external login service - Does *not* yet support the config in the superuser tool
19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
(function() {
|
|
/**
|
|
* Sign in page.
|
|
*/
|
|
angular.module('quayPages').config(['pages', function(pages) {
|
|
pages.create('signin', 'signin.html', SignInCtrl, {
|
|
'title': 'Sign In'
|
|
});
|
|
}]);
|
|
|
|
function SignInCtrl($scope, $location, ExternalLoginService, Features) {
|
|
$scope.redirectUrl = '/';
|
|
|
|
var singleUrl = ExternalLoginService.getSingleSigninUrl();
|
|
if (singleUrl) {
|
|
document.location = singleUrl;
|
|
}
|
|
}
|
|
})();
|