Using ERP.net Identity for SSO
ERP.net Identity can act as a fully compliant OpenID Connect (OIDC) identity provider for any external application - web, desktop, mobile, or service-based.
Integrating with it allows your application to authenticate users using their ERP.net accounts and receive industry-standard identity and access tokens (ID token, access token, refresh token).
This guide explains how an application can connect to ERP.net Identity and use it as an external identity provider.
Note
This page describes the ERP.net global identity provider (https://id.erp.net/id) used when ERP.net acts as an external Identity Provider (SSO/sign-in) for your application.
It is not the mechanism for per-instance API access. To call the APIs of a specific ERP.net instance, use the Instance Identity Service (https://{instance}.my.erp.net/id) and configure a Trusted Application in that instance.
If you’re unsure which authority applies, see Choose an identity authority (instance vs global).
When to Use ERP.net as an External IdP
Use ERP.net as the Identity Provider when:
- Your application needs to authenticate users with their ERP.net accounts
- You want single sign-on (SSO) between ERP.net and other systems
- You do not want to manage user passwords yourself
- You want standardized identity data via OIDC claims
ERP.net supports standard OAuth 2.0 + OIDC flows, so any OIDC-compatible framework or library can integrate with it.
Quick Start (Platform-Agnostic)
To integrate your application with ERP.net Identity, configure an OIDC client with the following parameters:
Required settings
Authority
https://id.erp.net/id
(or your tenant-specific ERP.net Identity URL)Client ID (provided by ERP.net)
Client Secret (provided by ERP.net; confidential clients only)
Scopes
openidprofile- (optional)
offline_access(refresh tokens)
Response type
code id_token
Login callback (redirect URI)
URL where ERP.net redirects after successful login.Logout callback
URL where ERP.net redirects after logout.
Example: ASP.NET Core (Confidential Web App)
.AddOpenIdConnect("ErpNet", options =>
{
options.Authority = "https://id.erp.net/id";
options.ClientId = "<your-client-id>";
options.ClientSecret = "<your-client-secret>";
options.ResponseType = "code id_token";
options.CallbackPath = "/signin-erpnet";
options.SignedOutCallbackPath = "/signout-erpnet";
options.Scope.Add("openid");
options.Scope.Add("profile");
options.Scope.Add("offline_access");
options.GetClaimsFromUserInfoEndpoint = true;
options.SaveTokens = true;
});
Redirect / Callback URLs
Your integration must define:
Login Callback URL
ERP.net Identity redirects here after user authentication.
Logout Callback URL
Used for federated sign-out and user session cleanup.
Both URLs must be registered inside ERP.net Identity for your specific client application.
Claims
After authentication, your application receives standard OIDC user claims, such as:
subnamepreferred_usernameemail
Additional custom ERP.net claims may also be available depending on configuration.
Required ERP.net Client Application (Important)
To authenticate against ERP.net Identity, your application must be registered as an OIDC client inside ERP.net.
The ERP.net team must configure:
- Client ID
- Client Secret (for confidential clients)
- Allowed redirect URLs
- Allowed logout URLs
- Allowed scopes
- PKCE / confidential client settings
- Token lifetimes
These settings are specific to your app and are not public.
How to Obtain a Client ID and Secret
Contact ERP.net Support or your ERP.net system administrator and request a new OIDC client application.
Provide:
- Your login callback URL(s)
- Your logout callback URL
- Required scopes (API access, offline access, etc.)
- Whether your application is:
- a public client (SPA, mobile, desktop - no client secret), or
- a confidential client (server-side - requires secret)
Once the ERP.net team creates the client, you will receive the credentials needed for integration.
Summary
ERP.net Identity is a standards-based OIDC provider.
To authenticate users with ERP.net:
- Register your application as an OIDC client inside ERP.net
- Configure your application with the provided Client ID and (if applicable) Client Secret
- Use
https://id.erp.net/idas the authority - Register correct login and logout callback URLs
- Use OIDC claims to identify the user
This allows your application to authenticate users securely through ERP.net using standard OpenID Connect protocols.