Skip to content
Snippets Groups Projects

Add functionality for an application to have an API

Summary

Adds support for communication between Labrador applications.

Checklist

All items on this checklist should be checked.

  • I have added a changelog entry.
  • I have added tests for the functionality that I added.
  • I adhere to the style guide.

Technical details

The authentication workflow is as follows:

  • App 1 asks core where 'App 2' is located
  • App 1 sends a request to /api/authenticate on App 2
  • App 2 asks core to see if App 1 is an authenticated Labrador app
  • App 2 generates an API token valid for 1 hour and sends it to App 1
  • App 1 can then communicate with App 2 without help from core until the token expires
Edited by Ruben Backx

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ruben Backx marked this merge request as draft

    marked this merge request as draft

  • mentioned in issue tam#232 (closed)

  • Ruben Backx added 91 commits

    added 91 commits

    Compare with previous version

  • Ruben Backx added 1 commit

    added 1 commit

    • e69d1b04 - Add authentication between labracore apps

    Compare with previous version

  • Ruben Backx marked this merge request as ready

    marked this merge request as ready

  • Ruben Backx added 1 commit

    added 1 commit

    • 77e4b3a8 - Add authentication between labracore apps

    Compare with previous version

  • Ruben Backx resolved all threads

    resolved all threads

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading