Identify user at own api

Hi,

  • What Grafana version and what operating system are you using?
    10.3.1
    Ubuntu 20.04.06 LTS

  • What are you trying to achieve?
    Having user depend parameters for a datasource (currently using MySQL), which cannot be changed by the user.
    Removing the query from the network traffic (only the parameters should be sent to the server).

  • How are you trying to achieve it?
    Running the queries within an api, but I have problems with audentify / identify a user at a JSON API data source.
    I tried to forward the auth to the api, but only the basic-auth setting gets forwarded.

  • What happened?
    Only the basic-auth set in the datasource settings are being forwarded. The Forward OAuth Identity is not being forwarded. Do I have to change the authentication of grafana? At the moment the authentication is unchanged.

  • What did you expect to happen?
    Some kind of token gets forwarded, that may be used to identify the user with the grafana api.

Basically I want to change the datasource in a way, such that the user cannot change specific parameters.
Additionally I would like to hide database structure, but that should be possible my executing all queries within an api.

Thanks in advance