Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to implement bearer token refresh?

139 views3 days ago
5
Maya Williamz172 4 days ago 1 Comment

Hi all,

I'm creating a DataMiner protocol that communicates over HTTP. Every GET request to the API requires a bearer token for authentication, and this token must be refreshed every 10 minutes via a POST request to a token endpoint.

What is the recommended way to implement this in a protocol? Specifically:

  • How do I handle the bearer token refresh logic properly?

  • How can I ensure that the new token is automatically used when GET parameters are refetched (e.g., by a polling group)?

I’d appreciate guidance or examples on how others have handled this kind of setup.

Thanks in advance!

Michiel Clepkens [SLC] [DevOps Advocate] Answered question 3 days ago
Maya Williamz commented 4 days ago

The login credentials are in raw json format

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Michiel Clepkens [SLC] [DevOps Advocate]1.31K Posted 3 days ago 0 Comments

Hi Maya

One way to refresh your token is to check the status code and the response for every request in a QAction. You could trigger a new bearer token request if the status code is not 200 OK and the response indicates "token_expired" or something similar. SLProtocol.CheckTrigger(int triggerID) can be used inside the QAction to trigger the new bearer token request (QAction > Trigger > Action (execute) > Group > Session).

Hope this helps you out.

Kind regards

Michiel Clepkens [SLC] [DevOps Advocate] Answered question 3 days ago
You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin