AdvancedTopic 86 of 104Software & Computing
Authentication and authorisation
Verify identity and control access.
In depth
Authentication verifies identity (passwords, MFA, biometrics, tokens, OAuth/OIDC, passkeys); authorisation decides permissions (RBAC, ABAC, ACLs). Store password hashes with bcrypt/Argon2, use short-lived tokens and least privilege. Session management and logout matter.
Key points
- JWT
- SSO
- Principle of least privilege
ExampleLogging in with Google uses OAuth 2.0 and OpenID Connect.
Authentication checks who a user is, and authorisation decides what they may do, so both are needed to protect any system.
What is Authentication and authorisation?
Verify identity and control access.
Why is it important to understand authentication and authorisation?
Authentication checks who a user is, and authorisation decides what they may do, so both are needed to protect any system.
What is the difference between authentication and authorisation?
Authentication confirms identity, such as with a password or certificate. Authorisation decides which resources and actions that identity can use.
Why use multi-factor authentication?
It requires a second proof, such as a code from a phone, so a stolen password alone is not enough to gain access.
How is Authentication and authorisation used in practice?
Typical applications include logging in to a dashboard with a password and a second factor, giving operators read access but not configuration rights and checking a token before allowing an API call to delete a record.
What should I learn before Authentication and authorisation?
Study "Cryptography basics" first (topic 85 of 104 in Software & Computing). It covers the groundwork this topic builds on.
What are the key points of Authentication and authorisation?
JWT. SSO. Principle of least privilege.
Can you give an example of Authentication and authorisation?
Logging in with Google uses OAuth 2.0 and OpenID Connect.
What comes after Authentication and authorisation?
The next topic is "Common vulnerabilities", which builds directly on this one.
How difficult is Authentication and authorisation?
It is classed as Advanced in Software & Computing (topic 86 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Software & Computing.