Skip to main content
Skip table of contents

Configuring YSoft SafeQ Job Service to support mobile app

Y Soft SafeQ Job Service is by default configured to work with mobile applications on fresh installations. There is no need to configure Job Service manually, unless a non-default configuration needs to be set.

For YSoft SafeQ Job Service to support the YSoft SAFEQ mobile application we have to add a new OpenID Client so the mobile application can sign in the user. 

  1. Open YSoft SafeQ Job Service's local.json located in the configuration folder.
  2. Find IdentityServerOptions section.

    IdentityServerOptions section

    JS
    {
      …
      "IdentityServerOptions": {
        
      }
      …
    }
  3. Add new OpenID Connect client that is being used by the mobile application by adding following configuration as AdditionalClients section:

    Adding new client

    JS
    {
      … 
      "IdentityServerOptions": {
        "AdditionalClients": [
          {
            "ClientId": "mobile-application",
            "ClientName": "Mobile App",
            "RequireClientSecret": false,
            "AllowAccessTokensViaBrowser": true,
            "AllowedGrantTypes": [
              "authorization_code"
            ],
            "RequireConsent": false,
            "AllowOfflineAccess": true,
            "RedirectUris": [
              "safeq-app://logincallback"
            ],
            "PostLogoutRedirectUris": [
              "safeq-app://logoutcallback"
            ],
            "AllowedScopes": [
              "openid",
              "id_token",
              "profile",
              "jobs:create",
              "jobs:read",
              "jobs:delete",
    		  "queues:read"
            ],
            "AlwaysIncludeUserClaimsInIdToken": true,
            "AccessTokenLifetime": 3600
          }
        ]
      }
    }
  4. Restart YSoft SafeQ Job Service.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.