Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
edugain
eduGAIN Access Check - Account manager
Commits
b5a29857
Commit
b5a29857
authored
6 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
make authentication optional
parent
82e6ed02
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/AccountManager/App.pm
+12
-6
12 additions, 6 deletions
lib/AccountManager/App.pm
templates/web/edugain/home.tt2.html
+1
-1
1 addition, 1 deletion
templates/web/edugain/home.tt2.html
templates/web/renater/home.tt2.html
+1
-1
1 addition, 1 deletion
templates/web/renater/home.tt2.html
with
14 additions
and
8 deletions
lib/AccountManager/App.pm
+
12
−
6
View file @
b5a29857
...
@@ -250,7 +250,8 @@ sub abort {
...
@@ -250,7 +250,8 @@ sub abort {
sub
req_select_federation
{
sub
req_select_federation
{
my
(
$self
,
%args
)
=
@_
;
my
(
$self
,
%args
)
=
@_
;
$self
->
check_authentication
(
action
=>
'
select_federation
');
$self
->
check_authentication
(
action
=>
'
select_federation
')
if
$self
->
{
configuration
}
->
{
app
}
->
{
login_url
};
my
$federations
=
$self
->
{
configuration
}
->
{
federations
}
->
{
list
};
my
$federations
=
$self
->
{
configuration
}
->
{
federations
}
->
{
list
};
my
@federations
=
split
(
/, */
,
$federations
);
my
@federations
=
split
(
/, */
,
$federations
);
...
@@ -278,7 +279,8 @@ sub req_select_federation {
...
@@ -278,7 +279,8 @@ sub req_select_federation {
sub
req_select_sp
{
sub
req_select_sp
{
my
(
$self
,
%args
)
=
@_
;
my
(
$self
,
%args
)
=
@_
;
$self
->
check_authentication
(
action
=>
'
select_sp
');
$self
->
check_authentication
(
action
=>
'
select_sp
')
if
$self
->
{
configuration
}
->
{
app
}
->
{
login_url
};
my
$federation
=
$self
->
{
cgi
}
->
param
('
federation
');
# not mandatory
my
$federation
=
$self
->
{
cgi
}
->
param
('
federation
');
# not mandatory
...
@@ -318,7 +320,8 @@ sub req_select_sp {
...
@@ -318,7 +320,8 @@ sub req_select_sp {
sub
req_select_email
{
sub
req_select_email
{
my
(
$self
,
%args
)
=
@_
;
my
(
$self
,
%args
)
=
@_
;
$self
->
check_authentication
(
action
=>
'
select_email
');
$self
->
check_authentication
(
action
=>
'
select_email
')
if
$self
->
{
configuration
}
->
{
app
}
->
{
login_url
};
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$federation
=
$self
->
{
cgi
}
->
param
('
federation
');
# not mandatory
my
$federation
=
$self
->
{
cgi
}
->
param
('
federation
');
# not mandatory
...
@@ -402,7 +405,8 @@ sub req_select_email {
...
@@ -402,7 +405,8 @@ sub req_select_email {
sub
req_complete_challenge
{
sub
req_complete_challenge
{
my
(
$self
,
%args
)
=
@_
;
my
(
$self
,
%args
)
=
@_
;
$self
->
check_authentication
(
action
=>
'
complete_challenge
');
$self
->
check_authentication
(
action
=>
'
complete_challenge
')
if
$self
->
{
configuration
}
->
{
app
}
->
{
login_url
};
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$email
=
$self
->
get_parameter
(
name
=>
'
email
');
my
$email
=
$self
->
get_parameter
(
name
=>
'
email
');
...
@@ -587,7 +591,8 @@ sub req_complete_challenge {
...
@@ -587,7 +591,8 @@ sub req_complete_challenge {
sub
req_create_accounts
{
sub
req_create_accounts
{
my
(
$self
,
%args
)
=
@_
;
my
(
$self
,
%args
)
=
@_
;
$self
->
check_authentication
(
action
=>
'
create_accounts
');
$self
->
check_authentication
(
action
=>
'
create_accounts
')
if
$self
->
{
configuration
}
->
{
app
}
->
{
login_url
};
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$token
=
$self
->
get_parameter
(
name
=>
'
token
');
my
$token
=
$self
->
get_parameter
(
name
=>
'
token
');
...
@@ -691,7 +696,8 @@ sub req_create_accounts {
...
@@ -691,7 +696,8 @@ sub req_create_accounts {
sub
req_download_accounts
{
sub
req_download_accounts
{
my
(
$self
)
=
@_
;
my
(
$self
)
=
@_
;
$self
->
check_authentication
(
action
=>
'
download_accounts
');
$self
->
check_authentication
(
action
=>
'
download_accounts
')
if
$self
->
{
configuration
}
->
{
app
}
->
{
login_url
};
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$entityid
=
$self
->
get_parameter
(
name
=>
'
entityid
');
my
$token
=
$self
->
get_parameter
(
name
=>
'
token
');
my
$token
=
$self
->
get_parameter
(
name
=>
'
token
');
...
...
This diff is collapsed.
Click to expand it.
templates/web/edugain/home.tt2.html
+
1
−
1
View file @
b5a29857
...
@@ -9,6 +9,6 @@
...
@@ -9,6 +9,6 @@
<h2>
[% lh.maketext("Get started") %]
</h2>
<h2>
[% lh.maketext("Get started") %]
</h2>
<p>
[% lh.maketext("To start testing your own services, start by selecting one your are administrator for.") %]
</p>
<p>
[% lh.maketext("To start testing your own services, start by selecting one your are administrator for.") %]
</p>
<p
class=
"text-center"
><a
href=
"[% app.login_url %]?target=[% app.url %]%3Faction%3Dselect_federation"
class=
"button"
>
[% lh.maketext("Get started") %]
</a></p>
<p
class=
"text-center"
><a
href=
"[%
IF app.login_url %][%
app.login_url %]?target=[% app.url %]%3Faction%3Dselect_federation
[% ELSE %][% app.url %]?action=select_federation[% END %]
"
class=
"button"
>
[% lh.maketext("Get started") %]
</a></p>
[% END %]
[% END %]
This diff is collapsed.
Click to expand it.
templates/web/renater/home.tt2.html
+
1
−
1
View file @
b5a29857
...
@@ -9,6 +9,6 @@
...
@@ -9,6 +9,6 @@
<h2>
[% lh.maketext("Get started") %]
</h2>
<h2>
[% lh.maketext("Get started") %]
</h2>
<p>
[% lh.maketext("To start testing your own services, start by selecting one your are administrator for.") %]
</p>
<p>
[% lh.maketext("To start testing your own services, start by selecting one your are administrator for.") %]
</p>
<p
class=
"text-center"
><a
href=
"[% app.login_url %]?target=[% app.url %]%3Faction%3Dselect_federation"
class=
"button"
>
[% lh.maketext("Get started") %]
</a></p>
<p
class=
"text-center"
><a
href=
"[%
IF app.login_url %][%
app.login_url %]?target=[% app.url %]%3Faction%3Dselect_federation
[% ELSE %][% app.url %]?action=select_federation[% END %]
"
class=
"button"
>
[% lh.maketext("Get started") %]
</a></p>
[% END %]
[% END %]
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