RSJ-Labelprinter - follow the QR-Code RSJ-Next Generation Label Printing System - makes workflow easier RSJ-Software, Company Logo

OAuth2

While OAuth2 offers a great user experience for bringing new users to an existing application connection, initial connection between different applications requires the exchange of several parameters (URLs for login, token, exchange, client id, client secret, scopes).

LPSNG needs an application connection for every base station, so we have defined a simplified protocol for establishing this connection. Using this protocol the user only needs to enter a single URL to establish a new connection:

  1. The users enters the description URL into LPSNG (eg https://xxxxx/describeSystem)
  2. LPSNG fetches this URL and gets a JSON system description, including all required parameters
  3. LPSNG redirects the user to the signon URL for the registration scope
  4. The user authorizes the registration scope
  5. LPSNG posts the code to the base station to request the access code
  6. With this access code LPSNG registers itself with the base station (and gets a client id and client secret)
  7. Now LPSNG redirects the user a second time to the sign on URL (with labeling scope)
  8. LPSNG posts the new code to the base station to retrieve the refresh token.
  9. The refresh token is now stored in LSPNG and used to obtain an access token which is than included in every label request.

Structure of the System Description

{
  signonUrl: "https://xxxxx/signon",
  authUrl: "https:/xxxx/auth",
  registerUrl: "https:/xxxxxx/createApplication",
  register_client_id: "Register",
  register_client_secret: "Register,
  registerScope: "Register",
  labelScope: "Label",
  labelUrl: "https://xxxxxxx/tag/"
}

Register Application

POST /createApplication

Parameters

| Name | Value | | --- | --- | | applicationName | Name of the the application register | | description | Description of application | | redirectUrl | Redirect URL (for signon) | | output | "json" |

JSON Response

{
  client_id: "xxxxxxxxx",
  client_secret: "xxxxxxxxxxxx"
}

Use Cases

Contact

Contact us for more information:

Either

or fill out the form for an email

Name
Company
Email
Phone
How can we help you?

Or contact us directly:

RSJ Software GmbH
Holzstrasse 4
82120 Germering
Germany

Phone: +49 89 89 41 42-0
Fax: +49 89 89 41 42-80
E-Mail: info@rsj.de

© Copyright 2011-2026 by RSJ Software GmbH Germering. All rights reserved. - Version:1.15.0001