Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
GIP RENATER
switch-wayf
Commits
9d09b9e4
Commit
9d09b9e4
authored
Aug 24, 2011
by
haemmer
Browse files
Changed default background color and border color to match the harmos colors of the standalone WAYF
parent
22bbd60a
Changes
3
Hide whitespace changes
Inline
Side-by-side
default-embedded-wayf.php
View file @
9d09b9e4
...
...
@@ -78,12 +78,12 @@ var wayf_font_size = 12;
var
wayf_font_color
=
'#000000'
;
// Border color
// [Optional, default: #
00247D
]
var
wayf_border_color
=
'#
00247D
'
;
// [Optional, default: #
969696
]
var
wayf_border_color
=
'#
969696
'
;
// Background color
// [Optional, default: #F
4F7F7
]
var
wayf_background_color
=
'#F
4F7F7
'
;
// [Optional, default: #F
0F0F0
]
var
wayf_background_color
=
'#F
0F0F0
'
;
// Whether to automatically log in user if he has a session/permanent redirect
// cookie set at central wayf
...
...
readMetadata.php
View file @
9d09b9e4
...
...
@@ -306,12 +306,15 @@ function processIDPRoleDescriptor($IDPRoleDescriptorNode){
foreach
(
$SSOServices
as
$SSOService
){
if
(
$SSOService
->
getAttribute
(
'Binding'
)
==
'urn:mace:shibboleth:1.0:profiles:AuthnRequest'
){
$IDP
[
'SSO'
]
=
$SSOService
->
getAttribute
(
'Location'
);
break
;
}
else
if
(
$SSOService
->
getAttribute
(
'Binding'
)
==
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'
){
$IDP
[
'SSO'
]
=
$SSOService
->
getAttribute
(
'Location'
);
break
;
}
}
// Set a default value for backward compatibility
if
(
!
isset
(
$IDP
[
'SSO'
])){
$IDP
[
'SSO'
]
=
'https://no.saml1.sso.url.defined.com/error'
;
$IDP
[
'SSO'
]
=
'https://no.saml1.
or.saml2.
sso.url.defined.com/error'
;
}
// First get MDUI name
...
...
@@ -492,7 +495,6 @@ function getMDUIDisplayNames($RoleDescriptorNode){
$Entity
=
Array
();
$MDUIDisplayNames
=
$RoleDescriptorNode
->
getElementsByTagNameNS
(
'urn:oasis:names:tc:SAML:metadata:ui'
,
'DisplayName'
);
echo
$MDUIDisplayNames
->
length
.
"
\n
"
;
foreach
(
$MDUIDisplayNames
as
$MDUIDisplayName
){
$lang
=
$MDUIDisplayName
->
getAttributeNodeNS
(
'http://www.w3.org/XML/1998/namespace'
,
'lang'
)
->
nodeValue
;
$Entity
[
$lang
]
=
$MDUIDisplayName
->
nodeValue
;
...
...
templates.php
View file @
9d09b9e4
...
...
@@ -644,11 +644,11 @@ function decodeBase64(input) {
}
if(typeof(wayf_border_color) == "undefined"){
wayf_border_color = '#
00247D
';
wayf_border_color = '#
969696
';
}
if(typeof(wayf_background_color) == "undefined"){
wayf_background_color = '#F
4F7F7
';
wayf_background_color = '#F
0F0F0
';
}
if(
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment