#Required properties:higson.studio.security.token.generation.authentication.type=saml#Specifies the URL of the Studio backend application, e.g.: http://yourdomain.com:38080/higson/apihigson.studio.security.token.generation.authentication.saml.base-url=#Specifies entity identifier, e.g.: higsonhigson.studio.security.token.generation.authentication.saml.entity-id=#Specifies the path to the IDP metadata file, e.g.: file:/home/user/metadata.xmlhigson.studio.security.token.generation.authentication.saml.idp-metadata-file-path=#Specifies maximum difference between clocks of the identity provider and Studio machines, e.g.: 60higson.studio.security.token.generation.authentication.saml.response-skew=#Specifies the source of the roles, possible values: saml / internalhigson.studio.security.token.generation.authentication.saml.roles-origin=#Specifies the path to the keystore with certificate and private key used to sign and decrypt data, e.g.: file:/home/user/higson.jkshigson.studio.security.token.generation.authentication.saml.key-store.path=#Specifies the keystore passwordhigson.studio.security.token.generation.authentication.saml.key-store.pass=#Specifies an alias for the certificate in the keystorehigson.studio.security.token.generation.authentication.saml.key-store.alias=#Specifies the private key passwordhigson.studio.security.token.generation.authentication.saml.key-store.key-pass=#Specifies the URL of the Studio frontend application, e.g.: http://yourdomain.com:38080/higson/apphigson.studio.security.token.generation.authentication.saml.token-destination-url=#Optional properties:#Specifies the attribute nameshigson.studio.security.token.generation.authentication.saml.attributes.firstname=firstnamehigson.studio.security.token.generation.authentication.saml.attributes.lastname=lastnamehigson.studio.security.token.generation.authentication.saml.attributes.mail=mailhigson.studio.security.token.generation.authentication.saml.attributes.roles=roles#Specifies the endpoint that returns SP metadata higson.studio.security.token.generation.authentication.saml.sp-metadata-endpoint=/saml2/metadata#Specifies the endpoint that accepts login response from the IDPhigson.studio.security.token.generation.authentication.saml.assertion-consumer-service-endpoint=/login/saml2/sso/higson#Specifies the endpoint that accepts logout requesthigson.studio.security.token.generation.authentication.saml.single-logout-service-endpoint=/saml2/logout
Generate Studio metadata and import in your Identity Provider
On your IDP:
Configure Identity Provider to send attributes with assertion response.
Check that Identity Provider configuration for Assertion Consumer Service URL and Logout Service URL is correct.
Important! SAML Response signature must include message and assertions!
if higson.studio.security.token.generation.authentication.saml.roles-origin=saml is specified roles are taken from assertion response therefore Identity Provider
must be configured to send it with response. internal means Studio will take roles from database instead of SAML assertion response to authorize user.
#Required properties:higson.studio.security.token.generation.authentication.type=active-directory#Specifies Active Directory main root, e.g.: domain.localhigson.studio.security.token.generation.authentication.active-directory.domain=#Specifies Active Directory server url, e.g.: ldap://10.111.22.156:389/higson.studio.security.token.generation.authentication.active-directory.url=#Specifies Active Directory root domain, e.g.: DC=domain,DC=localhigson.studio.security.token.generation.authentication.active-directory.root-dn=#Optional properties:#Specifies user search filter in Active Directory ({0} are replaced with the username@domain, {1} are replaced with the username only)higson.studio.security.token.generation.authentication.active-directory.search-filter=(&(objectClass=user)(userPrincipalName={0}))
Login - not empty, min size: 1, max size: 200
First name - not empty, min size: 1
Last name - not empty, min size: 1
E-mail address - if empty Higson generates default e-mail consistent with schema: ’login@local.com’
Roles - min one role consistent with Higson role.
Roles defined in Active Directory must be compatible with roles in Higson structure.
MPP_ADMIN - Higson Administrator
MPP_USER - Higson User
MPP_USER_READONLY - Readonly Higson User \
It is possible to create own roles in AD but remember to create same roles in Higson structure. It’s necessary to proper authentication process.
When a user logs into Higson Studio, their account is automatically created in the system with an external status.
#Required properties:higson.studio.security.token.generation.authentication.type=cas#Specifies the URL of the Studio backend application, e.g.: https://yourdomain.com:38080/higson/apihigson.studio.security.token.generation.authentication.cas.base-url=#Specifies CAS server url, e.g.: https://cas_server_adress:9443/cas/p3higson.studio.security.token.generation.authentication.cas.server-url=#Specifies CAS login endpoint, e.g.: https://cas_server_adress:9443/cas/loginhigson.studio.security.token.generation.authentication.cas.login-url=#Specifies CAS logout endpoint, e.g.: https://cas_server_adress:9443/cas/logouthigson.studio.security.token.generation.authentication.cas.logout-url=#Specifies the URL of the Studio frontend application, e.g.: http://yourdomain.com:38080/higson/apphigson.studio.security.token.generation.authentication.cas.token-destination-url=
When logging in using CAS, you must configure the corresponding users on the Higson Studio side. Roles are defined and managed on the Higson Studio side.
Studio Refresh and Access Token
A refresh token is a special type of access key used to automatically renew a user session without the need to log in again. It is used together with an access token. It is used to ensure user convenience, as it means that users do not have to constantly log in to the application.
The following properties define the lifetime of tokens:
The refresh token has a longer lifespan and is used to obtain a new access token. The access token is included in requests and enables authorized access to the API. Once the access token expires, the browser automatically uses the refresh token to retrieve a new access token. If the refresh token also expires, the user will be logged out of the system.
Modifying the access token lifetime affects how often it needs to be refreshed — in other words, how frequently the system must generate a new access token. Meanwhile, the refresh token lifetime determines how long a user can remain logged in, that is, how long they can obtain new access tokens without having to log in again.
It’s important to remember that when an automatic logout occurs, any unsaved changes will be lost.
You can generate a new token in Studio. A view to see all existing tokens and to generate a new one can be found in Menu’s Tools tab.
When creating a new token, you can specify the expiry date. Admin users may also specify a user that a newly generated token will be assigned to.
To use generated token in REST API calls, you need to add an Authorization Header with the standard bearer format, such as
Authorization: Bearer your_jwt_token
You can choose from the following password encoder security algorithms: bCrypt (default) or Pbkdf2
To select a Pbkdf2 algorithm, you must set higson.security.basic.password-encoder=Pbkdf2 property in the application.properties
You can choose the complexity of BCrypt algorithm by setting a property higson.security.basic.bcrypt.complexity with values
between 4 and 31 are accepted, 5 is used by default. Be careful, since the bigger the value the safer algorithm is, but the
performance impact is also increasing.
higson.runtime-rest.security.type=active-directoryhigson.security.active-directory.domain=domain.local#Active Directory main roothigson.security.active-directory.url=ldap://server-url/#Active Directory server urlhigson.security.active-directory.root-dn=DC=domain,DC=local#AD root domain