detect REST call in plugin

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
dcburleigh
Posts: 4
Joined: 28 Nov 2016, 00:14

detect REST call in plugin

Post by dcburleigh »

Is there a way for a plugin to determine if Mantis is being accessed via a REST API call vs. the web UI?

I'm using the Basic_Auth plugin, which fails if the api is called, because the REMOTE_USER is not set.
Post Reply