A few bash scripts for OrganiCity.
Required packages
- curl : the well known command-line HTTP client
- jq : lightweight and flexible command-line JSON processor
see also : Organicity Accounts - Permission Component
usage : oc-token client_login client_password
Requests an access token on the authentication server using client credentials
usage : oc-getusers client_login client_password
Requests an access token on the authentication server using client credentials, then gets the list of all the users subs and names.
see also : Related API
usage : oc-getroles client_login client_password userSub
Requests an access token on the authentication server using client credentials, then gets the list of a user (using his/her related userSub) roles.
role example : 'manager-dev:dictionary-user'
see also : Related API
usage : oc-addrole client_login client_password userSub roleName
Requests an access token on the authentication server using client credentials, then gives a user (using his/her related userSub) the role roleName.
role example : 'manager-dev:dictionary-user'
see also : Related API
usage : oc-removerole client_login client_password userSub roleName
Requests an access token on the authentication server using client credentials, then remove a role to a user identified by his/her sub.
role example : 'manager-dev:dictionary-user'
see also : Related API
usage : oc-addroletoall client_login client_password roleName
Requests an access token on the authentication server using client credentials, then gives all users the role roleName
role example : 'manager-dev:dictionary-user'
...