Program 01 · Module 06 of 8
Module 06: Authentication and Integrations
Control who can do what, and connect safely to outside services. You separate authentication from authorisation, protect sensitive actions with approval and treat every integration as a risk to be contained.
- Suggested study time
- 6–8 hours
- Prerequisites
- Module 5 complete.; Awareness of common web risks such as injection and cross-site scripting.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Distinguish authentication from authorisation and apply both.
- Store credentials and sessions safely, using established libraries.
- Integrate an outside service through a narrow, validated server-side adapter.
- Require human approval for consequential actions such as sending messages or deleting data.
Lessons
- 6.1
Authentication Versus Authorisation
Separate proving who someone is from deciding what they may do, and test both.
35 min - 6.2
Sessions and Password Handling
Use established libraries for sessions and credentials, and learn what never to build yourself.
40 min - 6.3
Roles and Permissions
Model roles from your stakeholder table and enforce permissions on the server.
40 min - 6.4
Integrating an External Service
Wrap an outside service in a narrow server-side adapter with timeouts and safe failure.
40 min - 6.5
Approvals for Consequential Actions
Put validation and human approval in front of emails, deletions, payments and similar actions.
35 min
About 3 h 10 min of lessons in total.
Practical assignment
Secure the capstone
Add sign-in, roles and one external integration to your capstone application, with approval for any consequential action.
Deliverables
- Sign-in and sign-out built on an established library.
- A permission table by role, enforced on the server and covered by tests.
- One integration through an adapter, using a stub or sandbox and synthetic data.
- A list of consequential actions and the approval step in front of each.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: B. Hiding a link is not access control. Anyone can request an address directly, so the server decides. Obscure addresses are tempting protection but are not a security measure.
Show the answer and explanation
Answer: B. Sending email is consequential and cannot be undone. Validation and approval keep a person in control. Automatic sending is quick, which makes it tempting, but a single bad template reaches every recipient.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.