Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIP RENATER
switch-wayf
Commits
b7d99ad0
Commit
b7d99ad0
authored
Dec 13, 2010
by
haemmer
Browse files
Added copyright notice to all files
Fixed #407
parent
ad118607
Changes
15
Hide whitespace changes
Inline
Side-by-side
IDProvider.conf.dist.php
View file @
b7d99ad0
<?php
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
// WAYF Identity Provider Configuration file
// Find below some example entries of Identity Providers, categories and
...
...
README
View file @
b7d99ad0
SWITCH WAYF
Copyright 2010 SWITCH - Serving Swiss Universities.
See LICENSE file for details.
-------------------------------------------------------------------------------
Copyright 2010 SWITCH - Serving Swiss Universities
SWITCH WAYF
Contact: aai@switch.ch or go to http://www.switch.ch/aai/wayf
Version: See head of file 'WAYF' in the same directory
Project web site: https://forge.switch.ch/redmine/projects/wayf
...
...
@@ -18,7 +20,7 @@ The Discovery Service protocol as defined in
http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-idp-discovery.pdf
states that the protocol creates opportunities for phishing attacks as do all
SSO protocols that make use of redirection. The specification states that an
implementation
should
examine the 'return' parameter used in a Discovery
implementation
"SHOULD"
examine the 'return' parameter used in a Discovery
Service request and match it against the <idpdisc:DiscoveryResponse>
extension in SAML metadata. The implementation of the Discovery Service protocol
in the SWITCHwayf prior to version 1.14 does NOT verify the return parameter
...
...
@@ -342,6 +344,7 @@ For category entries, only Type, (local) Name and Index are relevant.
-------------------------------------------------------------------------------
Version History:
X.Y.Z - Added proper copyright statements to all source code files
1.14.1 - Corrected behaviour of $enableDSReturnParamCheck and
$useACURLsForReturnParamCheck. There won't be an error anymore if an SP
has no <idpdisc:DiscoveryResponse> extension defined. In such a case
...
...
WAYF
View file @
b7d99ad0
<?php
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
/*
******************************************************************************
SWITCH PHP WAYF,
Copyright 2009 SWITCH - Serving Swiss Universities
SWITCHwayf
Version: 1.14.1
Contact: aai@switch.ch
Web site: http://www.switch.ch/aai/wayf
...
...
config.dist.php
View file @
b7d99ad0
<?php
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
//******************************************************************************
// This file contains the WAYF/DS configuration. Adapt the settings to reflect
// your environment and then do some testing before deploying the WAYF.
...
...
default-body.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!--
Identity
Provider
Selection
:
Start
-->
<
h1
><?
php
echo
getLocalString
(
'header'
);
?>
</h1>
<p
class=
"switchaai"
>
...
...
default-embedded-wayf.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!--
EMBEDDED
-
WAYF
-
START
-->
<
script
type
=
"text/javascript"
><!--
// To use this JavaScript, please access:
...
...
default-error.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!--
Error
Message
:
Start
-->
<
h2
><?
php
echo
getLocalString
(
'invalid_query'
)
?>
</h2>
<p>
...
...
default-footer.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!--
Body
:
End
-->
</
td
>
</
tr
>
...
...
default-header.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!
DOCTYPE
HTML
PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
>
<
html
>
<
head
>
...
...
default-notice.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!--
Identity
Provider
Permanent
Note
:
Start
-->
<
h1
><?
php
echo
getLocalString
(
'settings'
);
?>
</h1>
<script
language=
"JavaScript"
type=
"text/javascript"
>
...
...
default-settings.php
View file @
b7d99ad0
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities ?>
<!--
Identity
Provider
Permanent
Settings
:
Start
-->
<
h1
><?
php
echo
getLocalString
(
'permanent_select_header'
)
?>
</h1>
<p
class=
"switchaai"
>
...
...
functions.php
View file @
b7d99ad0
<?php
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
/******************************************************************************/
// Commonly used functions for the WAYF
/******************************************************************************/
...
...
languages.php
View file @
b7d99ad0
<?php
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
// WAYF localized language strings
// Make sure to use entities instead of plain UTF-8 characters for
// Make sure to use
HTML
entities instead of plain UTF-8 characters for
// non-ASCII characters if you are using the Embedded WAYF. It could be that the
// Embedded WAYF is used on non-UTF8 web pages, which then could cause
// encoding issues
...
...
readMetadata.php
View file @
b7d99ad0
<?php
/*
*
This file is used to dynamically create the list of IdPs to be
*
displayed for the WAYF/DS service based on the federation metadata.
*
Configuration parameters are specified in config.php.
*/
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
//
This file is used to dynamically create the list of IdPs to be
//
displayed for the WAYF/DS service based on the federation metadata.
//
Configuration parameters are specified in config.php.
// Make sure this script is not accessed directly
if
(
isRunViaCLI
()){
...
...
templates.php
View file @
b7d99ad0
<?php
<?php
// Copyright (c) 2010, SWITCH - Serving Swiss Universities
/*
******************************************************************************
This file contains the some functions that render HTML code.
...
...
@@ -331,7 +332,7 @@ function submitForm(){
// Redirect user to SP handler
if (wayf_use_discovery_service){
redirect_url = wayf_sp_samlDSURL + '?entityID='
+ NonFedEntityID
+
encodeURIComponent(
NonFedEntityID
)
+ '&target=' + encodeURIComponent(wayf_return_url);
// Make sure the redirect always is being done in parent window
...
...
@@ -343,7 +344,7 @@ function submitForm(){
} else {
redirect_url = wayf_sp_handlerURL + '?providerId='
+ NonFedEntityID
+
encodeURIComponent(
NonFedEntityID
)
+ '&target=' + encodeURIComponent(wayf_return_url);
// Make sure the redirect always is being done in parent window
...
...
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