O
O
orbit0702019-07-03 13:00:12
User identification
orbit070, 2019-07-03 13:00:12

Is it ok to pass the token via parameters at the end of the URL?

Hello.
Is it ok to pass the auth token via a parameter in the url itself?
That is, for example, like this: example.com/api/getNews?token=[My Token] The
question is not about paranoia and the answers "you can hack anything" please don't, I just want to understand how it's done or not? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2019-07-03
@orbit070

If the API, then it is much more common to use the authorization Bearer header. And so - someone does it, probably, but it’s definitely not a good practice

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question