Browseable collection of plugins for the popular ticket system software Znuny and ((OTRS)) Community Edition.
RestUserAuth
This is an endpoint for the OTRS GenericInterface to authenticate an user. It does not generate a session id like the SessionCreate endpoint, but returns more information about the user when the authentication was successful:
It return a JSON hash that looks like
{
"UserName" : 'My Fullname',
"Groups" : ['my', 'ro', 'and', 'rw', 'groups']
}
This is how a auth request can be done with Mojolicious
my $otrs = 'http://localhost/otrs/nph-genericinterface.pl/Webservice/UserAuth/UserAuth';
my $tx = $ua->get(
$otrs => { Accept => 'application/json' },
form => {
UserLogin => $user,
Password => $password,
},
);
The code repository and a bugtracker can be found at http://github.com/reneeb/otrs-RestUserAuth.
If you need further support or any OTRS services, please drop me a line at opar@perl-services.de.
(c) 2015 Renee Baecker, info@perl-services.de