Add hook for client credentials (#2484)

2620-ppolicy-binding
Maxime Besson 4 years ago
parent 2c4d615c2f
commit 44abc1e889
  1. 4
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/OpenIDConnect.pm

@ -1087,6 +1087,10 @@ sub _handleClientCredentialsGrant {
_utime => time,
};
my $h = $self->p->processHook( $req, 'oidcGotClientCredentialsGrant',
$infos, $rp );
return $self->sendOIDCError( $req, 'server_error', 500 ) if ( $h != PE_OK );
# Run rule against session info
if ( my $rule = $self->spRules->{$rp} ) {
unless ( $rule->( $req, $infos ) ) {

Loading…
Cancel
Save