今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Limit access
“
(peppy music) - [Instructor] Our website has an admin API endpoint. I would like you to write the authentication token that will only admit users with admin role to it, the handler receipting and the slash admin. I provided you with authentication which has roles for guests, developer, and admin, and it's already populated with two users, Moss and Jen, Jen has only guest rights and Moss is an admin. Notice that in real use cases, we will never store passwords in plain text in memory.