Recall & Review
beginner
What is authorization in web applications?
Authorization is the process that decides what a user is allowed to do after they have logged in. It controls access to resources and actions based on user permissions.
Click to reveal answer
beginner
Why is authorization important in Flask apps?
Authorization protects sensitive data and features by ensuring only the right users can access them. Without it, anyone could see or change private information.
Click to reveal answer
beginner
How does authorization differ from authentication?
Authentication checks who you are (login), while authorization checks what you can do (permissions). Both are needed for secure apps.
Click to reveal answer
intermediate
What could happen if an app lacks proper authorization?
Users might access or change data they shouldn’t, leading to privacy breaches, data loss, or damage to the app’s trust.
Click to reveal answer
intermediate
Name a simple way to implement authorization in Flask.
Use Flask extensions like Flask-Login and Flask-Principal to manage user roles and permissions easily.
Click to reveal answer
What does authorization control in a Flask app?
✗ Incorrect
Authorization controls what actions and resources a logged-in user can access.
Which is true about authentication and authorization?
✗ Incorrect
Authentication verifies who you are; authorization decides what you can do.
What risk does missing authorization create?
✗ Incorrect
Without authorization, users might see or change data they shouldn’t.
Which Flask extension helps manage user roles?
✗ Incorrect
Flask-Login helps manage user sessions and roles for authorization.
Authorization is checked after a user has:
✗ Incorrect
Authorization happens after login to control what the user can do.
Explain why authorization is important in a Flask web app.
Think about what happens if anyone could do anything in your app.
You got /4 concepts.
Describe the difference between authentication and authorization.
One is about who you are, the other about what you can do.
You got /4 concepts.