-
1
Authorization and authentication where token is stored asked me to find the tokenTimes asked 2
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Proctor workspace
No student reviews for this proctor yet.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth
if check_password_hash(user.password, pwd):
session['user_id'] = user.id
# authz
if user.role != 'admin':
abort(403)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet