Add a flag to enable Persona support
It's disabled by default. To enable, add the following to hydra.conf: enable_persona = 1
This commit is contained in:
@@ -48,6 +48,8 @@ sub persona_login :Path('/persona-login') Args(0) {
|
||||
my ($self, $c) = @_;
|
||||
requirePost($c);
|
||||
|
||||
error($c, "Persona support is not enabled.") unless $c->stash->{personaEnabled};
|
||||
|
||||
my $assertion = $c->req->params->{assertion} or die;
|
||||
|
||||
my $ua = new LWP::UserAgent;
|
||||
|
Reference in New Issue
Block a user