OPAR - OPM Package ARchive

Browseable collection of plugins for the popular ticket system software Znuny and ((OTRS)) Community Edition.


RestUserAuth

Version
6.0.3
Other Versions
4.0.1, 5.0.2, 6.0.2,
Uploaded by/on
reneeb on 29 Dec 2021
Framework
6.0.x, 6.1.x, 6.2.x
Links
Download Website
Description
Authenticate User against OTRS and get some information

Rate/comment this package

NAME

RestUserAuth

DESCRIPTION

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,
        },
    );

REPOSITORY AND BUGTRACKER

The code repository and a bugtracker can be found at http://github.com/reneeb/otrs-RestUserAuth.

SUPPORT

If you need further support or any OTRS services, please drop me a line at opar@perl-services.de.

AUTHOR

(c) 2015 Renee Baecker, info@perl-services.de