---
title: "Web Security client for Spring Boot"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220803960/Web%20Security%20client%20for%20Spring%20Boot"
format: markdown
---
> ℹ️ Available since version 1.5.0-RELEASE of the library onesaitplatform-web-security-client

[This library](https://onesaitplatform.atlassian.net/wiki/spaces/PT/pages/180682753) can also be configured for Multitenant mode. There’s only one change that needs to be made in the application properties/yaml.

## Application properties/yaml

```
openplatform.api:
   baseurl: http://localhost:21000
   auth:
    login.path: /oauth-server/oauth/token
    token:
      verify.path: /oauth-server/openplatform-oauth/check_token
      grant_type: password
      scope: openid
      clientId: onesaitplatform
      password: onesaitplatform
      vertical: onesaitplatform 
```

You may add 'vertical' property when using Multitenant onesait Platform and not using the default vertical onesaitplatform. For example: 

```
openplatform.api:
   baseurl: http://localhost:21000
   auth:
    login.path: /oauth-server/oauth/token
    token:
      verify.path: /oauth-server/openplatform-oauth/check_token
      grant_type: password
      scope: openid
      clientId: RealmEssentials
      password: 3ss3ntials!#
      vertical: essentials
```

## Auth service responses

In Multitenant mode, when using the LoginService for login and verification purposes, JWT token will now indicate tenant and vertical of the logged user:

Login service:

![image](media://4df5619c-32ca-45eb-9611-ed7757102564)

Verification service:

![image](media://e20fb0b8-6a51-4482-8962-7bc7b246909e)