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.
- Open YSoft SafeQ Job Service's local.json located in the configuration folder.
Find IdentityServerOptions section.
IdentityServerOptions section
JS{ … "IdentityServerOptions": { } … }
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 } ] } }
- Restart YSoft SafeQ Job Service.