Skip to content

nethcti-middleware: Phone Island API key lacks subtype support #7694

@edospadoni

Description

@edospadoni

Problem

The Phone Island API key storage does not support different client types (web vs nethlink), causing session conflicts when users authenticate from multiple clients.

Steps to reproduce

  1. Login to nethvoice-cti web interface and generate new integration token (under Settings->Integrations)
  2. Use it in a external application and try to make a call (you can clone phone-island project and run npm run dev then use the integration token)
  3. Login to nethlink desktop application
  4. Go back in the external application and the authentication fails with wrong token error

Root cause

The middleware stores only one phone_island_api_key.json file per user, without distinguishing between client subtypes. Each new login overwrites the previous token, invalidating the other client's session.

Component

nethcti-middleware

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethlinkThe issue is related to NethLink (NethVoice Desktop client)nethvoiceBug or features releted to the NethVoice projectnethvoice-ctiThe issue is related to NethLink (NethVoice Web client)

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions