Client Credentials Grant Flow is REALLY BAD

preview_player
Показать описание
The simplest way to get an access_token in a RESTful API is to use the client_credentials grant... it's also the least secure, and really shouldn't be used in modern apps...
Рекомендации по теме
Комментарии
Автор

Hi Michael, thanks for great videos about grant flows. I think you should have specified that the auth service grants tokens which you use to consume resources from an API. It's alot better than using API keys. Still learning, so please correct me if im wrong here (anyone, not just Michael).

MortenHolje
Автор

It depends a lot on the system's requirements. For instance, if you need to make this query on the front end, you leave the client ID and secret on the backend. After receiving the token, you can then use it securely on the front end. However, it's essential to restrict the token's lifespan; otherwise, it won't be effective.

ygorcosta
Автор

What should be done instead? How would you handle an automated request from another backend service?

benpracht
Автор

Hi, Great Explanation. I was really clear and was on point! It would be great if you could make a similar one for implicit grant and resource owner credentials grant. Thank you.

kaustubh
Автор

I little simplistic to just say client credentials bad

ScrotoTBaggins