Peter distinguishes access control, which decides whether a user may perform an action, from delegated authorization, which lets an application make a request on a user’s behalf. In the banking example, authentication identifies the account holder, while account balance, withdrawal limits, and account blocks determine whether a withdrawal is allowed. OAuth 2 supports delegated access to APIs through tokens issued by an authorization server.
Authorization: Security Deep-Dive With Okta
Speakers
Peter Fernandez, Principal Developer Advocate at Auth0, and Wojciech, host of the Callstack podcast, discuss authorization, access control, and frontend security.
Peter explains that JWT is a token format, not a synonym for a particular token: access tokens are intended for APIs, while ID tokens are intended for applications. A self-contained JWT can be validated without calling the authorization server, which can help offline systems such as theater lighting equipment. He also outlines role-based, attribute-based, and relationship-based access control, including Google Zanzibar as an example of relationship-based access control.
Peter says the frontend can improve the user experience by hiding or disabling actions a user cannot take, but it cannot be trusted to enforce security because users can bypass it. The backend must make the final allow or reject decision. Frontend and backend developers should agree on what information the interface needs, while backend developers handle the access rules and resource details.
Peter says frontend developers should understand how to store access tokens securely, including on mobile devices, and that token lifetimes can limit exposure. His principle of least privilege is to request only the scopes an application needs. If a token is stolen, unnecessary permissions can give an attacker access beyond the application’s intended tasks.
Peter advises users to be cautious when apps request access to personal information and to watch for phishing attempts. He notes that security providers face attacks, and that their ongoing investment in analyzing threats can benefit the applications that use their services. For developers, he emphasizes keeping product knowledge current and following sound security practices.
Takeaways
- Treat frontend access controls as user experience guidance; enforce permissions on the backend.
- Keep access tokens and ID tokens distinct by purpose, even when both use JWT format.
- Request only the OAuth scopes an application needs to reduce the impact of a stolen token.
- Coordinate frontend and backend contracts so interfaces can reflect permissions without duplicating backend policy.
- Use RBAC, ABAC, or ReBAC according to the access rules your application needs.
Mentioned in this talk
Search inside this talk
What was claimed 7
- role atPeter Fernandez is Principal Developer Advocate at
Auth0
“Principal Developer Advocate at Auth0.”
YouTube Unverified1 source· Talk
- featureOAuth: Supports delegated authorization for secure API access
“OAuth 2 is all about accessing APIs in a secure way.”
YouTube Unverified1 source· Talk
- featureJWT: Can be self-contained and validated by an API without token introspection
“The API does not need to go back to the authorization server for what's called introspection.”
YouTube Unverified1 source· Talk
- featureGoogle Zanzibar: Relationship-based access control engine used behind Google Workspace sharing
“Zanzibar is effectively the access control engine—the relationship-based access control engine—that sits behind essentially everything in Google Workspace.”
YouTube Unverified1 source· Talk
- feature
Auth0: Provides fine-grained authorization for relationship-based access control
“We have something else called fine-grained authorization, which provides relationship-based access control.”
YouTube Unverified1 source· Talk
- feature
Auth0: Provides RBAC capability out of the box
“Auth0 provides RBAC capability out of the box.”
YouTube Unverified1 source· Talk
- feature
Okta: Provides authorization as a service
“Now we have a way to offload a lot of that complexity from developers and provide authorization as a service.”
YouTube Unverified1 source· Talk








