wolkenkit

wolkenkit redirects to Auth0 even when user is logged in

天大地大妈咪最大 提交于 2019-12-12 15:13:59
问题 I just tried to test wolkenkit’s authentication with the chat template following the wolkenkit docs. User login seems to work, but the user is redirected to Auth0 even when they're already logged in (without the client calling the auth.login method). Here’s a code snippet from the client: wolkenkit.connect({ host: 'local.wolkenkit.io', port: 3000, authentication: new wolkenkit.authentication.OpenIdConnect({ identityProviderUrl: 'https://<myIdentity>.eu.auth0.com/authorize', clientId: '

Does Wolkenkit event-sourcing have a scheduler?

久未见 提交于 2019-12-11 09:03:19
问题 I'd like to schedule time-triggered actions to fire off events at both intervals and specific times. This would be useful if I needed to say, change the aggregate state with some events like meetingStarted and meetingEnded based on something like a start_at and end_at for a room-booking service. 回答1: Right now, wolkenkit does not have a scheduler like this. Adding this is on the roadmap, but currently it's not yet implemented. Please note that I am one of the developers of wolkenkit, so

Wolkenkit REST API for sending commands returns “Malformed command”

你。 提交于 2019-12-11 01:58:15
问题 I am trying to use the REST API of Wolkenkit to send a command. I did not find any information in the docs, so i tried to find what is necessary by going through the source code and unit tests. I am using HTTPie to do requests from the cli: > http --verbose post https://local.wolkenkit.io:3500/v1/command id=12bf5b37-e0b8-42e0-8dcf-dc8c4aefc000 context:='{"name": "mycontext"}' aggregate:='{"name": "label", "id": "26c01e1f-abb8-42fa-82cf-60ca4a6bfbfa"}' name=create data:='{"label": "third"}'

Wolkenkit: ACLs for authorization and user roles

心已入冬 提交于 2019-12-11 00:15:44
问题 I am trying to understand on how to extend the wolkenkit auth layer. Say i want users with different roles: normal, moderator and admin. normal users can see and modify their own content, but aren't allowed to modify content from other users. moderator users are allowed to modify all entries, but don't have permission to delete anything than their own content. admin users can modify and delete everything. There are also unauthenticated guest users who can read everything but modify nothing.