Skip to content

Feature request: optional application-wide access token reuse across requests #150

@filiptorphage-mjuk

Description

@filiptorphage-mjuk

Hi,

We have a use case where it would be useful to allow an application to reuse one FileMaker Data API access token across requests, so that separate incoming PHP requests can share the same FileMaker database session instead of creating a new one each time.

If a command fails because the token is no longer valid, the idea would be to discard it, establish a new session, and retry the command once.

This seems like a potentially useful optional feature for applications that use FMDataAPI through a shared service account and do not require per-request session isolation.

Since a FileMaker Data API access token defines the database session itself, I wanted to ask whether this kind of application-wide token reuse and retry logic would be considered in scope for this repository, or whether you would rather see it implemented as a separate wrapper around FMDataAPI.

In our case, we do not use global fields or scripts. Because of that, the main practical concerns seem to be token expiry and how overlapping requests would behave when sharing the same FileMaker database session, rather than session-scoped field or script behavior.

I’m not proposing a specific implementation here — mainly asking whether this kind of optional functionality feels like a fit for the library.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions