OAuth 2.0
OAuth 2.0 is the industry-standard protocol for authorization. It supports specific authorization flows for web applications, desktop applications, mobile phones, and other device types. Oro implements OAuth 2.0 via OroOAuth2ServerBundle, which supports the following grant types:Authorization Code Grant
For web and mobile applications that can redirect users. Supports PKCE extension.
Client Credentials Grant
For machine-to-machine communication without user interaction.
Password Grant
For trusted applications that handle user credentials directly.
Using an access token
Once you have obtained an access token, include it as aBearer token in the Authorization header of each request:
Prerequisites
OAuth authentication requires private and public keys to be generated and placed on the server. Contact your administrator if you see the error:If the customer portal package is installed, OAuth authorization for customer users to the storefront API resources is enabled automatically.