The CLI tool can be used for the essential configuration of an authorization provider, necessary to make it work. For more sophisticated configuration, please refer to the XML representation (configuration asset on the Censhare Server): module.satellite.osgi.configuration or module.satellite.configuration.
Authorization providers are applicable on a configuration level.
Manage authorization providers
Detailed information about this part of the HCMS configuration can be found in this article.
View commands
|
Command |
Argument |
Meaning |
|---|---|---|
|
|
configuration key |
Lists all authorization providers configured for a given configuration group. |
|
|
authorization key |
Displays the specified authorization provider configuration. |
Example output of those commands:
- type: jwt
secret: 13g4TKUugjmHSlusWiNMOAB5BbtInfSJHagVr5kSzOIKDBJSRWkAdjM4nMxI
cookie:
name: access_token
maxAge: unlimited
insecure: false
http-only: false
- type: basic
users:
- name: system
password: e292291432703ac801664a66a554c000
roles:
- '*'
- type: ip
ranges:
- start: 127.0.0.1
end: 127.0.0.1
roles:
- '*'
CRUD commands
Note One basic authorization provider configuration is created automatically as part of running the command hcms configuration create.
|
Command |
Argument |
Meaning |
|---|---|---|
|
|
configuration id |
Defines a new satellite authorization provider in the specified configuration. |
|
|
configuration id |
Updates the specified attributes of the specified authorization provider configuration. |
|
|
configuration id |
Deletes the specified attributes of the specified authorization provider configuration (or the entire configuration). |
Available options vary depending on the type of autorization provider you want to add, update, or delete. The first option to the command specifies the type of the provider.
|
Provider |
Option |
Default option value |
Attribute |
Default attribute value |
Meaning |
|---|---|---|---|---|---|
|
|
- |
- |
- |
- |
For a new basic HTTP authorization. |
|
- |
|
- |
- |
- |
The user name. |
|
- |
|
A randomly generated string. |
- |
- |
User password. |
|
- |
|
- |
- |
- |
HCMS user roles. Has to be specified as a comma-separated list for only specific roles or as |
|
|
- |
- |
- |
- |
For a new IP range. |
|
- |
|
- |
- |
- |
Start of the IP range (IPv4 or IPv6). |
|
- |
|
- |
- |
- |
End of the IP range (IPv4 or IPv6). |
|
- |
|
- |
- |
- |
End of the IP range (IPv4 or IPv6). |
|
|
- |
- |
- |
- |
For a new JWT-based authorization. |
|
- |
|
- |
- |
- |
The string value of the HMAC secret. |
|
- |
|
- |
- |
- |
The entire RSA public key, enclosed in |
|
- |
|
For version |
- |
- |
Name of the authorization cookie. |
|
- |
- |
- |
|
- |
A maximum age of the authorization cookie, in seconds. A negative value means that there is no expiration time. |
|
- |
- |
- |
|
|
Specifies if authorization cookies can be used in an unencrypted HTTP request. |
|
- |
- |
- |
|
|
Specifies if authorization cookies can be used in an unencrypted HTTP request. |
|
- |
- |
- |
|
|
Specifies if authorization cookies can be issued with the |
|
- |
- |
- |
|
|
Specifies if authorization cookies can be issued with the |
|
|
- |
- |
- |
- |
Creates a provider that grants all roles to any request. |
For the basic HTTP authorization, you can add as many users as you need. But you have to do it one by one.