Dashboards & Visualizations

Splunk Mobile Access Server: how to enable token-based authentication

ctux
Path Finder

In the documentation:
http://docs.splunk.com/Documentation/MobileServer/2.0.1/Install/Createasecureauthenticationstring#En...

... I read that I have to set the parameter auth_token_security. But in the config_local.json file that parameter is not present.

I tried to add it, but the server does not start giving me "Error parsing your JSON configuration file", probably because I have not put in properly... 😉

Can anyone give me a hint?

0 Karma
1 Solution

ctux
Path Finder

Ouch... my stupid mistake: I forgot a comma!

{
  "servers": {
    "m": {
...
      },
      "splunkweb": {
...
      }
    }
  },
  "admin": {
...
  },
  "scheme": "https",
  "port": 443,
  "db": {
...
  },
  "session_key": "T1oFnc",
  "cluster_size": 1,
  "initialized": true,
  "auth_token_security": true
}

In any case, the parameter must be set to true, contrary to what reported in the doc.

View solution in original post

0 Karma

ctux
Path Finder

Ouch... my stupid mistake: I forgot a comma!

{
  "servers": {
    "m": {
...
      },
      "splunkweb": {
...
      }
    }
  },
  "admin": {
...
  },
  "scheme": "https",
  "port": 443,
  "db": {
...
  },
  "session_key": "T1oFnc",
  "cluster_size": 1,
  "initialized": true,
  "auth_token_security": true
}

In any case, the parameter must be set to true, contrary to what reported in the doc.

0 Karma

zd00191
Communicator

I made sure that I added the parameter correctly but mine is still not working. My mobile access server is installed on windows. Do you know what might be the problem? All I added was the last line before the final bracket. No I did not forget to add a comma.

0 Karma

ctux
Path Finder

Some log to share?

0 Karma

jrevell_splunk
Splunk Employee
Splunk Employee

Sort of glad the mistake occurred so that I had the opportunity to make the correction in the documentation. Thanks, ctux!

ctux
Path Finder

nice 🙂 yw!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...