All jobs / Solutions / cloud architect / Identity & Security
Solutions / cloud architect interview question · 0–1 years
Authentication versus authorisation — and where do OIDC and OAuth fit?
The strongest answer
Authentication proves who you are, authorisation decides what you may do; OIDC handles the first, OAuth issues delegated access for the second — the app still decides its own permissions
Why it works
Exactly. Who you are, what you may do, and the protocols that carry each — with permissions still owned by the application.
What a good answer covers
- Authentication: who.
- Authorisation: what.
- OIDC for identity, OAuth for delegated access.
- Valid token is not permission.
Answers that fall short
- Close, but not the strongest: They are the same step; the login screen does both
One screen may trigger both, but they are different decisions with different failures. - Weak: OAuth is for logging in and OIDC is for APIs
You have them the wrong way round: OIDC is identity, OAuth is delegated access. - Red flag: If a token is valid, the user is allowed to do anything the API offers
A valid token proves identity or delegation; permission is a separate check every time.
Who gets asked this
More Identity & Security questions
- Where should database passwords and API keys live, and how do services get them?
- The database disks are encrypted at rest. What does that protect against, and what does it not?
- A single-page app, a mobile app and a nightly batch job all need to call your API. Which OAuth flows fit?
- How do you design the roles for a product’s permission system so it does not end up as one role per user?
- How should cloud permissions be granted to a new service?
- What does zero trust change about how services talk to each other inside the network?
- Design the key management for a platform that encrypts customer data at rest.
- How do you run a threat-modelling session on a new design?