Fabric uses an Authentication mechanism that secures Web Service access to exposed data like in LUI or reference tables. The following credentials are required for authenticating Web Service calls:
JWT is an open industry standard method (RFC 7519) that securely represents claims between two parties.
API keys can be used in two modes:
Fabric supports backward capability via token authentication and an enhanced Create Token command for secured tokens.
To generate a JWT token using the Fabric Authenticate API, do the following:
For example:
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b2tlbiIsImlzcyI6ImZiciIsImlhdCI6MTYwNjY2MDg4MiwiZXhwIjoxNjA2NjYxNzgyLCJ1bm0iOiJhZG1pbiJ9.sQpH343SbfLPHrR7lp5eG4qZKGXXhMrkggX9wqVzLBQ
To generate a new token for accessing Fabric API, do the following:
Open the Admin Panel web page and select Admin, Security and then click the API keys tab.
Click the Add API Key + button on the upper right of the window.
Fill in the following details:
Click Save.
When the secured option has been selected, the secret key is displayed in a pop-up window and can be copied.
For example:
f151c40f-fede-4fb3-8010-398ffbc02329
Note that if the secured option has not been selected, the Token Name is used as the token value.
For information about creating a token from the command line, click here.
When assigning a role to a user, different types of methods can be attributed.
For more information about the supported roles, click here.
Permissions can be granted to a role in a Web Service or in all Web Services. An API key is assigned to the role using the GRANT <ws_name> TO <ROLE>
command line.
The API key is assigned to a user. Permissions for product Web Services are defined by combining the API key assigned to the user and the permissions of the roles assigned to the user.
Example:
create user 'greg';
create role 'writeRole';
grant WRITE on * to 'writeRole';
assign role 'writeRole' to user 'greg';
create token 'test_token' user 'greg';
This snipet shows how the WRITE permission granted to the writeRole has been assigned to the user; and how the test_token token reflecting this role/permission has been generated for the user.
When trying to invoke the Web Service with the DELETE verb using the 'test_token' token, Fabric throws the following error since the delete permission has not been granted to the specific token:
"Com.k2view.cdbms.exceptions.UnauthorizedException: test_read is not allowed to perform [DELETE_INSTANCE]"
Fabric uses an Authentication mechanism that secures Web Service access to exposed data like in LUI or reference tables. The following credentials are required for authenticating Web Service calls:
JWT is an open industry standard method (RFC 7519) that securely represents claims between two parties.
API keys can be used in two modes:
Fabric supports backward capability via token authentication and an enhanced Create Token command for secured tokens.
To generate a JWT token using the Fabric Authenticate API, do the following:
For example:
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b2tlbiIsImlzcyI6ImZiciIsImlhdCI6MTYwNjY2MDg4MiwiZXhwIjoxNjA2NjYxNzgyLCJ1bm0iOiJhZG1pbiJ9.sQpH343SbfLPHrR7lp5eG4qZKGXXhMrkggX9wqVzLBQ
To generate a new token for accessing Fabric API, do the following:
Open the Admin Panel web page and select Admin, Security and then click the API keys tab.
Click the Add API Key + button on the upper right of the window.
Fill in the following details:
Click Save.
When the secured option has been selected, the secret key is displayed in a pop-up window and can be copied.
For example:
f151c40f-fede-4fb3-8010-398ffbc02329
Note that if the secured option has not been selected, the Token Name is used as the token value.
For information about creating a token from the command line, click here.
When assigning a role to a user, different types of methods can be attributed.
For more information about the supported roles, click here.
Permissions can be granted to a role in a Web Service or in all Web Services. An API key is assigned to the role using the GRANT <ws_name> TO <ROLE>
command line.
The API key is assigned to a user. Permissions for product Web Services are defined by combining the API key assigned to the user and the permissions of the roles assigned to the user.
Example:
create user 'greg';
create role 'writeRole';
grant WRITE on * to 'writeRole';
assign role 'writeRole' to user 'greg';
create token 'test_token' user 'greg';
This snipet shows how the WRITE permission granted to the writeRole has been assigned to the user; and how the test_token token reflecting this role/permission has been generated for the user.
When trying to invoke the Web Service with the DELETE verb using the 'test_token' token, Fabric throws the following error since the delete permission has not been granted to the specific token:
"Com.k2view.cdbms.exceptions.UnauthorizedException: test_read is not allowed to perform [DELETE_INSTANCE]"