Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IA2
RAP
Commits
833dcac7
Commit
833dcac7
authored
4 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Added JSON error response; removed beta version logo
parent
401641ea
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
config-example.yaml
+1
-1
1 addition, 1 deletion
config-example.yaml
include/header.php
+0
-3
0 additions, 3 deletions
include/header.php
index.php
+17
-6
17 additions, 6 deletions
index.php
with
18 additions
and
10 deletions
config-example.yaml
+
1
−
1
View file @
833dcac7
...
@@ -64,7 +64,7 @@ clients:
...
@@ -64,7 +64,7 @@ clients:
id
:
aao-dev
id
:
aao-dev
secret
:
2a97516c354b68848cdbd8f54a226a0a55b21ed138e207ad6c5cbb9c00aa5aea
secret
:
2a97516c354b68848cdbd8f54a226a0a55b21ed138e207ad6c5cbb9c00aa5aea
redirect
:
http://localhost:8081/aao/login
redirect
:
http://localhost:8081/aao/login
scope
:
"
openid
read:userspace
write:userspace
read:fileserver
write:fileserver
read:gms"
scope
:
"
openid
read:userspace
write:userspace
read:fileserver
write:fileserver
read:gms
read:rap
"
home
:
http://localhost:8081/aao
home
:
http://localhost:8081/aao
icon
:
asiago.gif
icon
:
asiago.gif
showInHome
:
true
showInHome
:
true
...
...
This diff is collapsed.
Click to expand it.
include/header.php
+
0
−
3
View file @
833dcac7
...
@@ -18,9 +18,6 @@
...
@@ -18,9 +18,6 @@
<div
class=
"page-title-wrapper"
>
<div
class=
"page-title-wrapper"
>
<h1
class=
"text-center"
>
<h1
class=
"text-center"
>
<a
href=
"
<?php
echo
$contextRoot
;
?>
/"
>
Remote Authentication Portal
</a>
<a
href=
"
<?php
echo
$contextRoot
;
?>
/"
>
Remote Authentication Portal
</a>
<span
class=
"circle-wrapper"
>
<div
class=
"circle"
>
beta
<br/>
version!
</div>
</span>
</h1>
</h1>
</div>
</div>
</header>
</header>
...
...
This diff is collapsed.
Click to expand it.
index.php
+
17
−
6
View file @
833dcac7
...
@@ -52,12 +52,23 @@ Flight::map('error', function($ex) {
...
@@ -52,12 +52,23 @@ Flight::map('error', function($ex) {
}
}
}
}
$headers
=
apache_request_headers
();
$useJson
=
false
;
if
(
array_key_exists
(
'Accept'
,
$headers
))
{
$accept
=
$headers
[
'Accept'
];
$useJson
=
(
$accept
===
'application/json'
||
$accept
===
'text/json'
);
}
if
(
$useJson
)
{
echo
json_encode
([
"error"
=>
$message
]);
}
else
{
global
$locator
;
global
$locator
;
Flight
::
render
(
'error.php'
,
array
(
'title'
=>
'Error'
,
Flight
::
render
(
'error.php'
,
array
(
'title'
=>
'Error'
,
'version'
=>
$locator
->
getVersion
(),
'error'
=>
$message
,
'version'
=>
$locator
->
getVersion
(),
'error'
=>
$message
,
'contactEmail'
=>
isset
(
$locator
->
config
->
contactEmail
)
?
$locator
->
config
->
contactEmail
:
null
,
'contactEmail'
=>
isset
(
$locator
->
config
->
contactEmail
)
?
$locator
->
config
->
contactEmail
:
null
,
'contactLabel'
=>
isset
(
$locator
->
config
->
contactLabel
)
?
$locator
->
config
->
contactLabel
:
null
,
'contactLabel'
=>
isset
(
$locator
->
config
->
contactLabel
)
?
$locator
->
config
->
contactLabel
:
null
,
'contextRoot'
=>
$locator
->
config
->
contextRoot
));
'contextRoot'
=>
$locator
->
config
->
contextRoot
));
}
});
});
// Starting Flight framework
// Starting Flight framework
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment