Skip to content

Commit 2348047

Browse files
committed
remove openid login support
The API no longer supports OpenID login, so remove it from the front end.
1 parent d2ae4db commit 2348047

File tree

5 files changed

+2
-42
lines changed

5 files changed

+2
-42
lines changed

lib/MetaCPAN/Web/Controller/Login.pm

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@ sub index : Chained('login_root') : PathPart('') : Args(0) {
3131
}
3232
}
3333

34-
sub openid : Chained('login_root') : PathPart : Args(0) {
35-
my ( $self, $c ) = @_;
36-
37-
# Never cache at CDN
38-
$c->cdn_never_cache(1);
39-
40-
my $model = $c->model('API::User');
41-
$c->stash( {
42-
consumer_key => $model->consumer_key,
43-
openid_url => $model->openid_url,
44-
} );
45-
}
46-
4734
sub pause : Chained('login_root') : PathPart : Args(0) {
4835
my ( $self, $c ) = @_;
4936

lib/MetaCPAN/Web/Model/API/User.pm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ sub COMPONENT {
2323
return $class->SUPER::COMPONENT( $app, $args );
2424
}
2525

26-
sub openid_url {
27-
my ($self) = @_;
28-
return $self->api_public . '/login/openid';
29-
}
30-
3126
sub oauth_url {
3227
my ($self) = @_;
3328
return $self->api_public . '/oauth2/authorize';

root/account/identities.tx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Identities you are connected to allow you to log into MetaCPAN. MetaCPAN also drags in some information from them to help you with filling in your <a href="/account/profile">profile</a>. This information is not exposed to anyone unless you explicitly publish it.
77
</div>
88
<table width="300">
9-
%% for ['GitHub', 'PAUSE', 'Twitter', 'Google', 'OpenID'] -> $identity {
9+
%% for ['GitHub', 'PAUSE', 'Twitter', 'Google'] -> $identity {
1010
%% my $connected = !!$user.identity[$identity.lc()];
1111
<tr>
1212
<td><big>[% $identity %]</big></td>

root/base.tx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
<b class="caret"></b>
147147
</a>
148148
<ul class="dropdown-menu">
149-
%% for ['GitHub', 'Twitter', 'Google', 'OpenID'] -> $identity {
149+
%% for ['GitHub', 'Twitter', 'Google'] -> $identity {
150150
<li>
151151
<a href="/login/[% $identity.lc() %]">
152152
<i class="fab fa-[% $identity.lc() %] fa-fw"></i>

root/login/openid.tx

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)