mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Separate ldap and mock auth endpoints for potentially increased loadbalancer friendliness.
This commit is contained in:
parent
8a4f424d75
commit
7da3c91289
4 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ module.exports = function(options) {
|
|||
res.render('index')
|
||||
})
|
||||
|
||||
app.post('/api/v1/auth', function(req, res) {
|
||||
app.post('/api/v1/auth/ldap', function(req, res) {
|
||||
var log = logger.createLogger('auth-ldap')
|
||||
log.setLocalIdentifier(req.ip)
|
||||
switch (req.accepts(['json'])) {
|
||||
|
|
|
@ -66,7 +66,7 @@ module.exports = function(options) {
|
|||
res.render('index')
|
||||
})
|
||||
|
||||
app.post('/api/v1/auth', function(req, res) {
|
||||
app.post('/api/v1/auth/mock', function(req, res) {
|
||||
var log = logger.createLogger('auth-mock')
|
||||
log.setLocalIdentifier(req.ip)
|
||||
switch (req.accepts(['json'])) {
|
||||
|
|
|
@ -8,7 +8,7 @@ define(['./module'], function(mod) {
|
|||
, password: $scope.signin.password.$modelValue
|
||||
}
|
||||
$scope.invalid = false
|
||||
$http.post('/api/v1/auth', data)
|
||||
$http.post('/api/v1/auth/ldap', data)
|
||||
.success(function(response) {
|
||||
$scope.error = null
|
||||
location.replace(response.redirect)
|
||||
|
|
|
@ -8,7 +8,7 @@ define(['./module'], function(mod) {
|
|||
, email: $scope.signin.email.$modelValue
|
||||
}
|
||||
$scope.invalid = false
|
||||
$http.post('/api/v1/auth', data)
|
||||
$http.post('/api/v1/auth/mock', data)
|
||||
.success(function(response) {
|
||||
$scope.error = null
|
||||
location.replace(response.redirect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue