S
S
SeokkyN2018-11-08 20:28:20
Vue.js
SeokkyN, 2018-11-08 20:28:20

Is it safe to hardcode client_secret on the Vue front?

I am working with laravel passport for the first time, implementing the login procedure. The question arose: is it possible to hardcode client_secret on the front for subsequent sending along with the data entered by the user? They say it's unsafe. Answer, please, who is more experienced.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Semenko, 2018-11-08
@abler98

For authorization on the front, you can use Implicit Grant , there is no point in complicating the procedure, since it client_secretis very simple to get from the request.
But what's the point in that? Might be worth reading about the purpose of OAuth authorization?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question