vanhecke/celmex/2.0.0

NOTE: the latest version is 3.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/vanhecke/celmex is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with the same repo name found; no cached copy. Use another version.

Details

Cortex.Api.Rbac

Cortex role-based access control: users, roles, and user groups.

type alias User =
{ userEmail : String
, userFirstName : Maybe String
, userLastName : Maybe String
, roleName : Maybe String
, lastLoggedIn : Maybe Int
, userType : Maybe String
, groups : List Value
, scope : List Value
}

A Cortex RBAC user record.

type alias Role =
{ prettyName : Maybe String
, permissions : List String
, insertTime : Maybe Int
, updateTime : Maybe Int
, createdBy : Maybe String
, description : Maybe String
, tags : Value
, groups : List String
, users : List String
}

A Cortex RBAC role definition: permission list plus membership.

type alias UserGroup =
{ groupName : Maybe String
, description : Maybe String
, prettyName : Maybe String
, insertTime : Maybe Int
, updateTime : Maybe Int
, userEmail : List String
, source : Maybe String
}

A Cortex user-group definition, including member emails.

getUsers : Request (List User)

POST /public_api/v1/rbac/get_users

getRoles : { roleNames : List String } -> Request (List Role)

POST /public_api/v1/rbac/get_roles

The API requires role_names to contain at least one role name; pass them via the record argument. The response is a list-of-lists envelope which is flattened into a single List Role.

getUserGroups : { groupNames : List String } -> Request (List UserGroup)

POST /public_api/v1/rbac/get_user_group

The API requires group_names to contain at least one group name; pass them via the record argument.