If you are creating an online service for several companies, logging in is just part of the problem. You need to decide what each person can view, from which customer, and for how long. A SaaS is software that you provide as a service; its permissions should represent how your customers work.
Entering does not mean being able to do everything
What is the difference between identity and permission?
Identifying a person answers who is logging in. Authorizing them answers what they can do about a specific data point. On your platform, it also matters which company that data belongs to. Hiding an option on the screen does not replace checking the permission in the system that executes the operation.
Pedagogical example: you provide a document platform. A person from a management company logs in correctly, but they should not be able to access another person's files. The test needs to verify access to the document, in addition to what the menu shows.
Understand the parts without choosing by acronyms
Do JWT and OAuth solve the same thing?
No. JWT is a format for representing information; OAuth organizes delegated access, and OpenID Connect adds an identity layer. You can ask them to explain what function each component in your product performs. None defines on its own which employees of each customer can view, export, or modify their documents.
The linked references include the specifications and subsequent best practices: RFC 9700 for OAuth and RFC 8725 for JWT. The implementation should be reviewed with that documentation, not just copy a login example.
Translate the work into verifiable permits
How do you define the roles your service needs?
List real tasks: inviting users, consulting documents, correcting them and exporting them. For each task indicate who can perform it and for which organization. Include absences and changes of responsibility. This relationship prevents creating access profiles by intuition and allows testing both what is allowed and what should be rejected.
Try before incorporating more customers
What would you ask for in a first access test?
Two test organizations with different users and documents. Verify a permitted action, another prohibited one, and the removal of access. Also review downloads and automatic processes. The result must demonstrate the agreed behavior and make it clear who manages the permissions when a customer's team changes.
In Calicata we can study the architecture of your SaaS and its implementation, evaluating Rust with Oscar González. The improvement we are looking for is that access accompanies the client's work and can be reviewed without depending on assumptions.
Related service: Development of custom SaaS
Related reading: saas on demand architecture decisions
Related reading: when does backend rust make sense
Sources consulted on 20 October 2026. The primary sources below explain the concepts and tools discussed here. The examples are illustrative; check any proposed approach against your own process.
OpenID Foundation: identity and access
IETF RFC 6749: OAuth authorization
IETF RFC 9700: OAuth security best practices
IETF RFC 8725: best practices for JWT
Who should view, modify, or export each data point on your platform? Tell us the model from custom SaaS to.