Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Doorcode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guardians of the Kretschmar Elock System
Doorcode
Commits
0ab32134
Commit
0ab32134
authored
Jun 03, 2020
by
Jacob Priddy
👌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return a 400 on a invalid saml user
parent
4a910771
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/backend/app/Http/Controllers/AuthController.php
src/backend/app/Http/Controllers/AuthController.php
+3
-2
No files found.
src/backend/app/Http/Controllers/AuthController.php
View file @
0ab32134
...
...
@@ -88,7 +88,7 @@ class AuthController extends ApiController
/**
* Handle SAML login
*
* This API is only meant to be used by SAML after a login.
* This API is only meant to be used by SAML after a
return from a
login.
*
* @param AuthenticateUseCase $authenticateUseCase
* @return mixed
...
...
@@ -102,8 +102,9 @@ class AuthController extends ApiController
try
{
$authenticateUseCase
->
handleSamlLogin
(
$presenter
);
}
catch
(
UserCreationException
$e
)
{
$this
->
setStatusCode
(
400
);
return
$this
->
respondWithError
(
'
There was an error authenticating the user. Please contact an
administrator.'
'
Invalid SAML user given. If you believe this is in error, please contact and
administrator.'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment