Lightspeed Retail (X-Series)¶
Backend class¶
For Django, add this class path to AUTHENTICATION_BACKENDS. For other
integrations, use the same class path in the framework-specific backend
setting.
Backend name |
Class path |
|---|---|
|
|
Vend supports OAuth 2.
The backend requests the users:read scope by default. Lightspeed requires
a non-empty scope parameter for new OAuth authorizations, and the current
user endpoint requires users:read. If you override
SOCIAL_AUTH_VEND_SCOPE or disable default scopes, include
users:read. Existing grants without this permission may need users to
authorize the application again.
See Lightspeed’s current user API and scope requirement for the
provider contract.
The backend now identifies the user who authorized the access token rather than the first user in the shop’s user list. Deployments with prior Vend associations should compare each stored shop/user pair with the authorizing user returned by the current-user endpoint. A conflict rejects login. Confirm the local account owner through another sign-in or independently verified recovery method, then remove the stale association and let that owner authorize Vend again. Do not reassign a row using only a shop ID or display name.
Register a new application at Vend Developers Portal
Add the Vend OAuth2 backend to your settings page:
SOCIAL_AUTH_AUTHENTICATION_BACKENDS = ( ... 'social_core.backends.vend.VendOAuth2', ... )
Fill
App KeyandApp Secretvalues in the settings:SOCIAL_AUTH_VEND_OAUTH2_KEY = '' SOCIAL_AUTH_VEND_OAUTH2_SECRET = ''
More details on their docs.