Ad Widget

Collapse

Web monitoring add bearer token auth header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raigo
    Junior Member
    • Jul 2017
    • 1

    #1

    Web monitoring add bearer token auth header

    I need to monitor REST API which requires authentication.
    I know that in web monitoring I can add headers. but how to change the header
    dynamically (add bearer token)?

    How to configure Zabbix web monitoring in two steps
    1)It asks for OAuth 2.0 token from token service (IdentityServer)
    2)Adds that token as Authorization header
  • valten
    Junior Member
    • Mar 2020
    • 6

    #2
    raigo
    I have exact same problem.I can't change my access token dynamically. Did you find any solution?

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      valten , did you read the Web monitoring chapter of the Zabbix documentation, including the "real world example"? It gives some ideas how to use a regex to dynamically capture a token from one step in the process and then submit that token for later steps, either in the headers or as part of the POST data.

      Comment

      • valten
        Junior Member
        • Mar 2020
        • 6

        #4
        Originally posted by tim.mooney
        valten , did you read the Web monitoring chapter of the Zabbix documentation, including the "real world example"? It gives some ideas how to use a regex to dynamically capture a token from one step in the process and then submit that token for later steps, either in the headers or as part of the POST data.
        Yes, thanks, I've been able to achieve my goal with autorization.
        Now I can't get response body from Web monitoring. Can't find any info on that on this forum.

        Comment

        Working...