Project

General

Profile

Actions

Feature #1233

closed

API: External Authentication

Added by Bernhard Koschiček-Krombholz over 5 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2020-05-10
Estimated time:

Description

External Authentication will be needed for projects who want a frontend without exposing all data (no public API).
For implementing an API authentication method see: Whitepaper, authentication-with-flask

To consider: webclients will request data so we can't e.g. just block IPs or similar.

Adaptations:
  • Check if tokens can be copied if transferred via a web request
  • Token generation
    • Only for admins (at least for now)
    • Move form to admin area
    • Table select for user_id
    • Save current user in an additional table field (e.g. creator_user_id or similar )
    • Change token input field
      • Remove from insert
      • Show in grey text area after creation but keep the handy copy button
  • Token list view
    • Add delete column (with JavaScript confirm)
    • Add creator column
    • Sort and mark active tokens that are:
      • User has to exist and be active
      • Valid to date has to be in future
      • Not revoked
  • Expiration date should be a number, 0 = no expiration
  • Column with information if token is useable (green) or not (red). Should be sortable
  • Button with delete invalid tokens
  • manual
  • tests

Related issues 1 (0 open1 closed)

Related to OpenAtlas - Feature #1377: API: IP restrictionsClosedAlexander Watzinger2020-10-03Actions
Actions

Also available in: Atom PDF