How Apps Connect to ERP.net
Connecting an application to an ERP.net instance involves three key elements working together:
- The Identity Server, which authenticates users and services
- The OAuth 2.0 framework, which defines how an app is delegated authorization and obtains access tokens from the Identity Server (the token's use and enforcement happen in the APIs).
- The Trusted Application, which defines and enforces each app's relationship with the instance
Together, they provide a consistent, secure, and auditable way for apps to communicate with ERP.net APIs.
The Connection Model
Every app that interacts with ERP.net must first be registered as a Trusted Application in the target instance.
This registration establishes a formal trust relationship and defines how the app can authenticate and what data it can access.
When an app needs to connect:
- It sends an authorization request to the instance's Identity Server.
- The Identity Server validates the app's identity and credentials.
- If successful, it issues a token that represents the app or user session.
- The app uses this token to call the instance's APIs within its granted scopes.
flowchart LR
app[App]
subgraph instance["ERP.net Instance"]
ta[Trusted Applications Registry]
idp[Identity Server]
api[APIs and Data Services]
end
%% App interactions
app -->|Auth requests| idp
idp -->|Issues tokens| app
app -->|API calls with token| api
%% Internal relationships
ta -->|Client config and scopes| idp
ta -->|Access rules| api
idp -->|Token validation metadata| api
Core Components in Connection
Identity Server
The Identity Server is the authentication authority inside each ERP.net instance.
It verifies identities, applies instance-level security policies, and issues OAuth 2.0 tokens used by apps and users.
See Identity Server for more details.
OAuth 2.0
OAuth 2.0 defines the industry-standard flows used by ERP.net for obtaining and managing tokens.
It ensures that credentials are never shared directly between apps and services, while still allowing delegated access.
See OAuth 2.0 in ERP.net for an overview of how these flows work in practice.
Trusted Applications
A Trusted Application defines how a specific app is recognized by an ERP.net instance - including its client type, authentication flows, and permissions.
See Trusted Applications in Authentication to learn more.
Putting It All Together
When combined, these components form the connection lifecycle:
- Registration - The app is registered as a Trusted Application.
- Authentication - The app (or user) authenticates via the Identity Server.
- Authorization - The server issues tokens defining what access is allowed.
- API Interaction - The app uses these tokens to call ERP.net APIs.
Each step is tightly controlled by instance policies, ensuring that every request is authenticated, authorized, and fully traceable.
Learn More
Identity Server
Understand the built-in authentication authority in each ERP.net instance.OAuth 2.0
Learn how apps use OAuth 2.0 flows to obtain and manage tokens.Trusted Applications and Access Control
See how apps are registered and governed inside ERP.net.