Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Different authentication for certain REST endpoints #6134


User avatar
0
timmy.shumate created

Hi,

we are having the following problem: We have some IOT devices, that shall call a set of Rest Endpoints, to submit a status. Now at the moment, every API hit has to pass the authentication token in the call header. But the IOT devices can only make simple GET Calls to the REST endpoints. Is there any way simplify the authentication method for a certain set of REST endpoints?

Thanks in advance!


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @timmy.shumate

    You can pass token on the query string and check it on the server side. You can check QueryStringTokenResolver in AuthConfigurer.cs for a similar usage when connecting with SignalR to server.

  • User Avatar
    1
    timmy.shumate created

    Hi @ismcagdas,

    thanks for the quick response. Will check out.

    Regards Timmy

  • User Avatar
    0
    ismcagdas created
    Support Team

    Please reopen if you couldn't manage to do it.